Skip to content

Commit

Permalink
Merge pull request #655 from sergey-shilov/fix/INDY-1261
Browse files Browse the repository at this point in the history
INDY-1261: add flushing of retry count per remote
  • Loading branch information
ashcherbakov authored Apr 27, 2018
2 parents 85a7492 + 5f70d84 commit 6c0e0f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stp_core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

RETRY_TIMEOUT_NOT_RESTRICTED = 6
RETRY_TIMEOUT_RESTRICTED = 15
MAX_RECONNECT_RETRY_ON_SAME_SOCKET = 1
MAX_RECONNECT_RETRY_ON_SAME_SOCKET = 5

# Enables/disables debug mode for Looper class
LOOPER_DEBUG = False
Expand Down
2 changes: 2 additions & 0 deletions stp_zmq/kit_zstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def retryDisconnected(self, exclude=None):
exclude = exclude or {}
for name, remote in self.remotes.items():
if name in exclude or remote.isConnected:
if name in self._retry_connect:
self._retry_connect.pop(name, None)
continue

if name not in self._retry_connect:
Expand Down

0 comments on commit 6c0e0f3

Please sign in to comment.