This is the mail archive of the
mailing list for the GCC project.
r206232 - /trunk/libgo/go/net/fd_unix.go
- From: ian at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Sat, 28 Dec 2013 18:00:31 -0000
- Subject: r206232 - /trunk/libgo/go/net/fd_unix.go
Date: Sat Dec 28 18:00:30 2013
New Revision: 206232
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.