http-4.14.0 fails on NetBSD: $port+1 is the port of the outer httpd
Closed / Fixed5350f321532112b7389c4885a1aa7cd8245da806Created 52 days agoUpdated 45 days ago
Descriptionwiki2026-10-12 09:47:00
http-4.14.0 fails on NetBSD:
http::error is empty instead of
connect failed: connection refused.
The test uses $port+1 as a port without a listener. http.test starts
an httpd, then sources itself for each ThreadLevel, which starts another httpd.
NetBSD allocates ephemeral ports in descending order, so the httpd of
ThreadLevel 0 gets the outer port minus 1, and $port+1 is the port of
the outer httpd, which answers the request.
Proposed fix in branch http-test-bad-port: use a
port just released by the OS for badurl.
Referenced by5
ea032b0c06Fix [5350f32153]: http.test: use a port just released by the OS check-in2026-10-19 13:08:163741c0dbc9Fix [5350f32153]: http.test: use a port just released by the OS check-in2026-10-19 11:45:579d697dacb4Fix [5350f32153]: http.test: use a port just released by the OS check-in2026-10-19 11:31:1609127183b3Ticket [81cb2b674f] zlib-9.3 hangs on netbsd status still Open with 4 other changes ticket2026-10-12 20:05:24de7efe2cc2Fix [5350f32153]: http.test: use a port just released by the OS for badurl instead of $port+1. Where ports are allocated in sequence (NetBSD), $port+1 was that of the httpd started by the outer run, so http-4.14.0 connected instead of failing. check-in2026-10-12 09:35:42
jan.nijtmanswiki2026-10-19 13:09:09
Merged to [trunk], core-9-0-branch and core-8-6-branch.
Many thanks!
Log in (anonymous is fine) to add a comment.