Skip to content

Commit

Permalink
fix blocking in ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
stepansnigirev committed Jul 9, 2020
1 parent a8f4713 commit e642ea8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib_unixport/tcphost.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def _check(self, last=False):
try:
res = self.socket.accept()
self.client = res[0]
self.client.setblocking(False)
self._check(last=True)
except OSError as e:
if "EAGAIN" not in str(e):
Expand Down

0 comments on commit e642ea8

Please sign in to comment.