From 9ff37543f3929af959260f188a5dd1002552523b Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sat, 11 Dec 2021 16:42:57 +0100 Subject: [PATCH] Adjusted request timeout --- RNS/Link.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNS/Link.py b/RNS/Link.py index b16874f..0748dc7 100644 --- a/RNS/Link.py +++ b/RNS/Link.py @@ -288,7 +288,7 @@ class Link: packed_request = umsgpack.packb(unpacked_request) if timeout == None: - timeout = self.rtt * self.traffic_timeout_factor + RNS.Resource.RESPONSE_MAX_GRACE_TIME + timeout = self.rtt * self.traffic_timeout_factor + RNS.Resource.RESPONSE_MAX_GRACE_TIME/4.0 if len(packed_request) <= Link.MDU: request_packet = RNS.Packet(self, packed_request, RNS.Packet.DATA, context = RNS.Packet.REQUEST)