From e9721fa6f4f5a00483cab5c1391b0f27091d7a88 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 25 Jan 2012 20:31:50 +0000 Subject: 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 --- qpid/python/qpid/messaging/driver.py | 1 - 1 file changed, 1 deletion(-) (limited to 'qpid/python') 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() -- cgit v1.2.1