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

Issue 565573002: Implement handshake timeout on WebSocket (Closed)

Created:
6 years, 3 months ago by yhirano
Modified:
6 years, 3 months ago
Reviewers:
Adam Rice
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Implement handshake timeout on WebSocket Previously, WebSocket has no handshake timeout, i.e. It waited unlimitedly when the server accepts the TCP connection but doesn't send any handshake response. This CL fixes the issue. BUG=391263 R=ricea@chromium.org Committed: https://crrev.com/569e09ce5c01419c056b3d557d64c0830e45d7c9 Cr-Commit-Position: refs/heads/master@{#294373}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -16 lines) Patch
M net/websockets/websocket_stream.cc View 1 2 3 7 chunks +35 lines, -5 lines 0 comments Download
M net/websockets/websocket_stream_test.cc View 1 2 3 4 5 7 chunks +86 lines, -8 lines 0 comments Download
M net/websockets/websocket_test_util.h View 1 2 3 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
yhirano
PTAL. I set 1 minute for the timeout duration.
6 years, 3 months ago (2014-09-11 06:30:14 UTC) #2
Adam Rice
https://codereview.chromium.org/565573002/diff/40001/net/websockets/websocket_stream.cc File net/websockets/websocket_stream.cc (right): https://codereview.chromium.org/565573002/diff/40001/net/websockets/websocket_stream.cc#newcode118 net/websockets/websocket_stream.cc:118: const TimeDelta timeout = TimeDelta::FromMinutes(1); The timeout should be ...
6 years, 3 months ago (2014-09-11 07:52:42 UTC) #3
yhirano
https://codereview.chromium.org/565573002/diff/40001/net/websockets/websocket_stream.cc File net/websockets/websocket_stream.cc (right): https://codereview.chromium.org/565573002/diff/40001/net/websockets/websocket_stream.cc#newcode118 net/websockets/websocket_stream.cc:118: const TimeDelta timeout = TimeDelta::FromMinutes(1); On 2014/09/11 07:52:42, Adam ...
6 years, 3 months ago (2014-09-11 08:45:37 UTC) #4
Adam Rice
https://codereview.chromium.org/565573002/diff/80001/net/websockets/websocket_stream_test.cc File net/websockets/websocket_stream_test.cc (right): https://codereview.chromium.org/565573002/diff/80001/net/websockets/websocket_stream_test.cc#newcode1148 net/websockets/websocket_stream_test.cc:1148: EXPECT_FALSE(request_info_); I think you should remove these two assertions ...
6 years, 3 months ago (2014-09-11 09:47:39 UTC) #5
yhirano
https://codereview.chromium.org/565573002/diff/80001/net/websockets/websocket_stream_test.cc File net/websockets/websocket_stream_test.cc (right): https://codereview.chromium.org/565573002/diff/80001/net/websockets/websocket_stream_test.cc#newcode1148 net/websockets/websocket_stream_test.cc:1148: EXPECT_FALSE(request_info_); On 2014/09/11 09:47:39, Adam Rice wrote: > I ...
6 years, 3 months ago (2014-09-11 10:46:49 UTC) #6
Adam Rice
lgtm
6 years, 3 months ago (2014-09-11 11:08:11 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/565573002/100001
6 years, 3 months ago (2014-09-11 11:10:51 UTC) #9
commit-bot: I haz the power
Committed patchset #6 (id:100001) as ef792ffcbda5e9e9c4c97e86c33cc71f98fd4bc1
6 years, 3 months ago (2014-09-11 12:08:31 UTC) #10
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 12:10:34 UTC) #11
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/569e09ce5c01419c056b3d557d64c0830e45d7c9
Cr-Commit-Position: refs/heads/master@{#294373}

Powered by Google App Engine
This is Rietveld 408576698