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

Issue 2192193002: Remove a DCHECK on ClientSocketHandle state from proxy code. (Closed)

Created:
4 years, 4 months ago by mmenke
Modified:
4 years, 4 months ago
Reviewers:
eroman
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove a DCHECK on ClientSocketHandle state from proxy code. This was causing issues for one of our fuzzers. The DCHECK made sure the ClientSocketHandle was initialized, which was not the state in tests. Normally, handles set initialized to true when they are assigned a socket, and the connection callback is invoked. When the Handle is torn down, if the Handle was initialized, the socket is returned to the socket pool. A lot of tests bypass all this, not using socket pools at all, and just assigning a socket to the SocketHandle. This results in is_connected being false, which was triggering the DCHECK. We could instead make sure that is_initialized is set to true in tests, but this has minimal value - in production, it's set to true if and only if a socket is set and the callback invoked, and set to false only when the socket is destroyed or returned to the socket pool. If the socket is null, we'll crash very soon with an equally useful crash stack, anyways. In production, if the connection callback wasn't invoked, the HttpProxyClientSocket's state machine will catch the issue, anyways. BUG=632608 Committed: https://crrev.com/893b812617b63d2b71e38bf2a504d2c5d4657c23 Cr-Commit-Position: refs/heads/master@{#408670}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -1 line) Patch
M net/http/http_proxy_client_socket.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 15 (10 generated)
mmenke
Eric: Mind reviewing? Asanka's off. Description's kind of long, but the TLDR is the DCHECK ...
4 years, 4 months ago (2016-07-29 15:14:45 UTC) #6
eroman
lgtm
4 years, 4 months ago (2016-07-29 17:07:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2192193002/1
4 years, 4 months ago (2016-07-29 17:08:17 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-07-29 17:12:39 UTC) #13
commit-bot: I haz the power
4 years, 4 months ago (2016-07-29 17:14:39 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/893b812617b63d2b71e38bf2a504d2c5d4657c23
Cr-Commit-Position: refs/heads/master@{#408670}

Powered by Google App Engine
This is Rietveld 408576698