cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl and sock_cloexec

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 25 Apr 2011 13:04:33 -0700

On Mon, Apr 25, 2011 at 09:25:08AM -0500, Paul Albrecht wrote:
> I'm using libcurl-easy and I was wondering if there's any way to set
> sock_cloexec on the socket call in the library?

There are a number of callbacks that can be used to set socket options,
such as CURLOPT_SOCKOPTFUNCTION, CURLOPT_OPENSOCKETFUNCTION,
CURLOPT_SSL_CTX_FUNCTION and the CURLINFO_LASTSOCKET curl_easy_getinfo
option.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-04-25