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

Issue 2871573011: [DevTools] Respond with a close frame (Closed)

Created:
3 years, 7 months ago by eostroukhov
Modified:
3 years, 7 months ago
Reviewers:
caseq, dgozman
CC:
chromium-reviews, pfeldman, devtools-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] Respond with a close frame WS spec section 5.5.1: If an endpoint receives a Close frame and did not previously send a Close frame, the endpoint MUST send a Close frame in response. (When sending a Close frame in response, the endpoint typically echos the status code it received.) It SHOULD do so as soon as practical. An endpoint MAY delay sending a Close frame until its current message is sent (for instance, if the majority of a fragmented message is already sent, an endpoint MAY send the remaining fragments before sending a Close frame). However, there is no guarantee that the endpoint that has already sent a Close frame will continue to process data. After both sending and receiving a Close message, an endpoint considers the WebSocket connection closed and MUST close the underlying TCP connection. The server MUST close the underlying TCP connection immediately; the client SHOULD wait for the server to close the connection but MAY close the connection at any time after sending and receiving a Close message, e.g., if it has not received a TCP Close from the server in a reasonable time period. BUG=718619 Review-Url: https://codereview.chromium.org/2871573011 Cr-Commit-Position: refs/heads/master@{#470649} Committed: https://chromium.googlesource.com/chromium/src/+/22b6704f77638e8621311aa2c11e6ea1778885bf

Patch Set 1 #

Total comments: 2

Patch Set 2 : [DevTools] Respond with a close frame #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -5 lines) Patch
M chrome/browser/devtools/device/android_web_socket.cc View 1 3 chunks +11 lines, -5 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
eostroukhov
3 years, 7 months ago (2017-05-09 22:00:29 UTC) #2
dgozman
Is it possible to add a test? https://codereview.chromium.org/2871573011/diff/1/chrome/browser/devtools/device/android_web_socket.cc File chrome/browser/devtools/device/android_web_socket.cc (right): https://codereview.chromium.org/2871573011/diff/1/chrome/browser/devtools/device/android_web_socket.cc#newcode66 chrome/browser/devtools/device/android_web_socket.cc:66: if (request_buffer_.length() ...
3 years, 7 months ago (2017-05-09 23:00:38 UTC) #3
eostroukhov
Unfortunately, looks like adding a test would be a significant investment of time - it ...
3 years, 7 months ago (2017-05-09 23:53:14 UTC) #6
dgozman
lgtm
3 years, 7 months ago (2017-05-10 16:55:26 UTC) #11
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/2871573011/20001
3 years, 7 months ago (2017-05-10 18:11:25 UTC) #15
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 18:26:37 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/22b6704f77638e8621311aa2c11e...

Powered by Google App Engine
This is Rietveld 408576698