diff options
author | Erik Johnston <erik@matrix.org> | 2021-09-17 14:40:57 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2021-09-17 14:52:58 +0100 |
commit | 2f8abe09051eba0123ad696fefe0ca1e1d7c5d40 (patch) | |
tree | 69cee54a48757f2091395c3ead97a6077bead4ed | |
parent | Fix `SynapseRequest.site` type. (diff) | |
download | synapse-2f8abe09051eba0123ad696fefe0ca1e1d7c5d40.tar.xz |
Add reactor to SynapseRequest
-rw-r--r-- | synapse/http/site.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/http/site.py b/synapse/http/site.py index 55fe6aa3bd..a22cd0a0b7 100644 --- a/synapse/http/site.py +++ b/synapse/http/site.py @@ -73,6 +73,7 @@ class SynapseRequest(Request): super().__init__(channel, *args, **kw) self._max_request_body_size = max_request_body_size self.synapse_site = site + self.reactor = site.reactor self._channel = channel # this is used by the tests self.start_time = 0.0 @@ -550,6 +551,7 @@ class SynapseSite(Site): Site.__init__(self, resource, reactor=reactor) self.site_tag = site_tag + self.reactor = reactor assert config.http_options is not None proxied = config.http_options.x_forwarded |