added EINPROGRESS as a valid blocking errno

ulab-original
jsorg71 18 years ago
parent c480af5636
commit d6e5f1996e

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

Loading…
Cancel
Save