diff options
| author | 2019-09-17 13:44:14 +0100 | |
|---|---|---|
| committer | 2019-09-17 13:44:14 +0100 | |
| commit | b7dd78ef1a63ac02a3b87d48ec4659d43f96d00a (patch) | |
| tree | 4a4cdbc63c6b003a28f00f20c10f3c7d0a550c69 /src/utils | |
| parent | use utils.deadline_process() in utils.http._request() so background threads can (diff) | |
| signature | ||
restore 5 second (instead of default 10) deadline for http.request
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/http.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/http.py b/src/utils/http.py index 423696b5..e86a0683 100644 --- a/src/utils/http.py +++ b/src/utils/http.py @@ -176,7 +176,7 @@ def _request(request_obj: Request) -> Response: return our_response try: - response = utils.deadline_process(_wrap) + response = utils.deadline_process(_wrap, seconds=5) except utils.DeadlineExceededException: raise HTTPTimeoutException() |
