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

Issue 150205: Make ConnectJob::ReleaseSocket() return NULL on connection error. (Closed)

Created:
11 years, 5 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 ConnectJob::ReleaseSocket() return NULL on connection error. BUG=none TEST=none

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) 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 1 chunk +1 line, -0 lines 1 comment Download
M net/socket/tcp_client_socket_pool.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
willchan no longer on Chromium
I agree that it seemed weird for ReleaseSocket() to return non-NULL on error. I've changed ...
11 years, 5 months ago (2009-07-02 03:04:59 UTC) #1
eroman
11 years, 5 months ago (2009-07-02 05:01:13 UTC) #2
lgtm

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

http://codereview.chromium.org/150205/diff/1/2#newcode306
Line 306: scoped_ptr<ClientSocket> socket(job->ReleaseSocket());
I guess this no longer needs to be scoped_ptr.
But fine either way.

Powered by Google App Engine
This is Rietveld 408576698