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