cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl and sock_cloexec

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 25 Apr 2011 22:26:09 +0200 (CEST)

On Mon, 25 Apr 2011, Paul Albrecht wrote:

> I need the option set when the socket is created so CURLOPT_SOCKOPTFUNCTION
> (setsockopt) is too late. I'll try the CURL_OPENSOCKETFUNCTION (socket)
> which should work, but why is the callback necessary? Shouldn't this be the
> default? Why would I want the connect socket propagated to a forked process?

Can you enlighten us when exactly this would cause anyone problems?

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