cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SIGPIPE when uploading with CURLOPT_READDATA

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 11 Oct 2004 19:24:26 +0200 (CEST)

On Mon, 11 Oct 2004, Alan Pinstein wrote:

> I have just finished testing the NEW patch and it works great! libcurl no
> longer SIGPIPEs on OS X in the situation I was facing (server stops
> listening to an HTTP request upload that exceeds the maxRequestLen [IIS 5.0
> on Win2k]).

Nice. Thanks for verifying this. Now we're a lot closer to release.

> FWIW, it seems the "error" string reported by libcurl in this case is empty,
> at least as reported by CURLHandle via:

Does this patch make it any better?

diff -u -r1.90 sendf.c
--- lib/sendf.c 6 Oct 2004 07:50:18 -0000 1.90
+++ lib/sendf.c 11 Oct 2004 17:23:56 -0000
@@ -308,6 +308,9 @@
          )
          /* this is just a case of EWOULDBLOCK */
          bytes_written=0;
+ else
+ failf(conn->data, "Send failure: %s",
+ Curl_strerror(conn, err));
      }
  #ifdef USE_SSLEAY
    }

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-10-11