]> Cypherpunks repositories - gostls13.git/commit
net: work around Solaris connect issue when server closes socket
authorIan Lance Taylor <iant@golang.org>
Sat, 28 Dec 2013 17:37:54 +0000 (09:37 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 28 Dec 2013 17:37:54 +0000 (09:37 -0800)
commit672525a56e7d326ec986bc330a7accd8ec0395f4
tree6cbee66add5f86480e0b193cba2c43011d528ccc
parent872f5ffa095c483a506a639f1960f6778328d83e
net: work around Solaris connect issue when server closes socket

On Solaris, if you do a in-progress connect, and then the
server accepts and closes the socket, the client's later
attempt to complete the connect will fail with EINVAL.  Handle
this case by assuming that the connect succeeded.  This code
is weird enough that it is implemented as Solaris-only so that
it doesn't hide a real error on a different OS.

Update #6828

R=golang-codereviews, bradfitz, dave
CC=golang-codereviews
https://golang.org/cl/46160043
src/pkg/net/fd_unix.go