mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
Add 5m timeout for horde worker
This commit is contained in:
parent
b2c1ff7a13
commit
5f360f659c
1 changed files with 1 additions and 1 deletions
|
@ -3357,7 +3357,7 @@ def make_url_request(url, data, method='POST', headers={}):
|
|||
else:
|
||||
request = urllib.request.Request(url, headers=headers, method=method)
|
||||
response_data = ""
|
||||
with urllib.request.urlopen(request,context=ssl_context) as response:
|
||||
with urllib.request.urlopen(request,context=ssl_context,timeout=300) as response:
|
||||
response_data = response.read().decode('utf-8',"ignore")
|
||||
json_response = json.loads(response_data)
|
||||
return json_response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue