From f80c1ae714ce9de111e4b5d321dfad78635d1245 Mon Sep 17 00:00:00 2001 From: yi719 Date: Sat, 3 Oct 2015 09:49:55 +0800 Subject: [PATCH] Fix timeout in geventreactor Fix timeout in geventreactor --- cassandra/io/geventreactor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cassandra/io/geventreactor.py b/cassandra/io/geventreactor.py index f26e6152..a063df1b 100644 --- a/cassandra/io/geventreactor.py +++ b/cassandra/io/geventreactor.py @@ -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) )