summaryrefslogtreecommitdiff
path: root/src/pkg/net/http/transport.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-11-13 22:42:42 -0500
committerRuss Cox <rsc@golang.org>2011-11-13 22:42:42 -0500
commitcd15348468bfb3764a3f1f6450251b1cb7529f73 (patch)
treef521ada25a497bbc674dbdb93f2ad1c05310fee3 /src/pkg/net/http/transport.go
parent73ee68de7733ce0fe1ba96f0e4ba0e66a00aa709 (diff)
downloadgo-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.go2
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 {