Fix timeout in geventreactor
Fix timeout in geventreactor
This commit is contained in:
@@ -36,7 +36,8 @@ log = logging.getLogger(__name__)
|
|||||||
def is_timeout(err):
|
def is_timeout(err):
|
||||||
return (
|
return (
|
||||||
err in (EINPROGRESS, EALREADY, EWOULDBLOCK) or
|
err in (EINPROGRESS, EALREADY, EWOULDBLOCK) or
|
||||||
(err == EINVAL and os.name in ('nt', 'ce'))
|
(err == EINVAL and os.name in ('nt', 'ce')) or
|
||||||
|
isinstance(err, socket.timeout)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user