From 1ffeb1ffe9113a4bd3c9f8092f6a3bf5bb949f5a Mon Sep 17 00:00:00 2001 From: Tyler Hobbs Date: Thu, 17 Oct 2013 12:16:18 -0500 Subject: [PATCH] Don't close asyncore connection on empty read --- cassandra/io/asyncorereactor.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/cassandra/io/asyncorereactor.py b/cassandra/io/asyncorereactor.py index 02b78d53..282621ed 100644 --- a/cassandra/io/asyncorereactor.py +++ b/cassandra/io/asyncorereactor.py @@ -293,8 +293,6 @@ class AsyncoreConnection(Connection, asyncore.dispatcher): if not self._callbacks: self._readable = False - else: - self.close() def handle_pushed(self, response): log.debug("Message pushed from server: %r", response)