mirror of
https://github.com/golang/go
synced 2024-11-11 23:50:22 -07:00
net/http: Remove unused code
This appears to be some legacy which is no longer used. Change-Id: I469beb59a90853e8de910158f179b32f1aa14c7d Reviewed-on: https://go-review.googlesource.com/11304 Reviewed-by: Andrew Gerrand <adg@golang.org> Run-TryBot: Andrew Gerrand <adg@golang.org>
This commit is contained in:
parent
cb3e2bf0ba
commit
c8aea7b18f
@ -858,18 +858,6 @@ func (pc *persistConn) cancelRequest() {
|
||||
pc.closeLocked()
|
||||
}
|
||||
|
||||
var remoteSideClosedFunc func(error) bool // or nil to use default
|
||||
|
||||
func remoteSideClosed(err error) bool {
|
||||
if err == io.EOF {
|
||||
return true
|
||||
}
|
||||
if remoteSideClosedFunc != nil {
|
||||
return remoteSideClosedFunc(err)
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (pc *persistConn) readLoop() {
|
||||
// eofc is used to block http.Handler goroutines reading from Response.Body
|
||||
// at EOF until this goroutines has (potentially) added the connection
|
||||
|
Loading…
Reference in New Issue
Block a user