Remote higher timeout and overridable via REMOTE_TIMEOUT (#10367)

sometimes a minute is not enough, 5 minutes should be but if it isn't
for some huge workload it can be overridden
This commit is contained in:
uuuvn
2025-05-17 17:30:49 +05:00
committed by GitHub
parent 4fa1837916
commit 2c706d363e

View File

@@ -279,7 +279,7 @@ class RemoteConnection:
if DEBUG >= 1: print(f"remote with host {host}")
while 1:
try:
self.conn = http.client.HTTPConnection(host, timeout=60.0)
self.conn = http.client.HTTPConnection(host, timeout=getenv("REMOTE_TIMEOUT", 300.0))
self.conn.connect()
break
except Exception as e: