[Docs] (P11): ruling ID-P11-12 on pairing by PairBind nonce and revision 3 -> 4; B0 F2 corrected - the product TCP path already paired by identity, the defect was unix endpoints and the one-shot TCP server; the TCP fixture comment no longer names AcceptPair

This commit is contained in:
2026-09-29 10:20:53 -04:00
parent 9ebcf5a73d
commit 35e1c861a3
3 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -50,8 +50,9 @@ def start(args):
raise ValueError('the local fixture requires a numeric loopback TCP endpoint')
family = socket.AF_INET6 if ':' in endpoint.hostname else socket.AF_INET
address = (endpoint.hostname, endpoint.port)
# Do not connect as a readiness probe: it would consume the first half of
# AcceptPair, so the next real client would be paired with the probe.
# Do not connect as a readiness probe: a server that is not under --serve takes
# the first connection it accepts as control, so the probe would end it. (Unix
# endpoints pair by the PairBind nonce since P11 and ignore such probes.)
with socket.socket(family) as probe:
probe.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
probe.bind(address)