zulip/zerver/tornado
Alex Vandiver 579bdc18f8 tornado: Consistently clear handler, via on_finish.
initialize() is called on every request, and stored the
`RequestHandler` (and thus `HTTPServerRequest`) in a global shared
dict.  However, the object is only removed from that structure if the
request was successful.  This means that failed requests (such as 405
Method Not Allowed) leaked `RequestHandler`s and
`HTTPServerRequest`s.

Move the cleanup to `on_finish`, which is called at the close of all
requests, async and not, successful or not.
2023-12-08 09:23:30 -08:00
..
__init__.py
application.py tornado: Construct Django BaseHandler once, not per-request. 2022-09-30 11:20:45 -07:00
descriptors.py tornado: Support sharding by user ID. 2022-11-15 17:27:01 -08:00
django_api.py register: Add client capability to not receive unknown users data. 2023-12-06 00:09:53 -08:00
event_queue.py tornado: Consistently clear handler, via on_finish. 2023-12-08 09:23:30 -08:00
exceptions.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
handlers.py tornado: Consistently clear handler, via on_finish. 2023-12-08 09:23:30 -08:00
ioloop_logging.py tornado: Remove instrument_tornado_ioloop. 2022-05-02 17:41:49 -07:00
sharding.py tornado_url: Replace occurrences of `uri` with `url`. 2023-04-26 16:37:16 -07:00
views.py register: Add client capability to not receive unknown users data. 2023-12-06 00:09:53 -08:00