osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug 61666] regression on httpd reload (could not bind to address 0.0.0.0:80)


https://bz.apache.org/bugzilla/show_bug.cgi?id=61666

Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
             Status|NEW                         |RESOLVED

--- Comment #10 from Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx> ---
Finally tracked it down:

The automated system changes the "Listen" directives for a few tests and issues
a "httpd reload". While this worked fine in httpd 2.4.25, it stopped working
once the SO_REUSEPORT handling was changed in 2.4.26+.

I've adapted the tests to issue a "httpd restart" if the Listen directives
change and a quick test finished without errors. I'll run the full testsuite
over the weekend.

Here's a diff of the config file before the "httpd reload":

-Listen 172.18.0.1:80
-Listen 172.18.0.1:443
-Listen 192.168.2.1:80
-Listen 192.168.2.1:443
-Listen 127.0.0.1:80
-Listen 127.0.0.1:443
+Listen 80
 Listen 447

So Joe was on the right track in comment #6. Changing from "Listen
127.0.0.1:80" to just "Listen 80" is a pretty uncommon (stupid?) thing.

For me the matter is resolved, I've adapted the code and all should be fine.
If someone else ever stumbles upon this issue, we could think about a warning
message in the error log that changing the Listen directives in this way is
unsupported during a SIGHUP.

My thanks to everyone involved!

Have a nice weekend,
Thomas

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: bugs-help@xxxxxxxxxxxxxxxx