Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "jan.nijtmans"
  2. closedate changed to: "2461333.0480293171"
  3. closer changed to: "jan.nijtmans"
  4. 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>.
    
  5. icomment:
    Merged to [9d697dacb4|trunk], core-9-0-branch and core-8-6-branch.
    
    Many thanks!
    
  6. login: "jan.nijtmans"
  7. mimetype: "text/x-fossil-wiki"
  8. resolution changed to: "Fixed"
  9. status changed to: "Closed"