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

Issue 2328453002: Refactor WebSocketTransportClientSocketPool's socket handing out code (Closed)

Created:
4 years, 3 months ago by tyoshino (SeeGerritForStatus)
Modified:
4 years, 3 months ago
Reviewers:
mmenke, yhirano
CC:
cbentzel+watch_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor WebSocketTransportClientSocketPool's socket handing out code Tries to make the code a little more readable to help debugging the associated bug. For the OK result, BoundNetLog::EndEventWithNetErrorCode() was called after BoundNetLog::EndEvent() in WebSocketTransportClientSocketPool::RequestSocket(). Fixed this to call only EndEvent(). Removed pre-condition checks before ActivateStalledRequest() which are already performed by its while loop. Added DCHECK_NE(error, OK) to FlushWithError() to make sure OK is never received from that path. Reordered some lines. R=yhirano@chromium.org,mmenke@chromium.org BUG=642363 Committed: https://crrev.com/913f8b743b1922bd332f01d7456ad688b80463cf Cr-Commit-Position: refs/heads/master@{#419127}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase #

Patch Set 3 : Addressed #5 #

Patch Set 4 : Rebase #

Patch Set 5 : Fixed ASAN failure #

Total comments: 2

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -50 lines) Patch
M net/socket/websocket_transport_client_socket_pool.h View 2 chunks +6 lines, -0 lines 0 comments Download
M net/socket/websocket_transport_client_socket_pool.cc View 1 2 3 4 7 chunks +60 lines, -50 lines 0 comments Download

Messages

Total messages: 29 (16 generated)
tyoshino (SeeGerritForStatus)
4 years, 3 months ago (2016-09-08 08:09:41 UTC) #4
yhirano
lgtm https://codereview.chromium.org/2328453002/diff/1/net/socket/websocket_transport_client_socket_pool.cc File net/socket/websocket_transport_client_socket_pool.cc (right): https://codereview.chromium.org/2328453002/diff/1/net/socket/websocket_transport_client_socket_pool.cc#newcode505 net/socket/websocket_transport_client_socket_pool.cc:505: DCHECK(socket.get()); .get() is not needed. https://codereview.chromium.org/2328453002/diff/1/net/socket/websocket_transport_client_socket_pool.cc#newcode519 net/socket/websocket_transport_client_socket_pool.cc:519: if ...
4 years, 3 months ago (2016-09-12 10:29:33 UTC) #5
tyoshino (SeeGerritForStatus)
+mmenke https://codereview.chromium.org/2328453002/diff/1/net/socket/websocket_transport_client_socket_pool.cc File net/socket/websocket_transport_client_socket_pool.cc (right): https://codereview.chromium.org/2328453002/diff/1/net/socket/websocket_transport_client_socket_pool.cc#newcode505 net/socket/websocket_transport_client_socket_pool.cc:505: DCHECK(socket.get()); On 2016/09/12 at 10:29:33, yhirano (slow) wrote: ...
4 years, 3 months ago (2016-09-13 02:21:02 UTC) #7
mmenke
LGTM, rubberstamp. If you guys want to add per-file owners entries for these files that ...
4 years, 3 months ago (2016-09-13 14:38:28 UTC) #8
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/2328453002/60001
4 years, 3 months ago (2016-09-14 07:15:17 UTC) #12
tyoshino (SeeGerritForStatus)
On 2016/09/13 14:38:28, mmenke wrote: > LGTM, rubberstamp. If you guys want to add per-file ...
4 years, 3 months ago (2016-09-14 07:39:13 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/226167)
4 years, 3 months ago (2016-09-14 09:46:45 UTC) #15
tyoshino (SeeGerritForStatus)
Hi yhirano, I've fixed ASAN build failure in PS5. Sorry, but please take a look.
4 years, 3 months ago (2016-09-14 14:11:21 UTC) #20
yhirano
lgtm https://codereview.chromium.org/2328453002/diff/80001/net/socket/websocket_transport_client_socket_pool.cc File net/socket/websocket_transport_client_socket_pool.cc (right): https://codereview.chromium.org/2328453002/diff/80001/net/socket/websocket_transport_client_socket_pool.cc#newcode554 net/socket/websocket_transport_client_socket_pool.cc:554: job = NULL; [optional] nullptr
4 years, 3 months ago (2016-09-16 03:41:04 UTC) #21
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/2328453002/100001
4 years, 3 months ago (2016-09-16 06:50:08 UTC) #24
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/2328453002/diff/80001/net/socket/websocket_transport_client_socket_pool.cc File net/socket/websocket_transport_client_socket_pool.cc (right): https://codereview.chromium.org/2328453002/diff/80001/net/socket/websocket_transport_client_socket_pool.cc#newcode554 net/socket/websocket_transport_client_socket_pool.cc:554: job = NULL; On 2016/09/16 03:41:04, yhirano (slow) wrote: ...
4 years, 3 months ago (2016-09-16 06:55:12 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-16 07:52:59 UTC) #27
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 07:54:29 UTC) #29
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/913f8b743b1922bd332f01d7456ad688b80463cf
Cr-Commit-Position: refs/heads/master@{#419127}

Powered by Google App Engine
This is Rietveld 408576698