summaryrefslogtreecommitdiff
path: root/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
commit8adf5ab2e13813b0f381c08ee94a654ee41fa3b6 (patch)
tree0219c84aa50b81f7ed6983c6b66e338a87cee1f5 /python
parentc42e092b4e665508237f13f17dec8f2f6e884679 (diff)
downloadqpid-python-8adf5ab2e13813b0f381c08ee94a654ee41fa3b6.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/qpid@1235918 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
-rw-r--r--python/qpid/messaging/driver.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/python/qpid/messaging/driver.py b/python/qpid/messaging/driver.py
index 23efeaaa4f..dda5e38a61 100644
--- a/python/qpid/messaging/driver.py
+++ b/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()