Skip to content

Commit 45c667a

Browse files
Added default timeout of 300 seconds to requests.
1 parent 0d24648 commit 45c667a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

connect/resources/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ def _fix_request_kwargs(self, path, prev_kwargs, **kwargs):
9090
fixed_kwargs['url'] = self.get_url(path)
9191
if 'headers' not in fixed_kwargs:
9292
fixed_kwargs['headers'] = self.headers
93+
if 'timeout' not in fixed_kwargs:
94+
fixed_kwargs['timeout'] = 300
9395
return fixed_kwargs
9496

9597
@staticmethod

0 commit comments

Comments
 (0)