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

Issue 6823075: Accept new WebSocket handshake format (hybi-04 and later). (Closed)

Created:
9 years, 8 months ago by Yuta Kitamura
Modified:
9 years, 7 months ago
CC:
chromium-reviews, tyoshino (SeeGerritForStatus), Takashi Toyoshima
Visibility:
Public.

Description

Accept new WebSocket handshake format (hybi-04 and later). To update WebSocket protocol implementation in WebKit, WebSocketRequestHandshakeHandler and WebSocketResponseHandler need to be able to understand both old handshake (hybi-03 and prior, including hixie-76) and new handshake (hybi-04 and later). BUG=64470 TEST=net_unittests --gtest_filter="WebSocketHandshake*HandlerTest.*" Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=84427

Patch Set 1 #

Patch Set 2 : Revise comments. #

Total comments: 5

Patch Set 3 : Use Sec-WebSocket-Version. Add more assertions. #

Total comments: 4

Patch Set 4 : Replace DCHECKs with DVLOG. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+553 lines, -57 lines) Patch
M net/websockets/websocket_handshake_handler.h View 1 2 5 chunks +37 lines, -2 lines 0 comments Download
M net/websockets/websocket_handshake_handler.cc View 1 2 3 19 chunks +170 lines, -53 lines 0 comments Download
M net/websockets/websocket_handshake_handler_unittest.cc View 1 2 16 chunks +344 lines, -2 lines 0 comments Download
M net/websockets/websocket_job.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Yuta Kitamura
Hi Ukai-san, could you review this? Also, could you suggest anyone in net/OWNERS list who ...
9 years, 8 months ago (2011-04-13 02:49:15 UTC) #1
ukai
On 2011/04/13 02:49:15, Yuta Kitamura wrote: > Hi Ukai-san, could you review this? Also, could ...
9 years, 8 months ago (2011-04-13 03:53:27 UTC) #2
ukai
http://codereview.chromium.org/6823075/diff/2001/net/websockets/websocket_handshake_handler.h File net/websockets/websocket_handshake_handler.h (right): http://codereview.chromium.org/6823075/diff/2001/net/websockets/websocket_handshake_handler.h#newcode81 net/websockets/websocket_handshake_handler.h:81: bool is_hybi04_handshake() const; maybe, HasSecWebSocketKey() or HasKey3Data() ? or ...
9 years, 8 months ago (2011-04-13 04:09:00 UTC) #3
Yuta Kitamura
http://codereview.chromium.org/6823075/diff/2001/net/websockets/websocket_handshake_handler.cc File net/websockets/websocket_handshake_handler.cc (right): http://codereview.chromium.org/6823075/diff/2001/net/websockets/websocket_handshake_handler.cc#newcode402 net/websockets/websocket_handshake_handler.cc:402: DCHECK(base::Base64Encode(hash, &websocket_accept)); Call to Base64Encode should not be inside ...
9 years, 8 months ago (2011-04-13 09:57:52 UTC) #4
Yuta Kitamura
http://codereview.chromium.org/6823075/diff/2001/net/websockets/websocket_handshake_handler.cc File net/websockets/websocket_handshake_handler.cc (right): http://codereview.chromium.org/6823075/diff/2001/net/websockets/websocket_handshake_handler.cc#newcode402 net/websockets/websocket_handshake_handler.cc:402: DCHECK(base::Base64Encode(hash, &websocket_accept)); On 2011/04/13 09:57:52, Yuta Kitamura wrote: > ...
9 years, 8 months ago (2011-04-13 11:23:50 UTC) #5
Yuta Kitamura
Hi Ukai-san, could you review this?
9 years, 7 months ago (2011-05-06 04:35:24 UTC) #6
ukai
LGTM http://codereview.chromium.org/6823075/diff/9001/net/websockets/websocket_handshake_handler.cc File net/websockets/websocket_handshake_handler.cc (right): http://codereview.chromium.org/6823075/diff/9001/net/websockets/websocket_handshake_handler.cc#newcode153 net/websockets/websocket_handshake_handler.cc:153: DCHECK(conversion_success); here, we're checking server's response, so it ...
9 years, 7 months ago (2011-05-06 05:02:52 UTC) #7
Yuta Kitamura
http://codereview.chromium.org/6823075/diff/9001/net/websockets/websocket_handshake_handler.cc File net/websockets/websocket_handshake_handler.cc (right): http://codereview.chromium.org/6823075/diff/9001/net/websockets/websocket_handshake_handler.cc#newcode153 net/websockets/websocket_handshake_handler.cc:153: DCHECK(conversion_success); This function is only used for a request ...
9 years, 7 months ago (2011-05-06 08:30:32 UTC) #8
ukai
Did you upload new patch set? On 2011/05/06 08:30:32, Yuta Kitamura wrote: > http://codereview.chromium.org/6823075/diff/9001/net/websockets/websocket_handshake_handler.cc > ...
9 years, 7 months ago (2011-05-06 08:41:42 UTC) #9
Yuta Kitamura
Uploaded a new patch set.
9 years, 7 months ago (2011-05-06 08:46:52 UTC) #10
ukai
LGTM
9 years, 7 months ago (2011-05-06 08:49:36 UTC) #11
commit-bot: I haz the power
9 years, 7 months ago (2011-05-06 10:14:29 UTC) #12
Change committed as 84427

Powered by Google App Engine
This is Rietveld 408576698