Skip to content

Commit

Permalink
close pollable when its FDs errors
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Aug 10, 2020
1 parent 93a11a8 commit 3e530f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions broker/src/tunneldigger_broker/eventloop.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def start(self):

if event & select.EPOLLIN:
pollable.read(file_object)
elif event & select.EPOLLERR:
pollable.close()
except IOError:
# IOError get produced by signal even. in version 3.5 this is fixed an the poll retries
# TODO: in py3 it's InterruptedError
Expand Down

0 comments on commit 3e530f1

Please sign in to comment.