cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Session still remains even connection get closed

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 3 Jul 2012 22:49:53 +0200

On Tue, Jul 03, 2012 at 11:19:36AM +0530, Swamy Mudhbasalar wrote:
> I am downloading many files from the server.
> I used persistent connection and reusing the session.
> After getting all the files closing the connection using curl_easy_cleanup.
>
> Problem is still am seeing a session active on server side.
> Is there anyway i can close this session before curl_easy_cleanup.

The CURLOPT_FORBID_REUSE option will automatically close the connection
after every transfer.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-07-03