curl-library
Re: Question on reusing connections. (my fault, duh)
From: Ben Greear <greearb_at_candelatech.com>
Date: Wed, 19 Jul 2006 17:53:25 -0700
Date: Wed, 19 Jul 2006 17:53:25 -0700
Ben Greear wrote:
> I am trying to allow re-use of a connection. My code sets
> CURLOPT_FORBID_REUSE to 0 (zero), sets up the rest of the options,
> including callbacks so that I can save the info to a local file descriptor,
> and then falls into a loop where it downloads a URL over and over (with
> about 1 second between each requests.) For the current test, the URL does
> not change, but it is set each time with curl_easy_setopt(curl,
> CURLOPT_URL, ...)
> to the same value.
Errr.the code is working fine. I just didn't realize that FC3's Apache
server disabled keep-alives by default.
Sorry for the spammage.
Ben
-- Ben Greear <greearb_at_candelatech.com> Candela Technologies Inc http://www.candelatech.comReceived on 2006-07-20