<i>http-4.14.0 fails on NetBSD: $port+1 is the port of the outer httpd</i>.
by
.
D 2026-10-12T09:47:00.858
J cmimetype text/x-fossil-wiki
J comment http-4.14.0\sfails\son\sNetBSD:\s<code>http::error</code>\sis\sempty\sinstead\sof\n<code>connect\sfailed:\sconnection\srefused</code>.\n\nThe\stest\suses\s<code>$port+1</code>\sas\sa\sport\swithout\sa\slistener.\shttp.test\sstarts\nan\shttpd,\sthen\ssources\sitself\sfor\seach\sThreadLevel,\swhich\sstarts\sanother\shttpd.\nNetBSD\sallocates\sephemeral\sports\sin\sdescending\sorder,\sso\sthe\shttpd\sof\nThreadLevel\s0\sgets\sthe\souter\sport\sminus\s1,\sand\s<code>$port+1</code>\sis\sthe\sport\sof\nthe\souter\shttpd,\swhich\sanswers\sthe\srequest.\n\nProposed\sfix\sin\sbranch\s[/timeline?r=http-test-bad-port|http-test-bad-port]:\suse\sa\nport\sjust\sreleased\sby\sthe\sOS\sfor\s<code>badurl</code>.
J foundin 9.1.0
J login serhiy.storchaka
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter serhiy.storchaka
J subsystem 29.\shttp\sPackage
J title http-4.14.0\sfails\son\sNetBSD:\s$port+1\sis\sthe\sport\sof\sthe\souter\shttpd
J type Bug
K 5350f321532112b7389c4885a1aa7cd8245da806
U serhiy.storchaka
Z b5f6c5ea0aa9f9f2232f06c367b5888f