curl-library
Re: libcurl waits indefinitely for data
Date: Tue, 11 Jan 2011 10:17:38 +0530
> On Tue, Jan 11, 2011 at 12:19 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:
>> On Mon, 10 Jan 2011, arnuld uttre wrote:
>> libcurl saves data fine almost 99.9% of the time but on very rare
>> occasions it waits for infinite amount of time and never returns from
>> there.
> Well, a TCP connection has no end of life so if you have no timeout option
> and nothing happens on the connection, then libcurl will wait.
Can't I do some timout ? e.g. libcurl will return after 60 seconds or
so whether it did or did not get the data ?
> Or are you saying something is happening and libcurl doesn't notice?
Don't know what you mean here but I am trying to reproduce the issue.
Like Andre Bruet asked for code snippet, so I m writing a small
program which can be used to post code here.
-- http://uttre.wordpress.com/2008/05/14/the-lost-love-of-mine/ ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-01-11