Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 59fea7e

Browse files
authored
extend requests read timeout (#1068)
1 parent c724f2d commit 59fea7e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cli/onefuzz/backend.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
ONEFUZZ_BASE_PATH = os.path.join("~", ".cache", "onefuzz")
4545
DEFAULT_CONFIG_PATH = os.path.join(ONEFUZZ_BASE_PATH, "config.json")
4646
DEFAULT_TOKEN_PATH = os.path.join(ONEFUZZ_BASE_PATH, "access_token.json")
47+
REQUEST_CONNECT_TIMEOUT = 30.0
48+
REQUEST_READ_TIMEOUT = 120.0
4749

4850
LOGGER = logging.getLogger("nsv-backend")
4951

@@ -253,7 +255,7 @@ def request(
253255
headers=headers,
254256
json=json_data,
255257
params=params,
256-
timeout=(30.0, 30.0),
258+
timeout=(REQUEST_CONNECT_TIMEOUT, REQUEST_READ_TIMEOUT),
257259
)
258260

259261
if response.status_code not in retry_codes:

0 commit comments

Comments
 (0)