summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2012-01-25 20:31:50 +0000
committerAlan Conway <aconway@apache.org>2012-01-25 20:31:50 +0000
commite9721fa6f4f5a00483cab5c1391b0f27091d7a88 (patch)
tree8984b553bd1b66fc0e6670328a94dc0ef53c5f9f /qpid/python
parentf9ad7c6d6f7a568d449df9f731558206bbd81b8b (diff)
downloadqpid-python-e9721fa6f4f5a00483cab5c1391b0f27091d7a88.tar.gz
QPID-3603: Avoid endless reconnect loop in python client.
In the case where a connection succeeds up to connect-ok but immediately aborts the python client would loop forever re-trying the same address. The fix is not to reset the index on connect-ok so the client try each address in turn for the full list of addresses. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1235918 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/qpid/messaging/driver.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/qpid/python/qpid/messaging/driver.py b/qpid/python/qpid/messaging/driver.py
index 23efeaaa4f..dda5e38a61 100644
--- a/qpid/python/qpid/messaging/driver.py
+++ b/qpid/python/qpid/messaging/driver.py
@@ -533,7 +533,6 @@ class Driver:
log.warn("reconnect succeeded: %s:%s", host, port)
self._next_retry = None
self._attempts = 0
- self._host = 0
self._delay = self.connection.reconnect_interval_min
self._retrying = False
self.schedule()