Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 17e44dfffce0e0a2d4958511009d775a8366f8f2abfa5978aa0c0338390d9d4e
Ticket: 5350f321532112b7389c4885a1aa7cd8245da806
http-4.14.0 fails on NetBSD: $port+1 is the port of the outer httpd
User & Date: serhiy.storchaka on 2026-10-12 09:47:00
Changes

  1. cmimetype changed to: "text/x-fossil-wiki"
  2. 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>.
    
  3. foundin changed to: "9.1.0"
  4. login: "serhiy.storchaka"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. severity changed to: "Minor"
  8. status changed to: "Open"
  9. submitter changed to: "serhiy.storchaka"
  10. subsystem changed to: "29. http Package"
  11. title changed to:
    http-4.14.0 fails on NetBSD: $port+1 is the port of the outer httpd
    
  12. type changed to: "Bug"