diff options
| author | Alan Conway <aconway@apache.org> | 2012-01-25 20:31:50 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2012-01-25 20:31:50 +0000 |
| commit | 8fdbc77e823c22fc09b9fa2b6618845c72024d05 (patch) | |
| tree | 0219c84aa50b81f7ed6983c6b66e338a87cee1f5 /python | |
| parent | abe11960311e4eb1f847b17fd461816b9225c777 (diff) | |
| download | qpid-python-8fdbc77e823c22fc09b9fa2b6618845c72024d05.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.py | 1 |
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() |
