cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SFTP and multi interface

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 11 Jan 2010 22:49:31 +0100 (CET)

On Fri, 8 Jan 2010, Gil Weber wrote:

>> No, that's completely unrelated and is fully expected. libcurl caches
>> connections to allow you to re-use them again without having to reconnect.
>>
> OK my mistake I didn't know that. But knowing that, is there a way to force
> connection to be closed ?

Not after the actual transfer is done, no. You can set the options before you
do the transfer.

> I have checked the available options and I see "CURLOPT_FORBID_REUSE" but
> this is only usable to close the connection after the next transfer. But
> what can I do if I have no more transfer to do ? Is there a way to do this ?
> or a "CURLOPT_DISCONNECT_ONLY" option ?

No there isn't.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-01-11