diff --git a/src/pkg/net/fd.go b/src/pkg/net/fd.go index ae1bf2614a2..76c953b9b4e 100644 --- a/src/pkg/net/fd.go +++ b/src/pkg/net/fd.go @@ -623,6 +623,10 @@ func (fd *netFD) accept(toAddr func(syscall.Sockaddr) Addr) (netfd *netFD, err e continue } } + } else if err == syscall.ECONNABORTED { + // This means that a socket on the listen queue was closed + // before we Accept()ed it; it's a silly error, so try again. + continue } return nil, &OpError{"accept", fd.net, fd.laddr, err} }