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

Issue 61150043: code review 61150043: net/http: close body in benchmarks (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by dvyukov
Modified:
11 years, 8 months ago
CC:
bradfitz, golang-codereviews
Visibility:
Public.

Description

net/http: close body in benchmarks Is it required? Why don't we do it?

Patch Set 1 #

Patch Set 2 : diff -r ae14bde9ce3c https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 3 : diff -r ae14bde9ce3c https://dvyukov%40google.com@code.google.com/p/go/ #

Total comments: 6

Patch Set 4 : diff -r 6c201ac1f315 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 5 : diff -r b29b14df7e45 https://dvyukov%40google.com@code.google.com/p/go/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M src/pkg/net/http/serve_test.go View 1 2 3 3 chunks +4 lines, -0 lines 1 comment Download

Messages

Total messages: 10
dvyukov
Hello bradfitz@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
11 years, 8 months ago (2014-02-08 11:42:10 UTC) #1
dvyukov
On 2014/02/08 11:42:10, dvyukov wrote: > Hello mailto:bradfitz@golang.org (cc: mailto:golang-codereviews@googlegroups.com), > > I'd like you ...
11 years, 8 months ago (2014-02-12 18:40:44 UTC) #2
dvyukov
On 2014/02/08 11:42:10, dvyukov wrote: > Hello mailto:bradfitz@golang.org (cc: mailto:golang-codereviews@googlegroups.com), > > I'd like you ...
11 years, 8 months ago (2014-02-12 18:40:45 UTC) #3
bradfitz
https://codereview.appspot.com/61150043/diff/40001/src/pkg/net/http/serve_test.go File src/pkg/net/http/serve_test.go (right): https://codereview.appspot.com/61150043/diff/40001/src/pkg/net/http/serve_test.go#newcode2261 src/pkg/net/http/serve_test.go:2261: defer res.Body.Close() don't defer. move down one line. don't ...
11 years, 8 months ago (2014-02-12 18:43:59 UTC) #4
dvyukov
PTAL https://codereview.appspot.com/61150043/diff/40001/src/pkg/net/http/serve_test.go File src/pkg/net/http/serve_test.go (right): https://codereview.appspot.com/61150043/diff/40001/src/pkg/net/http/serve_test.go#newcode2261 src/pkg/net/http/serve_test.go:2261: defer res.Body.Close() On 2014/02/12 18:44:00, bradfitz wrote: > ...
11 years, 8 months ago (2014-02-16 08:27:30 UTC) #5
bradfitz
LGTM On Feb 16, 2014 12:27 AM, <dvyukov@google.com> wrote: > PTAL > > > https://codereview.appspot.com/61150043/diff/40001/src/ ...
11 years, 8 months ago (2014-02-16 17:04:47 UTC) #6
dvyukov
*** Submitted as https://code.google.com/p/go/source/detail?r=f51841430d08 *** net/http: close body in benchmarks Is it required? Why don't ...
11 years, 8 months ago (2014-02-17 02:04:44 UTC) #7
gobot
This CL appears to have broken the windows-386-ec2 builder.
11 years, 8 months ago (2014-02-17 03:08:43 UTC) #8
fresh.grass.yum
https://codereview.appspot.com/61150043/diff/80001/src/pkg/net/http/serve_test.go File src/pkg/net/http/serve_test.go (right): https://codereview.appspot.com/61150043/diff/80001/src/pkg/net/http/serve_test.go#newcode2261 src/pkg/net/http/serve_test.go:2261: defer res.Body.Close() This line slipped through. It should have ...
11 years, 8 months ago (2014-02-17 12:22:50 UTC) #9
dvyukov
11 years, 8 months ago (2014-02-17 17:47:55 UTC) #10
On Mon, Feb 17, 2014 at 4:22 PM,  <fresh.grass.yum@gmail.com> wrote:
>
>
https://codereview.appspot.com/61150043/diff/80001/src/pkg/net/http/serve_tes...
> File src/pkg/net/http/serve_test.go (right):
>
>
https://codereview.appspot.com/61150043/diff/80001/src/pkg/net/http/serve_tes...
> src/pkg/net/http/serve_test.go:2261: defer res.Body.Close()
> This line slipped through. It should have been removed, as per the
> comment from bradfitz:
> "src/pkg/net/http/serve_test.go:2261: defer res.Body.Close()
>
> don't defer. move down one line. don't need b.N defers."
>
> https://codereview.appspot.com/61150043/


Yes, thanks, there is already a CL mailed that fixes it.
Sign in to reply to this message.

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