Fix timeout in geventreactor

Fix timeout in geventreactor
This commit is contained in:
yi719
2015-10-03 09:49:55 +08:00
parent 75ddc51461
commit f80c1ae714

View File

@@ -36,7 +36,8 @@ log = logging.getLogger(__name__)
def is_timeout(err):
return (
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)
)