curl-library
Re: [Fwd: Patch for SO_BINDTODEVICE]
From: Ben Greear <greearb_at_candelatech.com>
Date: Mon, 23 Feb 2004 10:17:27 -0800
Date: Mon, 23 Feb 2004 10:17:27 -0800
Daniel Stenberg wrote:
> On Thu, 12 Feb 2004, Ben Greear wrote:
>
>
>>>* SO_BINDTODEVICE failed, device eth0 errno 1, error: Operation not permitted
>>
>>I should definately fix the strlen problem. It very well may not be
>>possible to bind to loopback, but for eth0, it should work if you are root.
>
>
> You're right of course. Once I retried as root it worked fine...
As an update, I patched apache to use the bind-to-device system
call also, and was able to test CURL against it. The patch
seems to work as I had hoped.
Can you let me know if/when this patch goes into CuRL?
(Not a big problem either way since I have my local copy
updated anyway.)
Thanks,
Ben
-- Ben Greear <greearb_at_candelatech.com> Candela Technologies Inc http://www.candelatech.comReceived on 2004-02-23