commit 1a6a35f206003c484ca1b9fa481c9639a6a1318d
parent 2cb980ea3a2e323e8c62a1df68019d2b9aa1ae6a
Author: René Wagner <rwa@clttr.info>
Date: Fri, 7 Apr 2023 15:55:54 +0200
timeout adjustment
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/gusmobile/client.py b/gusmobile/client.py
@@ -33,9 +33,6 @@ import ssl
import sys
import time
-GEMINI_TIMEOUT = 15
-
-
class Response:
content = None
content_type = None
@@ -213,7 +210,7 @@ def _send_request(url):
for address in addresses:
_debug("Connecting to: " + str(address[4]))
s = socket.socket(address[0], address[1])
- s.settimeout(GEMINI_TIMEOUT)
+ s.settimeout(15.0)
context = ssl.SSLContext()
context.check_hostname = False
context.verify_mode = ssl.CERT_NONE