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

Issue 6201044: code review 6201044: net/http: non-keepalive connections close successfully (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 12 months ago by james4k
Modified:
11 years, 3 months ago
Reviewers:
cookieo9, dave
CC:
golang-dev, rsc, bradfitz
Visibility:
Public.

Description

net/http: non-keepalive connections close successfully Connections did not close if Request.Close or Response.Close was true. This meant that if the user wanted the connection to close, or if the server requested it via "Connection: close", the connection would not be closed. Fixes issue 1967.

Patch Set 1 : diff -r a951a803c909 https://code.google.com/p/go #

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

Total comments: 6

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -2 lines) Patch
M src/pkg/net/http/transport.go View 1 chunk +4 lines, -0 lines 0 comments Download
M src/pkg/net/http/transport_test.go View 1 2 7 chunks +84 lines, -2 lines 0 comments Download

Messages

Total messages: 13
james4k
Hello golang-dev@googlegroups.com (cc: bradfitz@golang.org), I'd like you to review this change to https://code.google.com/p/go
11 years, 12 months ago (2012-05-04 08:52:41 UTC) #1
rsc
Can you test this without SetFinalizer, please? There is no guarantee that the GC will ...
11 years, 12 months ago (2012-05-04 13:30:59 UTC) #2
james4k
On 2012/05/04 13:30:59, rsc wrote: > Can you test this without SetFinalizer, please? There is ...
11 years, 12 months ago (2012-05-04 16:38:04 UTC) #3
bradfitz
Sorry for the slow review. I lost this. http://codereview.appspot.com/6201044/diff/3003/src/pkg/net/http/transport_test.go File src/pkg/net/http/transport_test.go (right): http://codereview.appspot.com/6201044/diff/3003/src/pkg/net/http/transport_test.go#newcode41 src/pkg/net/http/transport_test.go:41: var ...
11 years, 11 months ago (2012-05-07 10:18:46 UTC) #4
james4k
OK, I've implemented all of your suggestions. In addition, I've replaced the global state with ...
11 years, 11 months ago (2012-05-07 21:18:40 UTC) #5
bradfitz
LGTM
11 years, 11 months ago (2012-05-18 17:17:37 UTC) #6
bradfitz
*** Submitted as http://code.google.com/p/go/source/detail?r=820ffde8c396 *** net/http: non-keepalive connections close successfully Connections did not close if ...
11 years, 11 months ago (2012-05-18 17:34:41 UTC) #7
cookieo9
On 2012/05/18 17:34:41, bradfitz wrote: > *** Submitted as http://code.google.com/p/go/source/detail?r=820ffde8c396 *** > > net/http: non-keepalive ...
11 years, 11 months ago (2012-05-19 08:06:33 UTC) #8
cookieo9
Full example (works in go1.0.1 but not after this CL): package main import ( "io/ioutil" ...
11 years, 11 months ago (2012-05-19 08:21:52 UTC) #9
bradfitz
Thanks for the report. Will fix. http://code.google.com/p/go/issues/detail?id=3644 On Sat, May 19, 2012 at 1:21 AM, ...
11 years, 11 months ago (2012-05-19 13:13:34 UTC) #10
james4k
*** Abandoned ***
11 years, 3 months ago (2013-01-03 20:42:05 UTC) #11
dave_cheney.net
hg change -D 6201044 not -d, despite what the helpful text says. On Fri, Jan ...
11 years, 3 months ago (2013-01-03 22:59:06 UTC) #12
james4k
11 years, 3 months ago (2013-01-04 00:29:49 UTC) #13
Message was sent while issue was closed.
Eek, sorry. Thanks.

On 2013/01/03 22:59:06, dfc wrote:
> hg change -D 6201044
> 
> not -d, despite what the helpful text says.
> 
> On Fri, Jan 4, 2013 at 7:42 AM,  <mailto:james@james4k.com> wrote:
> > *** Abandoned ***
> >
> > https://codereview.appspot.com/6201044/
Sign in to reply to this message.

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