Skip to content

Commit 21981e0

Browse files
committed
feat(transport): Add a read/connect timeout
1 parent adcfa0f commit 21981e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sentry_sdk/transport.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,7 @@ def _get_pool_options(self):
621621
options = {
622622
"num_pools": 2 if num_pools is None else int(num_pools),
623623
"cert_reqs": "CERT_REQUIRED",
624+
"timeout": urllib3.Timeout(connect=5, read=5),
624625
}
625626

626627
socket_options = None # type: Optional[List[Tuple[int, int, int | bytes]]]

0 commit comments

Comments
 (0)