0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 06:43:50 +01:00

Merge pull request #3178 from matrix-org/rav/fix_request_timeouts

fix http request timeout code
This commit is contained in:
Richard van der Hoff 2018-05-03 11:33:26 +01:00 committed by GitHub
commit a2aaa9cb3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ class RequestTimedOutError(SynapseError):
super(RequestTimedOutError, self).__init__(504, "Timed out") super(RequestTimedOutError, self).__init__(504, "Timed out")
def cancelled_to_request_timed_out_error(value): def cancelled_to_request_timed_out_error(value, timeout):
"""Turns CancelledErrors into RequestTimedOutErrors. """Turns CancelledErrors into RequestTimedOutErrors.
For use with async.add_timeout_to_deferred For use with async.add_timeout_to_deferred