Do not automatically register all connectionts in the event loop

This commit is contained in:
Ask Solem 2013-10-25 13:21:31 +01:00
parent 16fa45c6ad
commit 769ce3705b
3 changed files with 4 additions and 4 deletions

View File

@ -303,6 +303,7 @@ class Hub(object):
except TypeError:
pass
except (KeyError, Empty):
hub_remove(fileno)
continue
if cb is None:
continue

View File

@ -23,7 +23,6 @@ except ImportError: # Py2
# jython breaks on relative import for .exceptions for some reason
# (Issue #112)
from kombu import exceptions
from .async import get_event_loop
from .five import Empty, range, string_t, text_t, LifoQueue as _LifoQueue
from .log import get_logger
from .transport import get_transport_cls, supports_librabbitmq
@ -702,9 +701,6 @@ class Connection(object):
def _establish_connection(self):
self._debug('establishing connection...')
conn = self.transport.establish_connection()
loop = get_event_loop()
if loop:
self.transport.register_with_event_loop(conn, loop)
self._debug('connection established: %r', conn)
return conn

View File

@ -123,6 +123,9 @@ class Transport(object):
def register_with_event_loop(self, loop):
pass
def unregister_from_event_loop(self, loop):
pass
def verify_connection(self, connection):
return True