From a9142da1337fa574e5193380bf82cbed3bdcdb50 Mon Sep 17 00:00:00 2001 From: Sasha Romijn Date: Mon, 28 Jan 2019 15:50:57 +0100 Subject: [PATCH] Set timeout to 600 seconds. Current local longest query is !aAS-INTEROUTE, at 179s. --- irrd/scripts/load_test.py | 2 +- irrd/server/whois/protocol.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/irrd/scripts/load_test.py b/irrd/scripts/load_test.py index 65c869f14..c60e271a7 100755 --- a/irrd/scripts/load_test.py +++ b/irrd/scripts/load_test.py @@ -21,7 +21,7 @@ def main(host, port, count): queries.append(b'!q\n') s = socket.socket() - s.settimeout(3000) + s.settimeout(600) s.connect((host, port)) queries_str = b''.join(queries) diff --git a/irrd/server/whois/protocol.py b/irrd/server/whois/protocol.py index a8e649354..19f2b9d18 100644 --- a/irrd/server/whois/protocol.py +++ b/irrd/server/whois/protocol.py @@ -20,7 +20,7 @@ class WhoisQueryReceiver(TimeoutMixin, LineOnlyReceiver): off to a query pipeline thread. """ delimiter = b'\n' - time_out = 3000 + time_out = 600 def connectionMade(self) -> None: # noqa: N802 """