Skip to content

Commit 653f9e3

Browse files
committed
Increase default timeout to 100 seconds
1 parent 941b41c commit 653f9e3

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## UNRELEASED
4+
5+
### Changed
6+
7+
- Default timeout for request increased from 60 seconds to 100 seconds to match
8+
the timeout in the API. The default connection timeout is still 10 seconds.
9+
10+
### Added
11+
12+
- Added some examples.
13+
314
## v1.1.2 (2023-10-03)
415

516
### Fixed

ravenpackapi/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
class RPApi(object):
3535
_CHUNK_SIZE = 32 * 1024
3636
common_request_params = {
37-
"timeout": (10, 60), # 10 seconds on connection - 60 on read
37+
"timeout": (10, 100), # 10 seconds on connection - 100 on read
3838
}
3939

4040
def __init__(self, api_key=None, product="rpa"):

ravenpackapi/tests/unit/test_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def test_request_get(self, api, dynamic_session):
1414
dynamic_session.get.assert_called_with(
1515
url="https://api-edge.ravenpack.com/1.0/datasets",
1616
headers={"API_KEY": api.api_key, "User-Agent": user_agent},
17-
timeout=(10, 60),
17+
timeout=(10, 100),
1818
data=None,
1919
params=None,
2020
stream=False,

0 commit comments

Comments
 (0)