Skip to content

Commit

Permalink
feat(core): make DNS resolution error retriable (#631)
Browse files Browse the repository at this point in the history
DNS resolution errors were previously not retriable, this commit allows it by changing the value returned when the DNS resolution fails.
  • Loading branch information
ksarabu1 committed Jan 20, 2021
1 parent 89e0660 commit e081024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kazoo/protocol/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ def _connect_loop(self, retry):

# Check for an empty hostlist, indicating none resolved
if len(host_ports) == 0:
return STOP_CONNECTING
raise ForceRetryError('No host resolved. Reconnecting')

for host, hostip, port in host_ports:
if self.client._stopped.is_set():
Expand Down

0 comments on commit e081024

Please sign in to comment.