Skip to content

Commit 5a31715

Browse files
committed
Increase timeout to 30s
Previous default timeout 5s can be too low. We increase it to 30s, that is one-third of the default timeout set in Firefox.
1 parent a0f4057 commit 5a31715

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/elapi/configuration/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ def _mask(self) -> str:
155155
VERIFY_SSL_DEFAULT_VAL: bool = True
156156
VERIFY_SSL = settings.get(KEY_VERIFY_SSL, None)
157157

158-
# TIMEOUT falls back to 5.0 seconds if not defined in configuration
159-
TIMEOUT_DEFAULT_VAL: float = 5.0 # from httpx._config import DEFAULT_TIMEOUT_CONFIG
158+
# TIMEOUT falls back to 30.0 seconds if not defined in configuration
159+
TIMEOUT_DEFAULT_VAL: float = 30.0 # from httpx._config import DEFAULT_TIMEOUT_CONFIG
160160
TIMEOUT = settings.get(KEY_TIMEOUT, None)
161161

162162
for key_name, key_val in [

0 commit comments

Comments
 (0)