mirror of
https://github.com/curl/curl.git
synced 2025-03-19 15:40:42 +08:00
Christophe Demory fixed the check to work better for non-blocking on HP-UX
systems. Bug report #701749.
This commit is contained in:
parent
853e240e1d
commit
c2d8025a0a
@ -270,7 +270,11 @@ CURLcode Curl_write(struct connectdata *conn, int sockfd,
|
||||
#ifdef WIN32
|
||||
if(WSAEWOULDBLOCK == GetLastError())
|
||||
#else
|
||||
if(EWOULDBLOCK == errno)
|
||||
/* As pointed out by Christophe Demory on March 11 2003, errno
|
||||
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 == errno) || ((EAGAIN == errno))
|
||||
#endif
|
||||
{
|
||||
/* this is just a case of EWOULDBLOCK */
|
||||
|
Loading…
x
Reference in New Issue
Block a user