diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2021-04-23 19:20:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-23 19:20:44 +0100 |
commit | 3ff225175462dde8376aa584e3a47c43b1f0e790 (patch) | |
tree | 550b35fb107b0af201c0e409818d9630d8d3a599 /synapse/server.py | |
parent | Kill off `_PushHTTPChannel`. (#9878) (diff) | |
download | synapse-3ff225175462dde8376aa584e3a47c43b1f0e790.tar.xz |
Improved validation for received requests (#9817)
* Simplify `start_listening` callpath * Correctly check the size of uploaded files
Diffstat (limited to 'synapse/server.py')
-rw-r--r-- | synapse/server.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/server.py b/synapse/server.py index 8c147be2b3..06570bb1ce 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -287,6 +287,14 @@ class HomeServer(metaclass=abc.ABCMeta): if self.config.run_background_tasks: self.setup_background_tasks() + def start_listening(self) -> None: + """Start the HTTP, manhole, metrics, etc listeners + + Does nothing in this base class; overridden in derived classes to start the + appropriate listeners. + """ + pass + def setup_background_tasks(self) -> None: """ Some handlers have side effects on instantiation (like registering |