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

Issue 2258003003: [WebSocket] Ignore connection errors in the shutdown sequence (Closed)

Created:
4 years, 4 months ago by yhirano
Modified:
4 years, 4 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[WebSocket] Ignore connection errors in the shutdown sequence WebSocketHandleImpl::OnConnectionError is called in the shutdown sequence and at that time |*client_| is invalid. In the shutdown sequence it is not guaranteed that the client destructs the WebSocketHandleImpl correctly and hence we need to ignore the error. This is a workaround. BUG=637949 Committed: https://crrev.com/fce0b57ea91c0bbb263601906caf389ecf41c277 Cr-Commit-Position: refs/heads/master@{#413092}

Patch Set 1 : fix #

Patch Set 2 : fix #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M content/renderer/websockethandle_impl.cc View 1 1 chunk +9 lines, -0 lines 1 comment Download

Messages

Total messages: 31 (21 generated)
yhirano
4 years, 4 months ago (2016-08-19 07:40:29 UTC) #16
haraken
Or is it an option to add the 'if(!Platform::current())' check to the callbacks so that ...
4 years, 4 months ago (2016-08-19 07:42:29 UTC) #17
yhirano
On 2016/08/19 07:42:29, haraken wrote: > Or is it an option to add the 'if(!Platform::current())' ...
4 years, 4 months ago (2016-08-19 07:47:39 UTC) #18
haraken
On 2016/08/19 07:47:39, yhirano wrote: > On 2016/08/19 07:42:29, haraken wrote: > > Or is ...
4 years, 4 months ago (2016-08-19 07:51:56 UTC) #19
yhirano
On 2016/08/19 07:51:56, haraken wrote: > On 2016/08/19 07:47:39, yhirano wrote: > > On 2016/08/19 ...
4 years, 4 months ago (2016-08-19 09:25:13 UTC) #22
haraken
On 2016/08/19 09:25:13, yhirano wrote: > On 2016/08/19 07:51:56, haraken wrote: > > On 2016/08/19 ...
4 years, 4 months ago (2016-08-19 09:27:30 UTC) #23
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/2258003003/60001
4 years, 4 months ago (2016-08-19 09:29:08 UTC) #25
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years, 4 months ago (2016-08-19 09:33:07 UTC) #27
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/fce0b57ea91c0bbb263601906caf389ecf41c277 Cr-Commit-Position: refs/heads/master@{#413092}
4 years, 4 months ago (2016-08-19 09:35:05 UTC) #29
darin (slow to review)
4 years, 4 months ago (2016-08-19 15:54:16 UTC) #31
Message was sent while issue was closed.
https://codereview.chromium.org/2258003003/diff/60001/content/renderer/websoc...
File content/renderer/websockethandle_impl.cc (right):

https://codereview.chromium.org/2258003003/diff/60001/content/renderer/websoc...
content/renderer/websockethandle_impl.cc:162: if (!blink::Platform::current()) {
This seems like a sensible band-aid.

Powered by Google App Engine
This is Rietveld 408576698