Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Issue 3441034: Clean up socket backup job when there are no requests. (Closed)

Created:
10 years, 2 months ago by willchan no longer on Chromium
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Clean up socket backup job when there are no requests. BUG=56532 TEST=ClientSocketPoolBaseTest.CancelBackupSocketAfterFinishingAllRequests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=60693

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -16 lines) Patch
M net/socket/client_socket_pool_base.h View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/client_socket_pool_base.cc View 6 chunks +9 lines, -14 lines 0 comments Download
M net/socket/client_socket_pool_base_unittest.cc View 2 chunks +29 lines, -1 line 6 comments Download

Messages

Total messages: 5 (0 generated)
willchan no longer on Chromium
10 years, 2 months ago (2010-09-27 18:38:03 UTC) #1
Mike Belshe
LGTM http://codereview.chromium.org/3441034/diff/1/4 File net/socket/client_socket_pool_base_unittest.cc (right): http://codereview.chromium.org/3441034/diff/1/4#newcode2070 net/socket/client_socket_pool_base_unittest.cc:2070: connect_job_factory_->set_job_type(TestConnectJob::kMockPendingJob); nit: line 2070 is unnecessary due to ...
10 years, 2 months ago (2010-09-27 19:00:49 UTC) #2
willchan no longer on Chromium
http://codereview.chromium.org/3441034/diff/1/4 File net/socket/client_socket_pool_base_unittest.cc (right): http://codereview.chromium.org/3441034/diff/1/4#newcode2070 net/socket/client_socket_pool_base_unittest.cc:2070: connect_job_factory_->set_job_type(TestConnectJob::kMockPendingJob); On 2010/09/27 19:00:49, Mike Belshe wrote: > nit: ...
10 years, 2 months ago (2010-09-27 19:05:04 UTC) #3
Paweł Hajdan Jr.
Drive-by with a test comment. http://codereview.chromium.org/3441034/diff/1/4 File net/socket/client_socket_pool_base_unittest.cc (right): http://codereview.chromium.org/3441034/diff/1/4#newcode2083 net/socket/client_socket_pool_base_unittest.cc:2083: PlatformThread::Sleep(ClientSocketPool::kMaxConnectRetryIntervalMs / 2 * ...
10 years, 2 months ago (2010-09-28 08:08:34 UTC) #4
Mike Belshe
10 years, 2 months ago (2010-09-28 15:13:55 UTC) #5
http://codereview.chromium.org/3441034/diff/1/4
File net/socket/client_socket_pool_base_unittest.cc (right):

http://codereview.chromium.org/3441034/diff/1/4#newcode2070
net/socket/client_socket_pool_base_unittest.cc:2070:
connect_job_factory_->set_job_type(TestConnectJob::kMockPendingJob);
On 2010/09/27 19:05:04, willchan wrote:
> On 2010/09/27 19:00:49, Mike Belshe wrote:
> > nit: line 2070 is unnecessary due to line 2065.
> 
> It's necessary.  Waiting != Pending.  We need a job to be pending so that
> handle2.WaitForResult() will complete.  If they're both Waiting, then it'll
> never finish.

Doh - I misread.  Somehow I read them as the same state.

Powered by Google App Engine
This is Rietveld 408576698