Skip to content

Commit e081024

Browse files
authored
feat(core): make DNS resolution error retriable (#631)
DNS resolution errors were previously not retriable, this commit allows it by changing the value returned when the DNS resolution fails.
1 parent 89e0660 commit e081024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kazoo/protocol/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ def _connect_loop(self, retry):
543543

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

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

0 commit comments

Comments
 (0)