| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-users Mailing List Archives
Re: [PATCH] Non-blocking stdin on pipes/sockets for curl -T-
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 8 Jun 2009 00:11:18 +0200 (CEST)
On Sun, 7 Jun 2009, Eric Wong wrote:
> If attempting to read from stdin returns EAGAIN, then we pause our sender.
I would propose to instead use the write and progress callbacks to get to know
> A better solution would be to move to the curl_multi_* interface allowing us
It is, indeed. But yes that's where we should go one day. For several reasons.
> +#if defined(HAVE_SIGNAL_H) && defined(HAVE_ALARM) && \
This is of course rather limited. We have 4 or 5 or so different non-blocking
> +/* maybe we could just use Curl_nonblock() instead ... */
Yeah, if that would be accessible. We could poke the libcurl code to at least
> + } else if (S_ISFIFO(st_buf.st_mode) || S_ISSOCK(st_buf.st_mode)) {
I'm curious. Do we really need to check for fifo or socket? I mean can't we
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2009-06-08 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info