mirror of https://github.com/zulip/zulip.git
579bdc18f8
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. |
||
---|---|---|
.. | ||
__init__.py | ||
application.py | ||
descriptors.py | ||
django_api.py | ||
event_queue.py | ||
exceptions.py | ||
handlers.py | ||
ioloop_logging.py | ||
sharding.py | ||
views.py |