Skip to content

Commit

Permalink
actually implement timeout in the http_request_legacy handler
Browse files Browse the repository at this point in the history
  • Loading branch information
AAGaming00 committed Aug 3, 2024
1 parent c6256b3 commit 6509bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/decky_loader/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ async def http_request(self, req: Request) -> StreamResponse:

async def http_request_legacy(self, method: str, url: str, extra_opts: Any = {}, timeout: int | None = None):
async with ClientSession() as web:
res = await web.request(method, url, ssl=helpers.get_ssl_context(), **extra_opts)
res = await web.request(method, url, ssl=helpers.get_ssl_context(), timeout=timeout **extra_opts)
text = await res.text()
return {
"status": res.status,
Expand Down

0 comments on commit 6509bb1

Please sign in to comment.