|
|
Created:
4 years, 3 months ago by tyoshino (SeeGerritForStatus) Modified:
4 years, 3 months ago CC:
cbentzel+watch_chromium.org, chromium-reviews Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionRefactor 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 #
Messages
Total messages: 29 (16 generated)
Description was changed from ========== Refactor WebSocketTransportClientSocketPool's socket handing out code Tries to make the code a little more readable to help debugging the associated bug. BUG=642363 ========== to ========== 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. BUG=642363 ==========
Description was changed from ========== 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. BUG=642363 ========== to ========== 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. BUG=642363 ==========
tyoshino@chromium.org changed reviewers: + yhirano@chromium.org
lgtm https://codereview.chromium.org/2328453002/diff/1/net/socket/websocket_transp... File net/socket/websocket_transport_client_socket_pool.cc (right): https://codereview.chromium.org/2328453002/diff/1/net/socket/websocket_transp... 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_transp... net/socket/websocket_transport_client_socket_pool.cc:519: if (socket.get()) { .get() is not needed.
tyoshino@chromium.org changed reviewers: + mmenke@chromium.org
+mmenke https://codereview.chromium.org/2328453002/diff/1/net/socket/websocket_transp... File net/socket/websocket_transport_client_socket_pool.cc (right): https://codereview.chromium.org/2328453002/diff/1/net/socket/websocket_transp... net/socket/websocket_transport_client_socket_pool.cc:505: DCHECK(socket.get()); On 2016/09/12 at 10:29:33, yhirano (slow) wrote: > .get() is not needed. Done https://codereview.chromium.org/2328453002/diff/1/net/socket/websocket_transp... net/socket/websocket_transport_client_socket_pool.cc:519: if (socket.get()) { On 2016/09/12 at 10:29:33, yhirano (slow) wrote: > .get() is not needed. Done
LGTM, rubberstamp. If you guys want to add per-file owners entries for these files that delegates them to the owners in net/websocket/OWNERS, I'm happy to sign off on it. Also happy to just rubberstamp changes to this file.
Description was changed from ========== 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. BUG=642363 ========== to ========== 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 ==========
The CQ bit was checked by tyoshino@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from yhirano@chromium.org, mmenke@chromium.org Link to the patchset: https://codereview.chromium.org/2328453002/#ps60001 (title: "Rebase")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2016/09/13 14:38:28, mmenke wrote: > LGTM, rubberstamp. If you guys want to add per-file owners entries for these > files that delegates them to the owners in net/websocket/OWNERS, I'm happy to > sign off on it. Also happy to just rubberstamp changes to this file. Thanks. Created https://codereview.chromium.org/2335133005/
The CQ bit was unchecked by commit-bot@chromium.org
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_...)
The CQ bit was checked by tyoshino@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Hi yhirano, I've fixed ASAN build failure in PS5. Sorry, but please take a look.
lgtm https://codereview.chromium.org/2328453002/diff/80001/net/socket/websocket_tr... File net/socket/websocket_transport_client_socket_pool.cc (right): https://codereview.chromium.org/2328453002/diff/80001/net/socket/websocket_tr... net/socket/websocket_transport_client_socket_pool.cc:554: job = NULL; [optional] nullptr
The CQ bit was checked by tyoshino@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from mmenke@chromium.org, yhirano@chromium.org Link to the patchset: https://codereview.chromium.org/2328453002/#ps100001 (title: "Rebase")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2328453002/diff/80001/net/socket/websocket_tr... File net/socket/websocket_transport_client_socket_pool.cc (right): https://codereview.chromium.org/2328453002/diff/80001/net/socket/websocket_tr... net/socket/websocket_transport_client_socket_pool.cc:554: job = NULL; On 2016/09/16 03:41:04, yhirano (slow) wrote: > [optional] nullptr Created another CL https://codereview.chromium.org/2341233002/
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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 ==========
Message was sent while issue was closed.
Committed patchset #6 (id:100001)
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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} ==========
Message was sent while issue was closed.
Patchset 6 (id:??) landed as https://crrev.com/913f8b743b1922bd332f01d7456ad688b80463cf Cr-Commit-Position: refs/heads/master@{#419127} |