Repository navigation
Fix intermittent Windows CI failure caused by unpatched Listen port 80 - #12
Merged
marekkopecky merged 2 commits intoJul 9, 2026
Merged
Conversation
The patchHttpdConf() regex `^Listen 80$` only matches the bare `Listen 80` format used in RHEL JBCS distributions. The Windows JBCS httpd.conf uses `Listen 127.0.0.1:80` (IP-prefixed), which the regex silently skips — leaving port 80 active. When port 80 happens to be free on the CI node, httpd starts despite the failed patch and tests pass. When something else holds port 80 (HTTP.sys, IIS, or another service), httpd crashes with OS error 10013 (WSAEACCES) and all 87 tests fail with "Failed to start native httpd balancer". Broaden the regex to match all Listen directive formats for port 80: Listen 80, Listen 127.0.0.1:80, Listen [::]:80, etc. — while still excluding Listen 8080 and similar.
logHttpdDiagnostics() resolved the modules directory relative to httpdHome (jbcs-httpd24-2.4/), but modules live under the ServerRoot (jbcs-httpd24-2.4/etc/httpd/modules/ — a symlink to lib64/httpd/modules/). This caused all four mod_cluster modules to be reported as MISSING even when they were present, making the diagnostic output misleading. Use serverRoot() instead so the path follows the same symlink that httpd itself uses.
Contributor
|
PR LGTM, thank you! |
marekkopecky
approved these changes
Jul 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The patchHttpdConf() regex
^Listen 80$only matches the bareListen 80format used in RHEL JBCS distributions. The Windows JBCS httpd.conf usesListen 127.0.0.1:80(IP-prefixed), which the regex silently skips — leaving port 80 active.When port 80 happens to be free on the CI node, httpd starts despite the failed patch and tests pass. When something else holds port 80 (HTTP.sys, IIS, or another service), httpd crashes with OS error 10013 (WSAEACCES) and all 87 tests fail with "Failed to start native httpd balancer".
Broaden the regex to match all Listen directive formats for port 80: Listen 80, Listen 127.0.0.1:80, Listen [::]:80, etc. — while still excluding Listen 8080 and similar.
Also, diagnostic output was fixed to use proper path.