Update ensure()/reconnect() to catch MessagingError
The error handling code that gets connections reset if necessary
caught ConnectionError. It really needs to catch MessagingError,
which ConnectionError inherits from. There are other types of
MessagingErrors that may occur, such as InternalError, and they need
to cause the connection to reset, as well.
Closes-bug: #1303890
Change-Id: Ic5082b74a362ded8b35cbc75cf178fe6e0db62d0
(cherry picked from commit bb6f3f11f3d65e104faa8dc4ee1b880d0c6394a4)
Reviewed: https:/ /review. openstack. org/86940 /git.openstack. org/cgit/ openstack/ oslo.messaging/ commit/ ?id=f61a889786a d0be04bb3dcf5cf fb3c659c2a8cef
Committed: https:/
Submitter: Jenkins
Branch: stable/icehouse
commit f61a889786ad0be 04bb3dcf5cffb3c 659c2a8cef
Author: Russell Bryant <email address hidden>
Date: Mon Apr 7 11:59:24 2014 -0400
Update ensure( )/reconnect( ) to catch MessagingError
The error handling code that gets connections reset if necessary
caught ConnectionError. It really needs to catch MessagingError,
which ConnectionError inherits from. There are other types of
MessagingErrors that may occur, such as InternalError, and they need
to cause the connection to reset, as well.
Closes-bug: #1303890 d8b35cbc75cf178 fe6e0db62d0 04faa8dc4ee1b88 0d0c6394a4)
Change-Id: Ic5082b74a362de
(cherry picked from commit bb6f3f11f3d65e1