Overview
| Artifact ID: | 4a1f4d82b35327b6ded50671c81b41d1280fe4e6f2f17a2f7c56220384dcf119 |
|---|---|
| Ticket: | 5350f321532112b7389c4885a1aa7cd8245da806
http-4.14.0 fails on NetBSD: $port+1 is the port of the outer httpd |
| User & Date: | jan.nijtmans on 2026-10-19 13:09:09 |
Changes
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2461333.0480293171"
- closer changed to: "jan.nijtmans"
- comment changed to:
http-4.14.0 fails on NetBSD: <code>http::error</code> is empty instead of <code>connect failed: connection refused</code>. The test uses <code>$port+1</code> 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 <code>$port+1</code> is the port of the outer httpd, which answers the request. Proposed fix in branch [/timeline?r=http-test-bad-port|http-test-bad-port]: use a port just released by the OS for <code>badurl</code>.
- icomment:
Merged to [9d697dacb4|trunk], core-9-0-branch and core-8-6-branch. Many thanks!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"