This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r206233 - /branches/gcc-4_8-branch/libgo/go/net...
- From: ian at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Sat, 28 Dec 2013 18:00:44 -0000
- Subject: r206233 - /branches/gcc-4_8-branch/libgo/go/net...
Author: ian
Date: Sat Dec 28 18:00:44 2013
New Revision: 206233
URL: http://gcc.gnu.org/viewcvs?rev=206233&root=gcc&view=rev
Log:
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.
Modified:
branches/gcc-4_8-branch/libgo/go/net/fd_unix.go