Chromium Code Reviews

Issue 126065: Make TCPClientSocketPool own the ConnectingSockets. (Closed)

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

Description

Make TCPClientSocketPool own the ConnectingSockets. Re-enable the disabled URLRequest tests. BUG=http://crbug.com/13952 TEST=covered by existing tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=18414

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address eroman's comments #

Patch Set 3 : Merge #

Unified diffs Side-by-side diffs Stats (+35 lines, -59 lines)
M net/base/tcp_client_socket_pool.h View 3 chunks +8 lines, -2 lines 0 comments
M net/base/tcp_client_socket_pool.cc View 8 chunks +21 lines, -41 lines 0 comments
M net/url_request/url_request_unittest.h View 1 chunk +1 line, -4 lines 0 comments
M net/url_request/url_request_unittest.cc View 5 chunks +5 lines, -12 lines 0 comments

Messages

Total messages: 3 (0 generated)
willchan no longer on Chromium
11 years, 6 months ago (2009-06-12 18:38:51 UTC) #1
eroman
lgtm. sorry i couldnt get to this review on friday (was trying to finish the ...
11 years, 6 months ago (2009-06-14 06:41:59 UTC) #2
willchan no longer on Chromium
11 years, 6 months ago (2009-06-15 18:01:48 UTC) #3
http://codereview.chromium.org/126065/diff/1/2
File net/base/tcp_client_socket_pool.cc (right):

http://codereview.chromium.org/126065/diff/1/2#newcode54
Line 54: // We don't worry about cancelling the TCP connect since ~ClientSocket
will
On 2009/06/14 06:41:59, eroman wrote:
> This comment is duplicated.

Done.

http://codereview.chromium.org/126065/diff/1/2#newcode78
Line 78: NOTREACHED();
On 2009/06/14 06:41:59, eroman wrote:
> If this is a logic failure, then why not just DCHECK(group_it !=
> pool_->group_map_.end()) ?

Done.

http://codereview.chromium.org/126065/diff/1/2#newcode88
Line 88: NOTREACHED();
On 2009/06/14 06:41:59, eroman wrote:
> Same question as above. It is strange to have logic after a NOTREACHED(). If
> anything seems better to make that a CHECK if you suspect it can be reached.

Done.

http://codereview.chromium.org/126065/diff/1/2#newcode421
Line 421: delete connecting_socket_map_[handle];
On 2009/06/14 06:41:59, eroman wrote:
> how about doing a find once, and then using that iterator to do the erase
> afterwards?

Done.

http://codereview.chromium.org/126065/diff/1/4
File net/url_request/url_request_unittest.cc (right):

http://codereview.chromium.org/126065/diff/1/4#newcode50
Line 50: // http://crbug.com/13952
On 2009/06/14 06:41:59, eroman wrote:
> Can you also remove the TODO(eroman): hacks that turn off caching? (search for
> 13952 in this file, and url_request_unittest.h)

Done.

Powered by Google App Engine