Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2)

Issue 5318072: code review 5318072: websocket: return an error HTTP response for bad websoc... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 4 months ago by ukai
Modified:
13 years, 4 months ago
Reviewers:
CC:
golang-dev, bradfitz
Visibility:
Public.

Description

websocket: return an error HTTP response for bad websocket request. websocket spec had changed server-side requiements to return an HTTP response with an appropriate error code (such as 400 Bad Request) when it finds client did not send a handshake that matches websocket protocol, rather than just closing connection. It needs to flush out response before closing connection. Fixes issues 2396.

Patch Set 1 #

Patch Set 2 : diff -r 19bc41642ed8 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 19bc41642ed8 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -10 lines) Patch
M src/pkg/websocket/server.go View 1 2 chunks +6 lines, -0 lines 0 comments Download
M src/pkg/websocket/websocket_test.go View 1 1 chunk +9 lines, -10 lines 0 comments Download

Messages

Total messages: 3
ukai
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 4 months ago (2011-11-02 07:47:31 UTC) #1
bradfitz
LGTM On Wed, Nov 2, 2011 at 12:47 AM, <ukai@google.com> wrote: > Reviewers: golang-dev_googlegroups.com, > ...
13 years, 4 months ago (2011-11-02 15:09:49 UTC) #2
adg
13 years, 4 months ago (2011-11-03 03:13:45 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=487aea019d10 ***

websocket: return an error HTTP response for bad websocket request.

websocket spec had changed server-side requiements to return
an HTTP response with an appropriate error code (such as 400 Bad
Request) when it finds client did not send a handshake that matches
websocket protocol, rather than just closing connection.
It needs to flush out response before closing connection.
Fixes issues 2396.

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/5318072

Committer: Andrew Gerrand <adg@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b