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

Issue 85560045: code review 85560045: net/http: close Body in client code always, even on err... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by bradfitz
Modified:
10 years, 1 month ago
Reviewers:
aram2, gobot, rsc, 0intro
CC:
golang-codereviews, ioe, adg, dsymonds, rsc
Visibility:
Public.

Description

net/http: close Body in client code always, even on errors, and document Fixes Issue 6981

Patch Set 1 #

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

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

Patch Set 4 : diff -r 3aa17be30dba https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -3 lines) Patch
M src/pkg/net/http/client.go View 1 2 3 5 chunks +11 lines, -3 lines 0 comments Download
M src/pkg/net/http/request.go View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M src/pkg/net/http/transport.go View 1 2 3 4 chunks +7 lines, -0 lines 0 comments Download
M src/pkg/net/http/transport_test.go View 1 1 chunk +46 lines, -0 lines 0 comments Download

Messages

Total messages: 29
bradfitz
Hello golang-codereviews@googlegroups.com (cc: adg@golang.org, dsymonds@golang.org, rsc@golang.org), I'd like you to review this change to https://go.googlecode.com/hg/
10 years, 1 month ago (2014-04-11 06:25:01 UTC) #1
ioe
On Friday, April 11, 2014 8:25:02 AM UTC+2, Brad Fitzpatrick wrote: > net/http: close Body ...
10 years, 1 month ago (2014-04-12 21:44:01 UTC) #2
bradfitz
On Sat, Apr 12, 2014 at 2:44 PM, <nightlyone@googlemail.com> wrote: > On Friday, April 11, ...
10 years, 1 month ago (2014-04-12 21:54:10 UTC) #3
ioe
Thanks for this great explanation detailing your research for this issue. Does it make sense ...
10 years, 1 month ago (2014-04-13 13:41:33 UTC) #4
bradfitz
Ping. Russ? Would like to get this in before beta. On Apr 12, 2014 2:54 ...
10 years, 1 month ago (2014-04-14 14:47:50 UTC) #5
rsc
LGTM let's add something to the 1.3 notes too
10 years, 1 month ago (2014-04-14 14:51:00 UTC) #6
bradfitz
*** Submitted as https://code.google.com/p/go/source/detail?r=3a412db5d515 *** net/http: close Body in client code always, even on errors, ...
10 years, 1 month ago (2014-04-14 15:06:18 UTC) #7
gobot
This CL appears to have broken the linux-amd64-race builder. See http://build.golang.org/log/a2e401fdcd4903a61a3375bff5da702a20ddafad
10 years, 1 month ago (2014-04-14 15:26:43 UTC) #8
bradfitz
Sigh. On it. On Apr 14, 2014 8:26 AM, <gobot@golang.org> wrote: > This CL appears ...
10 years, 1 month ago (2014-04-14 15:27:51 UTC) #9
0intro
It seems TestTransportClosesBodyOnError was sometimes timing out on Plan 9 and is now always timing ...
10 years, 1 month ago (2014-04-14 20:01:11 UTC) #10
0intro
> It seems TestTransportClosesBodyOnError was sometimes timing out on Plan 9 and > is now ...
10 years, 1 month ago (2014-04-14 20:59:08 UTC) #11
bradfitz
On Mon, Apr 14, 2014 at 1:59 PM, <0intro@gmail.com> wrote: > It seems TestTransportClosesBodyOnError was ...
10 years, 1 month ago (2014-04-14 21:08:31 UTC) #12
0intro
> $ go test -v -run=TestTransportClosesBodyOnError > === RUN TestTransportClosesBodyOnError > 2014/04/14 14:06:06 Write error ...
10 years, 1 month ago (2014-04-14 21:15:24 UTC) #13
bradfitz
On Mon, Apr 14, 2014 at 2:15 PM, David du Colombier <0intro@gmail.com>wrote: > > $ ...
10 years, 1 month ago (2014-04-14 21:21:04 UTC) #14
aram2
On Mon, Apr 14, 2014 at 11:08 PM, Brad Fitzpatrick <bradfitz@golang.org> wrote: > The peer ...
10 years, 1 month ago (2014-04-14 21:23:24 UTC) #15
bradfitz
On Mon, Apr 14, 2014 at 2:23 PM, Aram Hăvărneanu <aram.h@mgk.ro> wrote: > On Mon, ...
10 years, 1 month ago (2014-04-14 21:26:27 UTC) #16
0intro
> What's this produce on plan9? cpu% go run brad.go 2014/04/14 23:25:44 Read = 0 ...
10 years, 1 month ago (2014-04-14 21:26:37 UTC) #17
aram2
I have prototype code that uses notes (plan 9 signals) to properly do net Closing. ...
10 years, 1 month ago (2014-04-14 21:29:08 UTC) #18
aram2
On Mon, Apr 14, 2014 at 11:28 PM, Aram Hăvărneanu <aram.h@mgk.ro> wrote: > I have ...
10 years, 1 month ago (2014-04-14 21:29:57 UTC) #19
0intro
> Is there a issue number tracking that? I don't think so. I've created the ...
10 years, 1 month ago (2014-04-14 21:30:15 UTC) #20
0intro
> > I have prototype code that uses notes (plan 9 signals) to properly > ...
10 years, 1 month ago (2014-04-14 21:35:06 UTC) #21
bradfitz
On Mon, Apr 14, 2014 at 2:34 PM, David du Colombier <0intro@gmail.com>wrote: > > > ...
10 years, 1 month ago (2014-04-14 21:37:55 UTC) #22
0intro
> I've created an OS-Plan9 standard label and applied it to all the > bugs ...
10 years, 1 month ago (2014-04-14 21:41:35 UTC) #23
bradfitz
On Mon, Apr 14, 2014 at 2:29 PM, David du Colombier <0intro@gmail.com>wrote: > > Is ...
10 years, 1 month ago (2014-04-14 22:08:53 UTC) #24
0intro
> I tried to boot it with Virtual Box (after unbzipping it and renaming > ...
10 years, 1 month ago (2014-04-15 04:32:20 UTC) #25
0intro
I'm uploading a vdi image: http://www.9legacy.org/download/plan9-go.vdi.bz2 You have to use either VirtualBox < 4.2 or ...
10 years, 1 month ago (2014-04-15 06:11:20 UTC) #26
0intro
Aram started a change to implement proper net closing and timeout on Plan 9, which ...
10 years, 1 month ago (2014-04-15 22:21:00 UTC) #27
bradfitz
Is there any urgency? We're not releasing Go 1.3 binaries for Plan 9 anyway. If ...
10 years, 1 month ago (2014-04-15 22:32:39 UTC) #28
0intro
10 years, 1 month ago (2014-04-15 22:46:48 UTC) #29
> Is there any urgency? We're not releasing Go 1.3 binaries for Plan 9
> anyway.
> 
> If you want to add a t.Skip for runtime.GOOS == "plan9" for that http
> test so it doesn't mask other regressions, that's fine.  As long as
> the t.Skip string contains a reference to golang.org/issue/NNNNN.

I'm a bit worried by the fact we can miss other issues when
the builder is always displaying "fail". Also, the others
tests are no longer being run.

I've submitted CL 87800044 to skip this particular test.

-- 
David du Colombier
Sign in to reply to this message.

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