]> git.ipfire.org Git - thirdparty/gcc.git/commit
net: work around Solaris connect issue when server closes socket
authorIan Lance Taylor <ian@gcc.gnu.org>
Sat, 28 Dec 2013 18:00:30 +0000 (18:00 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Sat, 28 Dec 2013 18:00:30 +0000 (18:00 +0000)
commitf89b66f5ad705120584101c4d7a15532d0286e9e
treeedcb545da1741175776adf7bc27e61b808637602
parent24879fd09218e5cdc8696f66a0de667285c08409
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.

See http://golang.org/issue/6828.

From-SVN: r206232
libgo/go/net/fd_unix.go