curl-library
Re: Timed out, now what?
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 18 Mar 2011 22:23:52 +0100 (CET)
Date: Fri, 18 Mar 2011 22:23:52 +0100 (CET)
On Fri, 18 Mar 2011, MigueL DíaZ wrote:
> So, I'm optimizing my app and I'm wondering, if I need to do the entire
> handle setup when I receive a timeout from curl_easy_perform. Can I use the
> easy_handle right afterwards to retry? or do I need to initialize it over
> again??
You can always just use the handle again. For most sorts of time-outs, the
previous connection will not have survived anyway and your second
request/invoke will make libcurl create a brand new connection.
-- / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-18