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

Issue 159597: Fix crash in client_socket_pool_base.cc. (Closed)

Created:
11 years, 4 months ago by Paweł Hajdan Jr.
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fix crash in client_socket_pool_base.cc. The CHECK that was being hit showed a real problem: group's IsEmpty should take into account the pending requests queue too. I also made IsEmpty check for connecting requests queue emptiness, so we can be sure that IsEmpty really means empty. TEST=Added a regression test ClientSocketPoolBaseTest.GroupWithPendingRequestsIsNotEmpty to net_unittests. http://crbug.com/17985 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=21988

Patch Set 1 #

Total comments: 1

Patch Set 2 : add test for late binding scenario #

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

Messages

Total messages: 5 (0 generated)
Paweł Hajdan Jr.
Please review. It fixes a P1 bug.
11 years, 4 months ago (2009-07-29 18:25:43 UTC) #1
willchan no longer on Chromium
lgtm http://codereview.chromium.org/159597/diff/1/4 File net/socket/client_socket_pool_base_unittest.cc (right): http://codereview.chromium.org/159597/diff/1/4#newcode978 Line 978: TEST_F(ClientSocketPoolBaseTest, GroupWithPendingRequestsIsNotEmpty) { Please add a copy ...
11 years, 4 months ago (2009-07-29 18:41:56 UTC) #2
Paweł Hajdan Jr.
Done. eroman/wtc, could you take a look as well? Just to make sure the fix ...
11 years, 4 months ago (2009-07-29 19:05:12 UTC) #3
eroman
lgtm
11 years, 4 months ago (2009-07-29 20:12:53 UTC) #4
wtc
11 years, 4 months ago (2009-07-29 20:27:25 UTC) #5
LGTM.  Thanks!

http://codereview.chromium.org/159597/diff/1002/12
File net/socket/client_socket_pool_base_unittest.cc (right):

http://codereview.chromium.org/159597/diff/1002/12#newcode999
Line 999: // Release the first two sockets from "a", which will make place
Nit: "make place" => "make room"?  Or did you mean "make space"?

http://codereview.chromium.org/159597/diff/1002/12#newcode1437
Line 1437: // Release the first two sockets from "a", which will make place
Nit: "make place" => "make room"?

Powered by Google App Engine
This is Rietveld 408576698