cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_CONNECT_ONLY and CURLOPT_FORBID_REUSE

From: <junk_at_igrspace.com>
Date: Sun, 31 May 2009 03:19:12 -0700

On Fri, 29 May 2009 10:43:23 +0200 (CEST), Daniel Stenberg <daniel_at_haxx.se>
wrote:
> On Thu, 28 May 2009, junk_at_igrspace.com wrote:
>> Is there a way to use CURLOPT_CONNECT_ONLY and then manually close the
>> connection after i'm done with curl_easy_send() and curl_easy_recv() ?
>
> Yes, by not using CURLOPT_FORBID_REUSE. But you must not close it
> yourself, you should let curl_easy_cleanup() close it.

and in a multi-situation ? Without cleaning up the multi ?

Immanuel
Received on 2009-05-31