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

Issue 2845033002: Avoid sending double responding close control frames in WebSockets (Closed)

Created:
3 years, 7 months ago by landell
Modified:
3 years, 7 months ago
Reviewers:
yhirano
CC:
chromium-reviews, cbentzel+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid sending double responding close control frames in WebSockets This avoids sending a second ack close frame when we get a flow control request from the renderer while waiting for the connection to be closed. BUG= Review-Url: https://codereview.chromium.org/2845033002 Cr-Commit-Position: refs/heads/master@{#467964} Committed: https://chromium.googlesource.com/chromium/src/+/cce7ad62c6fc4ee4c7cd1b32c2f1bb77c5f66dc0

Patch Set 1 #

Patch Set 2 : Add unit test #

Total comments: 1

Patch Set 3 : const -> constexpr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -1 line) Patch
M net/websockets/websocket_channel.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/websockets/websocket_channel_test.cc View 1 2 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
landell
@reviewer: PTAL This avoids hitting state_ and close_timer_ DCHECK:s in WebSocketChannel::RespondToClosingHandshake().
3 years, 7 months ago (2017-04-27 08:28:19 UTC) #3
yhirano
Can we have a test?
3 years, 7 months ago (2017-04-27 08:37:52 UTC) #4
landell
On 2017/04/27 08:37:52, yhirano wrote: > Can we have a test? Done. I don't know ...
3 years, 7 months ago (2017-04-27 11:00:04 UTC) #5
yhirano
lgtm https://codereview.chromium.org/2845033002/diff/20001/net/websockets/websocket_channel_test.cc File net/websockets/websocket_channel_test.cc (right): https://codereview.chromium.org/2845033002/diff/20001/net/websockets/websocket_channel_test.cc#newcode2549 net/websockets/websocket_channel_test.cc:2549: static const InitFrame frames[] = { constexpr
3 years, 7 months ago (2017-04-28 10:01:53 UTC) #6
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/2845033002/40001
3 years, 7 months ago (2017-04-28 11:00:59 UTC) #10
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 12:07:58 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/cce7ad62c6fc4ee4c7cd1b32c2f1...

Powered by Google App Engine
This is Rietveld 408576698