added EINPROGRESS as a valid blocking errno

This commit is contained in:
jsorg71 2006-12-20 06:30:08 +00:00
parent c480af5636
commit d6e5f1996e

View File

@ -408,7 +408,7 @@ g_tcp_last_error_would_block(int sck)
#if defined(_WIN32) #if defined(_WIN32)
return WSAGetLastError() == WSAEWOULDBLOCK; return WSAGetLastError() == WSAEWOULDBLOCK;
#else #else
return errno == EWOULDBLOCK; return (errno == EWOULDBLOCK) || (errno == EINPROGRESS);
#endif #endif
} }