1
0

Add reactor to SynapseRequest

This commit is contained in:
Erik Johnston
2021-09-17 14:40:57 +01:00
parent 341a92b7d0
commit 2f8abe0905
+2
View File
@@ -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