Skip to content

Commit

Permalink
Set timeout correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelm committed Dec 2, 2023
1 parent 4580d6f commit c8b8fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pretix/helpers/monkeypatching.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def monkeypatch_requests_timeout():

def httpadapter_send(self, request, timeout=None, **kwargs):
if timeout is None:
timeout = 3
timeout = 30
return types.MethodType(old_httpadapter_send, self)(request, timeout=timeout, **kwargs)

HTTPAdapter.send = httpadapter_send
Expand Down

0 comments on commit c8b8fba

Please sign in to comment.