# HG changeset patch # User Daniel Atallah # Date 1126672682 0 # Node ID 8be7f4c472cf91fbce00067641999833aa4571b1 # Parent cda814bad7f866324f79fd780855e4e2799eb15d [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 diff -r cda814bad7f8 -r 8be7f4c472cf src/win32/libc_interface.c --- 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;