From: Otto Date: Tue, 30 Nov 2021 06:55:10 +0000 (+0100) Subject: Set timeout on TCP connect attempt X-Git-Tag: rec-4.7.0-alpha0~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7bb0ed55f55f2681e6e7810b91a71497d8dcf35;p=thirdparty%2Fpdns.git Set timeout on TCP connect attempt --- diff --git a/regression-tests.recursor-dnssec/recursortests.py b/regression-tests.recursor-dnssec/recursortests.py index 0c99bc309a..4b11850691 100644 --- a/regression-tests.recursor-dnssec/recursortests.py +++ b/regression-tests.recursor-dnssec/recursortests.py @@ -526,6 +526,7 @@ distributor-threads={threads}""".format(confdir=confdir, for try_number in range(0, 100): try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + sock.settimeout(1.0) sock.connect((ipaddress, port)) sock.close() return