DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37788>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37788

           Summary: Use IPv6 with APR Connectors
           Product: Tomcat 5
           Version: 5.0.13
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Connector:HTTP
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


On an IPv6-enabled host the normal Java Connectors will bind to the IPv6
unspecified address ::0 (if no address is configured for the Connector element).
OTOH APR Connectors will bind only to the IPv4 unspecified address 0.0.0.0 -
even on an IPv6-enabled host. IMO it shouldn't depend on the type of connector
used to which address(-family) Tomcat binds. Therefore I propose to use
APR_INET6 instead of APR_INET as address family when creating the APR endpoint.
Since I'm in no way familiar with the Tomcat source, I'm not sure if the trivial
change I made to org.apache.tomcat.util.net.AprEndpoint is the right thing at
the right place. What I can say after trying out the so-patched Tomcat is the
following:
- On an IPv6-enabled Linux host, Tomcat's APR Connector bound to ::0.
- On an IPv4-only Linux host and an IPv4-only Windows XP host, Tomcat still
worked (binding to 0.0.0.0 obviously).

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to