curl-library
Re: Connection times out after first curl_easy_perform call
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 14 Dec 2006 13:37:03 +0100 (CET)
Date: Thu, 14 Dec 2006 13:37:03 +0100 (CET)
On Thu, 14 Dec 2006, John Vorwald wrote:
> Thank you for the feedback about the server closing the connection. I
> looked more at the output from the command line statemenys, and noticed that
> the connection was closed after the first step for the command line. The
> second step created a new connection. I'll modify the C++ code to use two
> connections.
There's really no need to do that. Just re-use the easy handle (as much as
possible) and then libcurl will use persistent connections when it can, and
create new connections when it has to.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2006-12-14