On Feb 22, 2011 11:38am, Dan Fandrich <[email protected]> wrote:
On Tue, Feb 22, 2011 at 07:22:34PM +0000, [email protected] wrote:

> There are two issues with CURLOPT_OPENSOCKETFUNCTION:

>

> (1) If it happens that an existing connection is reused, then

> CURLOPT_OPENSOCKETFUNCTION would not be called, would it?



Only if you set CURLOPT_FORBID_REUSE.

Correct. But we want to reuse existing connections if possible.




> (2) We try to be low-level socket agnostic, so we are reluctant to call

> low-level socket functions directly.



If you're concerned about which hosts are being connected to and which sockets

are used to do it, what you're doing is already a pretty low-level task.

We only care about the IP addresses of the servers being connected. We don't care about the sockets. So it is not as low-level as you think



>>> Dan

-------------------------------------------------------------------

List admin: http://cool.haxx.se/list/listinfo/curl-library

Etiquette: http://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to