John Eckersberg f9de265f39 amqp1: Do not reuse _socket_connection on reconnect
Each _SocketConnection object is unique per-peer.  For example, the
properties attribute may contain keys such as 'x-ssl-peer-name'.
Reusing the existing _socket_connection during failover will cause the
TLS handshake to fail since the peer name will not match.  There is
potential for other similar-yet-unexplored bad things to happen as
well.

Instead, reconnect by waking up the eventloop via the _do_reconnect
method, which reconstructs the connection properties to reflect the
new (failed-over-to) host and ultimately crates a new
_SocketConnection (or re-uses a *valid* old one) in
eventloop.Thread.connect().

Closes-Bug: #1938945
Change-Id: I0c8dc447f4dc8d0d08c312a1f3e6fa1745fb69fd
2021-08-10 17:01:04 -04:00
2015-09-24 18:11:22 +08:00
2021-06-08 22:22:37 +08:00
2020-09-22 12:35:37 +02:00
2019-04-19 19:31:51 +00:00
2018-07-04 08:33:49 +07:00
2021-03-18 11:20:42 +00:00
2014-06-05 22:48:44 +02:00
2021-06-08 22:22:37 +08:00
2020-02-10 18:33:15 +01:00
2020-09-22 12:35:37 +02:00
2021-06-07 16:58:52 +08:00

Team and repository tags

image

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%