summary refs log tree commit diff
path: root/synapse/util
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2019-01-17 14:00:23 +0000
committerGitHub <noreply@github.com>2019-01-17 14:00:23 +0000
commit676cf2ee267cedd05109678dece0227fd1801423 (patch)
treebaf89a653b814ce4bd60578a1fbfc56ce9729421 /synapse/util
parentsign_request -> build_auth_headers (#4408) (diff)
downloadsynapse-676cf2ee267cedd05109678dece0227fd1801423.tar.xz
Fix incorrect logcontexts after a Deferred was cancelled (#4407)
Diffstat (limited to 'synapse/util')
-rw-r--r--synapse/util/async_helpers.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/util/async_helpers.py b/synapse/util/async_helpers.py
index ec7b2c9672..430bb15f51 100644
--- a/synapse/util/async_helpers.py
+++ b/synapse/util/async_helpers.py
@@ -387,12 +387,14 @@ def timeout_deferred(deferred, timeout, reactor, on_timeout_cancel=None):
     deferred that wraps and times out the given deferred, correctly handling
     the case where the given deferred's canceller throws.
 
+    (See https://twistedmatrix.com/trac/ticket/9534)
+
     NOTE: Unlike `Deferred.addTimeout`, this function returns a new deferred
 
     Args:
         deferred (Deferred)
         timeout (float): Timeout in seconds
-        reactor (twisted.internet.reactor): The twisted reactor to use
+        reactor (twisted.interfaces.IReactorTime): The twisted reactor to use
         on_timeout_cancel (callable): A callable which is called immediately
             after the deferred times out, and not if this deferred is
             otherwise cancelled before the timeout.