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

Issue 2993873002: [dart:io] Ignore server http upgrade request unless status code is right (Closed)

Created:
3 years, 4 months ago by zra
Modified:
3 years, 4 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[dart:io] Ignore server http upgrade request unless status code is right fixes #30338 R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/21eddc429e9c7260de00a9af7cad94baba830f59

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -2 lines) Patch
M sdk/lib/io/http.dart View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/io/http_parser.dart View 1 chunk +8 lines, -2 lines 2 comments Download

Messages

Total messages: 8 (2 generated)
zra
3 years, 4 months ago (2017-08-07 20:56:51 UTC) #2
eseidel1
Is there an HTTP test suite (maybe from chrome?) that would have caught this edge-case?
3 years, 4 months ago (2017-08-07 21:27:49 UTC) #3
siva
lgtm https://codereview.chromium.org/2993873002/diff/1/sdk/lib/io/http_parser.dart File sdk/lib/io/http_parser.dart (right): https://codereview.chromium.org/2993873002/diff/1/sdk/lib/io/http_parser.dart#newcode670 sdk/lib/io/http_parser.dart:670: _statusCode == HttpStatus.SWITCHING_PROTOCOLS; Not sure about Dart coding ...
3 years, 4 months ago (2017-08-07 21:30:20 UTC) #4
zra
On 2017/08/07 21:27:49, eseidel1 wrote: > Is there an HTTP test suite (maybe from chrome?) ...
3 years, 4 months ago (2017-08-07 22:00:41 UTC) #5
zra
Committed patchset #1 (id:1) manually as 21eddc429e9c7260de00a9af7cad94baba830f59 (presubmit successful).
3 years, 4 months ago (2017-08-07 22:08:55 UTC) #7
zra
3 years, 4 months ago (2017-08-07 22:09:04 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/2993873002/diff/1/sdk/lib/io/http_parser.dart
File sdk/lib/io/http_parser.dart (right):

https://codereview.chromium.org/2993873002/diff/1/sdk/lib/io/http_parser.dart...
sdk/lib/io/http_parser.dart:670: _statusCode == HttpStatus.SWITCHING_PROTOCOLS;
On 2017/08/07 21:30:19, siva wrote:
> Not sure about Dart coding standards but would make sense to add parens around
> the conditions for better readability
> (_statusCode == ...) || (_statusCode == ...)

Couldn't find any guidance in the style guide, but I added the parens for
grouping.

Powered by Google App Engine
This is Rietveld 408576698