curl-library
HP-UX Bug Fix
Date: Thu, 13 Mar 2003 18:13:23 -0500
Hi Daniel,
A co-worker is requesting a modification to libcurl
as described below.
Can you let me know if this change is incorporated
or not?
Thanks,
Chris
Version: 7.10.3
Changed file: lib/sendf.c
Reason: A full buffer (server not reading fast enough) will
cause a write failure on HP-UX as send() returns -1 with errno == EAGAIN
in this case.
Change:
diff -w -c -r1.1.1.1 sendf.c
*** sendf.c 2003/01/14 14:24:56 1.1.1.1
--- sendf.c 2003/03/13 18:49:19
***************
*** 267,272 ****
--- 267,278 ----
bytes_written = swrite(sockfd, mem, len);
}
if(-1 == bytes_written) {
+ /* NEW CHANGE */
+ if (errno == EAGAIN) {
+ *written=0;
+ return CURLE_OK;
+ }
+ /* END NEW CHANGE */
#ifdef WIN32
if(WSAEWOULDBLOCK == GetLastError())
#else
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
Received on 2003-03-14