cURL / Mailing Lists / curl-library / Single Mail


Re: Timed out, now what?

From: Daniel Stenberg <>
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.


List admin:
Received on 2011-03-18