Files
lmxopcua/tests/Server
Joseph Doherty 4ea26b1296 test(host): #1114 artifact-fetch boundary test binds port 0 instead of probe-release-rebind
RightKey_FetchesAndReassembles... failed once in 58 ms (a fast null = the fetch
reached no/the wrong listener). Not reproduced: 30x alone, and 36 runs across 6
concurrent processes, all green on the original. The one race in the test is
the TOCTOU in GetFreePort (probe a free port, release it, re-bind it in Kestrel)
against the ~28 other probe-a-port call sites in this assembly running in
parallel classes and outgoing ephemeral source ports. Kestrel now binds
127.0.0.1:0 and the test reads the bound port back from IServerAddressesFeature;
the failover test's dead endpoint is a bound-never-listened socket held for the
test (refuses connects, cannot be taken); endpoints use 127.0.0.1, not localhost.
30x green after the change.
2026-12-05 03:17:25 -05:00
..