cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] curl: Support CURLOPT_LOCALADDR to bind to local address.

From: Ben Greear <greearb_at_candelatech.com>
Date: Wed, 16 Jan 2013 13:45:16 -0800

On 01/16/2013 01:14 PM, Daniel Stenberg wrote:
> On Wed, 16 Jan 2013, greearb_at_candelatech.com wrote:
>
>> This allows a user to bind to both an interface (with CURLOPT_INTERFACE) and a local IP address. In doing so, it allows the user to work-around some serious
>> performance issues on machines with lots of virtual interfaces because curl no longer has to scan all interfaces each time it makes a connection.
>
> If we want to bind to a specific IP address instead of a specific interface (like when we use the "host!" prefix), doesn't it already skip the lengthy scan of
> all the interfaces?

Yes, it would...but then I can't get the SO_BINDTODEVICE logic to be active....

Thanks,
Ben

-- 
Ben Greear <greearb_at_candelatech.com>
Candela Technologies Inc  http://www.candelatech.com
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-01-16