changeset 11543:8be7f4c472cf

[gaim-migrate @ 13798] This was not right, if we didn't read any data from the socket because we'd already read it all, we were returning ENOTCONN. I wonder if there was a reason that we were doing this? The reason I noticed this was that libgg code relies on getting a 0 when all data has been read. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 14 Sep 2005 04:38:02 +0000
parents cda814bad7f8
children 6723c4930e50
files src/win32/libc_interface.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/win32/libc_interface.c	Wed Sep 14 04:11:42 2005 +0000
+++ b/src/win32/libc_interface.c	Wed Sep 14 04:38:02 2005 +0000
@@ -280,11 +280,13 @@
 			errno = WSAGetLastError();
 			return -1;
 		}
+#if 0
 		else if( ret == 0 ) {
 			/* connection has been gracefully closed */
 			errno = WSAENOTCONN;
 			return -1;
 		}
+#endif
 		else {
 			/* success reading socket */
 			return ret;