Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion tests/meta_integration/gate_lease_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,16 @@ def send(frame):
for frame in pending:
send(frame)
pending.clear()
if not select.select([src], [], [], 0.01)[0]:
try:
readable = select.select([src], [], [], 0.01)[0]
except ValueError:
# The opposite pump can close both sockets before select
# reads their descriptors. Treat only that teardown race
# as EOF; other ValueErrors remain proxy failures.
if src.fileno() < 0:
break
raise
if not readable:
continue
header = exact(28)
magic, version, kind = struct.unpack_from(">IHH", header)
Expand Down