Skip to content

Commit

Permalink
Fix GreenSocket conflict with pysocks
Browse files Browse the repository at this point in the history
  • Loading branch information
terryzhu committed Dec 24, 2020
1 parent 4705f07 commit c178025
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eventlet/greenio/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,8 @@ def setblocking(self, flag):

def settimeout(self, howlong):
if howlong is None or howlong == _GLOBAL_DEFAULT_TIMEOUT:
self.setblocking(True)
if not (self.act_non_blocking == False and self._timeout is None):
self.setblocking(True)
return
try:
f = howlong.__float__
Expand Down

0 comments on commit c178025

Please sign in to comment.