Mehdi Abaakouk 148e8380ce Fix reconnection when heartbeat is missed
When a heartbeat is missing we call ensure_connection()
that runs a dummy method to trigger the reconnection
code in kombu. But also the code is triggered only if the
channel is None.

In case of the heartbeat threads we didn't reset the channel
before reconnecting, so the dummy method doesn't do anything.

This change sets the channel to None to ensure the connection
is reestablished before the dummy method is run.

Also it replaces the dummy method by checking the kombu connection
object. So we are sure the connection is reestablished.

Change-Id: I39f8cd23c5a5498e6f4c1aa3236ed27f3b5d7c9a
Closes-bug: #1493890
2015-12-09 06:45:36 +00:00
2015-11-30 19:30:05 +00:00
2015-09-24 18:11:22 +08:00
2015-11-30 19:30:05 +00:00
2015-11-23 18:35:44 -07:00
2014-06-05 22:48:44 +02:00
2015-10-26 18:11:15 +01:00
2015-12-01 14:20:33 +00:00
2015-09-17 12:16:04 +00:00

Oslo Messaging Library

Latest Version

Downloads

The Oslo messaging API supports RPC and notifications over a number of different messaging transports.

Description
OpenStack library for messaging
Readme 36 MiB
Languages
Python 99.8%
Shell 0.2%