1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

Kevin Delafield reported another case where we didn't correctly check for

EAGAIN but only EWOULDBLOCK, which caused badness on HPUX. We also check for
 and act the same on EINTR errors as well now.
This commit is contained in:
Daniel Stenberg 2003-05-06 08:19:36 +00:00
parent f1ea54e07a
commit c41c05d4f4

View File

@ -278,7 +278,7 @@ CURLcode Curl_write(struct connectdata *conn, int sockfd,
may be EWOULDBLOCK or on some systems EAGAIN when it returned
due to its inability to send off data without blocking. We
therefor treat both error codes the same here */
if((EWOULDBLOCK == err) || (EAGAIN == err))
if((EWOULDBLOCK == err) || (EAGAIN == err) || (EINTR == err))
#endif
{
/* this is just a case of EWOULDBLOCK */
@ -399,7 +399,7 @@ int Curl_read(struct connectdata *conn,
#ifdef WIN32
if(WSAEWOULDBLOCK == err)
#else
if(EWOULDBLOCK == err)
if((EWOULDBLOCK == err) || (EAGAIN == err) || (EINTR == err))
#endif
return -1;
}