cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Re: Re: IP addresses of redirected servers

From: <binziwang_at_gmail.com>
Date: Tue, 22 Feb 2011 21:31:50 +0000

On Feb 22, 2011 11:38am, Dan Fandrich <dan_at_coneharvesters.com> wrote:
> On Tue, Feb 22, 2011 at 07:22:34PM +0000, binziwang_at_gmail.com 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
Received on 2011-02-22