cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: SIGPIPE downloading with redirection

From: Lluís Batlle i Rossell <viric_at_viric.name>
Date: Mon, 7 Jan 2013 16:16:09 +0100

On Mon, Jan 07, 2013 at 11:34:58AM +0100, Daniel Stenberg wrote:
> On Mon, 7 Jan 2013, Lluís Batlle i Rossell wrote:
>
> >>If I'm not mistaken, you're using a curl built to use OpenSSL which
> >>doesn't really allow us to use it without risk an EPIPE. The real
> >>fix here (apart from adding this ability to OpenSSL) I think, is to
> >>make sure that curl adds a signal handler that ignores EPIPE...
> >
> >Humm can't curl just close that socket earlier? That'd do, I guess.
>
> That's not possible, no. I mean, sure we could in theory close the
> connections after N seconds of inactitivty at the expense of
> connection re-use, but then we still have this problem for all sites
> that close idle connections after N-1 seconds. There is no value for
> N that is guaranteed to work everywhere and everytime, we have to
> use a concept that can handle a dead connection.

So do you think that at least the curl tool could be fixed against this,
although libcurl cannot?

Regards,
Lluís.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-01-07