mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-16 22:43:24 +09:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user