]> granicus.if.org Git - apache/commit
core: Fix address-in-use startup failure on some platforms caused
authorJeff Trawick <trawick@apache.org>
Sun, 8 Jun 2008 18:13:35 +0000 (18:13 +0000)
committerJeff Trawick <trawick@apache.org>
Sun, 8 Jun 2008 18:13:35 +0000 (18:13 +0000)
commit4893a6193d5f125d2ea6771026ed5813bd3fd6ab
tree3ec3eaf050846f150e474ca163b9569090f035f6
parentbaec0398aa701d6f639b86d09233631bac7bd1c5
core: Fix address-in-use startup failure on some platforms caused
by attempting to set up an IPv4 listener which overlaps with an
existing IPv6 listener.

The failure occurred on the second pass of the open-logs hook in
a configuration such as the following:

  Listen 8080
  Listen 0.0.0.0:8081
  Listen [::]:8081

During the first pass, the two port 8081 listen recs were
adjacent and existing logic prevented binding to 0.0.0.0:8081.
On the second pass, they were not adjacent and we then tried
to bind to 0.0.0.0:8081, leading to failure on some platforms
(seen on SLES 9 and Ubuntu 7.10, not seen on many other Unix-ish
platforms).

Leave a note about other unhandled configurations.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@664535 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
server/listen.c