Skip to content

Commit

Permalink
Fix #22
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Jun 7, 2016
1 parent 0bde326 commit c98c1d7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/ZEO/zrpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def client_loop(map):

try:
r, w, e = select.select(r, w, e, client_timeout())
except select.error as err:
except (select.error, RuntimeError) as err:
# Python >= 3.3 makes select.error an alias of OSError,
# which is not subscriptable but does have the 'errno' attribute
err_errno = getattr(err, 'errno', None) or err[0]
Expand All @@ -69,6 +69,13 @@ def client_loop(map):
if [fd for fd in w if fd not in map]:
continue

# Hm, on Mac OS X, we could get a run time
# error and end up here, but retrying select
# would work. Let's try:
select.select(r, w, e, 0)
# we survived, keep going :)
continue

raise
else:
continue
Expand Down

0 comments on commit c98c1d7

Please sign in to comment.