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

Issue 4756047: code review 4756047: http: drain the pipe output in TestHandlerPanic to avoi... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 9 months ago by dsymonds
Modified:
13 years, 9 months ago
Reviewers:
brainman
CC:
r, golang-dev
Visibility:
Public.

Description

http: drain the pipe output in TestHandlerPanic to avoid logging deadlock.

Patch Set 1 #

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

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

Total comments: 1

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

Patch Set 5 : diff -r 6c4bbedb13df https://go.googlecode.com/hg/ #

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

Messages

Total messages: 6
dsymonds
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 9 months ago (2011-07-18 02:51:47 UTC) #1
r
http://codereview.appspot.com/4756047/diff/5001/src/pkg/http/serve_test.go File src/pkg/http/serve_test.go (right): http://codereview.appspot.com/4756047/diff/5001/src/pkg/http/serve_test.go#newcode825 src/pkg/http/serve_test.go:825: go io.Copy(ioutil.Discard, pr) why not just close it?
13 years, 9 months ago (2011-07-18 02:53:09 UTC) #2
dsymonds
PTAL
13 years, 9 months ago (2011-07-18 02:57:07 UTC) #3
r
LGTM
13 years, 9 months ago (2011-07-18 02:57:54 UTC) #4
dsymonds
*** Submitted as http://code.google.com/p/go/source/detail?r=3be72c2cebab *** http: drain the pipe output in TestHandlerPanic to avoid logging ...
13 years, 9 months ago (2011-07-18 02:59:25 UTC) #5
brainman
13 years, 9 months ago (2011-07-18 03:06:21 UTC) #6
LGTM. Thank you.

Very easy to shoot yourself in the foot <g>.
Sign in to reply to this message.

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