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

Issue 146037: Fix crash in ClientSocketPoolBase. (Closed)

Created:
11 years, 6 months ago by willchan no longer on Chromium
Modified:
9 years, 7 months ago
Reviewers:
eroman, wtc
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fix crash in ClientSocketPoolBase. If a ConnectingSocket fails, we need to try to process a pending request. BUG=http://crbug.com/14814 TEST=See bug for repro steps. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=19067

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix formatting. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -48 lines) Patch
M net/socket/tcp_client_socket_pool.h View 1 chunk +3 lines, -0 lines 0 comments Download
M net/socket/tcp_client_socket_pool.cc View 5 chunks +20 lines, -42 lines 0 comments Download
M net/socket/tcp_client_socket_pool_unittest.cc View 1 6 chunks +39 lines, -6 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
willchan no longer on Chromium
11 years, 6 months ago (2009-06-23 17:51:31 UTC) #1
eroman
lgtm http://codereview.chromium.org/146037/diff/1/2 File net/socket/tcp_client_socket_pool.cc (right): http://codereview.chromium.org/146037/diff/1/2#newcode213 Line 213: void ClientSocketPoolBase::CancelRequest(const std::string& group_name, doesn't |handle| already ...
11 years, 6 months ago (2009-06-23 21:13:45 UTC) #2
willchan no longer on Chromium
11 years, 6 months ago (2009-06-23 21:59:38 UTC) #3
Thanks for the review.

http://codereview.chromium.org/146037/diff/1/2
File net/socket/tcp_client_socket_pool.cc (right):

http://codereview.chromium.org/146037/diff/1/2#newcode213
Line 213: void ClientSocketPoolBase::CancelRequest(const std::string&
group_name,
On 2009/06/23 21:13:45, eroman wrote:
> doesn't |handle| already contain the groupname?

Yes.  I think at some point I thought it was better to be explicit about the
group_name and pass it in directly rather than via ClientSocketHandle.  I don't
know why I felt like that before, but I don't feel strongly either way.  In any
case, I won't address it in this changelist.  If you'd like, I can follow it up
after this one (and after my other changelist that breaks ClientSocketPoolBase
out of this file).

http://codereview.chromium.org/146037/diff/1/4
File net/socket/tcp_client_socket_pool_unittest.cc (right):

http://codereview.chromium.org/146037/diff/1/4#newcode604
Line 604: scoped_ptr<TestSocketRequest> reqs[kMaxSocketsPerGroup*2 + 1];
On 2009/06/23 21:13:45, eroman wrote:
> nit: space between binary operators.

Done.

Powered by Google App Engine
This is Rietveld 408576698