Skip to content

Commit 18aa724

Browse files
author
Jaume Marhuenda
authored
Merge pull request apache#826 from datastax/python-asyncore-subclass
Fix bug when subclassing AsyncoreConnection
2 parents 6c6aa22 + 189fe0b commit 18aa724

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Bug Fixes
1010
* Both _set_final_exception/result called for the same ResponseFuture (PYTHON-630)
1111
* Use of DCAwareRoundRobinPolicy raises NoHostAvailable exception (PYTHON-781)
1212
* Not create two sessions by default in CQLEngine (PYTHON-814)
13+
* Bug when subclassing AyncoreConnection (PYTHON-827)
1314

1415
3.11.0
1516
======

cassandra/io/asyncorereactor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def __init__(self, *args, **kwargs):
347347
callback=partial(asyncore.dispatcher.__init__,
348348
self, self._socket, _dispatcher_map)
349349
)
350-
AsyncoreConnection._loop.add_timer(init_handler)
350+
self._loop.add_timer(init_handler)
351351
init_handler.wait(kwargs["connect_timeout"])
352352

353353
self._writable = True

0 commit comments

Comments
 (0)