At 07:29 AM 11/11/2003, Eli Marmor wrote:
>Sorry for disagreeing, but of course it is a proxy specific issue; As
>far as I know, no other module connects to another server (ignoring
>mod_rewrite which uses mod_proxy for this purpose).
>
>And as the original sender hinted by the "Subject" header, it is easy
>to implement: just "bind()" the required IP into the socket before
>calling "apr_connect()" (it may require a minor fix in APR, I'm not
>sure).
>
>Port number should be left 0, to let the kernel choose its own
>ephemeral port.

This will work just fine.  An option to go out another adapter would be
very cool (specific IP address.)  An option to constrain the ports might
also be useful (for firewall traversal issues).  But no changes are required
in apr - I solved a similar problem 3 weeks ago.

apr_bind() is the answer.  Bind to what, exactly, that is the question :)

Bill


Reply via email to