New issue
Advanced search Search tips

Issue 825231 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Mar 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac , Fuchsia
Pri: 3
Type: Bug

Blocking:
issue 801564



Sign in to add a comment

Do not send default port number in WebSocket over HTTP/2 request

Project Member Reported by b...@chromium.org, Mar 23 2018

Issue description

A typical WebSocket over HTTP/2 request currently looks like this:

t=24662 [st=20887]    HTTP2_SESSION_SEND_HEADERS
                      --> exclusive = true
                      --> fin = false
                      --> has_priority = true
                      --> :method: CONNECT
                          :authority: nghttp2.org:443
                          :scheme: https
                          :path: /echo
                          :protocol: websocket
                          pragma: no-cache
                          cache-control: no-cache
                          origin: https://nghttp2.org
                          sec-websocket-version: 13
                          user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3377.1 Safari/537.36
                          accept-encoding: gzip, deflate, br
                          accept-language: en-US,en;q=0.9,hu;q=0.8
                          sec-websocket-extensions: permessage-deflate; client_max_window_bits
                      --> parent_stream_id = 0
                      --> source_dependency = 13707 (URL_REQUEST)
                      --> stream_id = 15
                      --> weight = 147

However, since 443 is the default port for https, there is no need to explicitly include this.

Also see
https://lists.w3.org/Archives/Public/ietf-http-wg/2018JanMar/0189.html
 

Comment 1 by b...@chromium.org, Mar 23 2018

Blocking: 801564
Project Member

Comment 2 by bugdroid1@chromium.org, Mar 27 2018

Project Member

Comment 3 by bugdroid1@chromium.org, Mar 27 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/19afcd650e0dcf198e4afa936426f84c4f7c93cf

commit 19afcd650e0dcf198e4afa936426f84c4f7c93cf
Author: Bence Béky <bnc@chromium.org>
Date: Tue Mar 27 12:04:16 2018

Remove unnecessary test method arguments.

In websocket_stream_test.cc, test methods take URL, host (with optional
port), and path arguments, which are redundant.  This CL removes the
host and path arguments and generates them from URL.

Also, every test uses the same origin and host_for_cookies, therefore
there is no need to pass those as arguments either.

Bug:  825231 
Change-Id: I31c0c7a44e3e0d28d10c5b1b0c61b2fc744c7e48
Reviewed-on: https://chromium-review.googlesource.com/980958
Reviewed-by: Adam Rice <ricea@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#546083}
[modify] https://crrev.com/19afcd650e0dcf198e4afa936426f84c4f7c93cf/net/websockets/websocket_stream_test.cc

Comment 4 by b...@chromium.org, Mar 27 2018

Status: Fixed (was: Started)

Sign in to add a comment