1 // Copyright 2011 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
13 remoteSideClosedFunc = func(err error) (out bool) {
14 op, ok := err.(*net.OpError)
15 if ok && op.Op == "WSARecv" && op.Net == "tcp" && op.Err == syscall.Errno(10058) {
16 // TODO(brainman,rsc): Fix whatever is generating this.