cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FTP keep alive connection

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 8 Nov 2007 22:14:01 +0100 (CET)

On Thu, 8 Nov 2007, Loiseleur Michel wrote:

>> You should be able to accomplish the same thing without touching libcurl
>> code at all using the CURLOPT_SOCKOPTFUNCTION callback. That makes it
>> 100% nonintrusive.
>>
> Since I use the curl binary client, and not the libcurl, I do not really
> understand how I can get a feature and being 100% nonintrusive.
>
> Would you please explain your idea with more in detail ?

The curl app could be made to use the CURLOPT_SOCKOPTFUNCTION callback, and
within that the SO_KEEPALIVE option can be set. There's no need for patching
the library for this.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-11-08