Merge "rabbit: Avoid busy loop on epoll_wait with heartbeat+eventlet"

This commit is contained in:
Jenkins 2016-11-08 12:56:44 +00:00 committed by Gerrit Code Review
commit f1a1f54b24

View File

@ -967,7 +967,7 @@ class Connection(object):
def _heartbeat_start(self):
if self._heartbeat_supported_and_enabled():
self._heartbeat_exit_event = threading.Event()
self._heartbeat_exit_event = eventletutils.Event()
self._heartbeat_thread = threading.Thread(
target=self._heartbeat_thread_job)
self._heartbeat_thread.daemon = True