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

Issue 150196: Fix leak 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

Fix leak on connection error. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=19792

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M net/socket/client_socket_pool_base.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
willchan no longer on Chromium
TBR
11 years, 5 months ago (2009-07-02 00:29:14 UTC) #1
eroman
11 years, 5 months ago (2009-07-02 00:44:39 UTC) #2
LGTM.

On the one hand I think it would be cleaner to defined
ConnectJob::ReleaseSocket() to return NULL in the case where the connect failed
-- right now the documentation leaves that case un-specified.

On the other hand, it may be more bug-prone to have each (future) ConnectJob
implementation remember about this contract.

Please do add some documentation to ReleaseSocket() about this behavior.

Powered by Google App Engine
This is Rietveld 408576698