From 004b0ffd3495366e698ef57745993dfd957f3f04 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Wed, 18 May 2022 14:49:57 +0100 Subject: [PATCH] Shorter sleeps --- salt/modules/network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/modules/network.py b/salt/modules/network.py index bea9b49e6c52..1149c9609738 100644 --- a/salt/modules/network.py +++ b/salt/modules/network.py @@ -2094,11 +2094,11 @@ def fqdns(): fqdns = set() def _lookup_fqdn(ip): - # Random sleep between 0.025 and 0.050 to avoid hitting + # Random sleep between 0.005 and 0.025 to avoid hitting # the GLIBC race condition. # For more info, see: # https://sourceware.org/bugzilla/show_bug.cgi?id=19329 - time.sleep(random.randint(25, 50) / 1000) + time.sleep(random.randint(5, 25) / 1000) try: return [socket.getfqdn(socket.gethostbyaddr(ip)[0])] except socket.herror as err: