curl-library
Re: libcurl waits indefinitely for data
Date: Mon, 10 Jan 2011 20:54:36 -0800
"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 ?"
you can if you are using the multi interface.
The multi interface lets you make requests that happen in the background and
so if it takes too long you can just go on with your life and ignore it (or
cancel it)
On Mon, Jan 10, 2011 at 8:47 PM, arnuld uttre <arnuld.mizong_at_gmail.com>wrote:
> > 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.html
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-01-11