blob: 1ae7d8350150b24f54f9c09ae5e8c5814dbe9a94 [file] [log] [blame]
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package http
import (
"os"
"net"
)
func init() {
remoteSideClosedFunc = func(err os.Error) (out bool) {
op, ok := err.(*net.OpError)
if ok && op.Op == "WSARecv" && op.Net == "tcp" && op.Error == os.Errno(10058) {
// TODO(bradfitz): find the symbol for 10058
return true
}
return false
}
}