Skip to content

Commit

Permalink
Add 60s timeout to HTTPSConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
egbertbouman committed Apr 9, 2024
1 parent a74b8a5 commit d529267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run_all_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def install_libsodium() -> None:
if not pathlib.Path("libsodium.zip").exists():
import re
from http.client import HTTPSConnection
connection = HTTPSConnection("download.libsodium.org")
connection = HTTPSConnection("download.libsodium.org", timeout=60)

connection.request("GET", "/libsodium/releases/", headers={})
web_response = connection.getresponse().read().decode()
Expand Down

0 comments on commit d529267

Please sign in to comment.