From 189fe0bbe50b64f9384bbbf30b73e957e5630d2f Mon Sep 17 00:00:00 2001 From: bjmb Date: Mon, 18 Sep 2017 17:18:14 -0400 Subject: [PATCH] Fix bug when subclassing AsyncoreConnection --- CHANGELOG.rst | 1 + cassandra/io/asyncorereactor.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 0d8bf72914..6878fca8a7 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -10,6 +10,7 @@ Bug Fixes * Both _set_final_exception/result called for the same ResponseFuture (PYTHON-630) * Use of DCAwareRoundRobinPolicy raises NoHostAvailable exception (PYTHON-781) * Not create two sessions by default in CQLEngine (PYTHON-814) +* Bug when subclassing AyncoreConnection (PYTHON-827) 3.11.0 ====== diff --git a/cassandra/io/asyncorereactor.py b/cassandra/io/asyncorereactor.py index 64dfb030e6..e875d89cf2 100644 --- a/cassandra/io/asyncorereactor.py +++ b/cassandra/io/asyncorereactor.py @@ -347,7 +347,7 @@ def __init__(self, *args, **kwargs): callback=partial(asyncore.dispatcher.__init__, self, self._socket, _dispatcher_map) ) - AsyncoreConnection._loop.add_timer(init_handler) + self._loop.add_timer(init_handler) init_handler.wait(kwargs["connect_timeout"]) self._writable = True