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

Issue 12435043: code review 12435043: net/http: do not send redundant Connection: close heade... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by josharian
Modified:
10 years, 8 months ago
Reviewers:
bradfitz
CC:
golang-dev, bradfitz
Visibility:
Public.

Description

net/http: do not send redundant Connection: close header in HTTP/1.0 responses HTTP/1.0 connections are closed implicitly, unless otherwise specified. Note that this change does not test or fix "request too large" responses. Reasoning: (a) it complicates tests and fixes, (b) they should be rare, and (c) this is just a minor wire optimization, and thus not really worth worrying about in this context. Fixes issue 5955.

Patch Set 1 #

Patch Set 2 : diff -r 6423f26d0193 https://code.google.com/p/go #

Patch Set 3 : diff -r 6423f26d0193 https://code.google.com/p/go #

Total comments: 11

Patch Set 4 : diff -r ab644299d124 https://code.google.com/p/go #

Patch Set 5 : diff -r ab644299d124 https://code.google.com/p/go #

Patch Set 6 : diff -r ab644299d124 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -2 lines) Patch
M src/pkg/net/http/serve_test.go View 1 2 3 1 chunk +58 lines, -0 lines 0 comments Download
M src/pkg/net/http/server.go View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 10
josharian
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
10 years, 9 months ago (2013-08-04 16:04:58 UTC) #1
bradfitz
https://codereview.appspot.com/12435043/diff/5001/src/pkg/net/http/serve_test.go File src/pkg/net/http/serve_test.go (right): https://codereview.appspot.com/12435043/diff/5001/src/pkg/net/http/serve_test.go#newcode1777 src/pkg/net/http/serve_test.go:1777: keepalive bool keepAlive bool // want a "Connection: keep-alive" ...
10 years, 9 months ago (2013-08-04 19:46:48 UTC) #2
bradfitz
The CL description could be more clear too. This is only about omitting the redundant ...
10 years, 9 months ago (2013-08-04 19:49:35 UTC) #3
josharian
Hello golang-dev@googlegroups.com, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 9 months ago (2013-08-06 00:05:02 UTC) #4
josharian
On 2013/08/06 00:05:02, josharian wrote: > Hello mailto:golang-dev@googlegroups.com, mailto:bradfitz@golang.org (cc: > mailto:golang-dev@googlegroups.com), > > Please ...
10 years, 9 months ago (2013-08-06 00:05:48 UTC) #5
josharian
https://codereview.appspot.com/12435043/diff/5001/src/pkg/net/http/serve_test.go File src/pkg/net/http/serve_test.go (right): https://codereview.appspot.com/12435043/diff/5001/src/pkg/net/http/serve_test.go#newcode1780 src/pkg/net/http/serve_test.go:1780: {req: "GET / HTTP/1.0\r\nExpect: 100-Continue\r\n\r\n"}, On 2013/08/04 19:46:48, bradfitz ...
10 years, 9 months ago (2013-08-06 00:06:16 UTC) #6
josharian
Hello golang-dev@googlegroups.com, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 9 months ago (2013-08-06 00:10:02 UTC) #7
bradfitz
LGTM
10 years, 9 months ago (2013-08-07 01:36:42 UTC) #8
bradfitz
*** Submitted as https://code.google.com/p/go/source/detail?r=83227ed66d41 *** net/http: do not send redundant Connection: close header in HTTP/1.0 ...
10 years, 9 months ago (2013-08-07 01:37:34 UTC) #9
josharian
10 years, 8 months ago (2013-09-12 20:53:26 UTC) #10
Message was sent while issue was closed.
*** Abandoned ***
Sign in to reply to this message.

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