GSocketInput/OutputStream: fix non-blocking on Windows
authorDan Winship <danw@gnome.org>
Fri, 23 Apr 2010 12:21:41 +0000 (08:21 -0400)
committerDan Winship <danw@gnome.org>
Tue, 22 Jun 2010 19:20:29 +0000 (15:20 -0400)
commite0ff84e68817d12ebf4cde9433c4e1ed703d1eb4
tree54507cfc9d1be09145f2a6346ed2ddaee950fc98
parent2be38f6926d8bf2738c3898e831dcb3928925f90
GSocketInput/OutputStream: fix non-blocking on Windows

The GSocket docs point out that g_socket_send/g_socket_receive may
return G_IO_ERROR_WOULD_BLOCK even if g_socket_condition_check claimed
that they wouldn't. Fix the socket streams to check for that.

https://bugzilla.gnome.org/show_bug.cgi?id=603309
gio/gsocket.c
gio/gsocketinputstream.c
gio/gsocketoutputstream.c