On Feb 10, 2006, at 6:14 AM, Mladen Turk wrote:
[EMAIL PROTECTED] wrote:
Author: mturk
protected long serverSockPool = 0;
- +
I have an editor that removes trailing spaces sorry :).
- long inetAddress = Address.info(addressStr,
Socket.APR_UNSPEC,
+ int family = Socket.APR_INET;
+ if (Library.APR_HAVE_IPV6)
+ family= Socket.APR_UNSPEC;
+ long inetAddress = Address.info(addressStr, family,
port, 0, rootPool);
NOTE:
If the APR was build without IPV6 support this call would fail without
this fix. Seems that it doesn't mater on windows.
Huh? APR_UNSPEC is specifically designed to trigger APR to
do the right thing as far as which type of IPv to use.
APR correctly tries IPV6 first and then fails back to IPV4
when APR_UNSPEC is set, but if APR was not built with
IPV6 then it doesn't even bother with IPV6 in the
first place. It's even smart enough to know what to do
when APR was built with IPV6 support but the actual platform
doesn't support it. That's what APR is supposed to do.
httpd uses APR_UNSPEC pretty much exclusively.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]