diff options
author | Russ Cox <rsc@golang.org> | 2011-11-13 22:42:42 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-11-13 22:42:42 -0500 |
commit | cd15348468bfb3764a3f1f6450251b1cb7529f73 (patch) | |
tree | f521ada25a497bbc674dbdb93f2ad1c05310fee3 /src/pkg/net/http/transport.go | |
parent | 73ee68de7733ce0fe1ba96f0e4ba0e66a00aa709 (diff) | |
download | go-cd15348468bfb3764a3f1f6450251b1cb7529f73.tar.gz |
various: reduce overuse of os.EINVAL + others
R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/5372081
Diffstat (limited to 'src/pkg/net/http/transport.go')
-rw-r--r-- | src/pkg/net/http/transport.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/net/http/transport.go b/src/pkg/net/http/transport.go index da5244b2c..e622e41f0 100644 --- a/src/pkg/net/http/transport.go +++ b/src/pkg/net/http/transport.go @@ -504,7 +504,7 @@ func (pc *persistConn) expectingResponse() bool { var remoteSideClosedFunc func(error) bool // or nil to use default func remoteSideClosed(err error) bool { - if err == io.EOF || err == os.EINVAL { + if err == io.EOF { return true } if remoteSideClosedFunc != nil { |