zulip/zerver
Tim Abbott 1396eb7022 Fix Tornado memory leak of handler objects.
In 2ea0daab19, handlers were moved to
being tracked via the handlers_by_id dict, but nothing cleared this
dict, resulting in every handler object being leaked.  Since a Tornado
process uses a different handler object for every request, this
resulted in a significant memory leak.  We fix this by clearing the
handlers_by_id dict in the two code paths that would result in a
Tornado handler being de-allocated: the exception codepath and the
handler disconnect codepath.

Fixes #463.
2016-03-17 18:33:59 -07:00
..
fixtures Add integration for Travis CI. 2015-11-30 20:41:33 -08:00
lib Fix Tornado memory leak of handler objects. 2016-03-17 18:33:59 -07:00
management Fix Tornado memory leak of handler objects. 2016-03-17 18:33:59 -07:00
migrations Add missing migrations present in models.py. 2016-01-26 20:38:46 -08:00
templatetags Cleanup remaining usage of % comprehensions without explicit tuples. 2015-12-05 15:29:42 -08:00
views Moved pagerduty webhook into its own file pagerduty.py 2016-03-14 20:44:50 -07:00
worker python3: Mark certain strings as unicode strings. 2016-03-08 09:14:11 -08:00
__init__.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
context_processors.py enterprise => voyager 2015-08-21 10:33:35 -07:00
decorator.py Migrate use of StringIO to Python 2+3 compatible six.moves.cStringIO. 2016-01-26 21:09:43 -08:00
exceptions.py Enable absolute imports for non-third-party code where it was omitted previously 2013-10-25 14:13:30 -04:00
filters.py Add api_key to filtered variables. 2013-12-12 10:31:03 -05:00
finders.py [manual] Move our deployment scripts to scripts/. 2013-10-28 10:54:48 -04:00
forms.py Fix support for having a unique, open realm. 2016-01-09 22:52:34 -08:00
handlers.py STAGING_DEPLOYED => ZULIP_COM_STAGING 2015-08-21 10:33:35 -07:00
middleware.py python3: Add missing utf-8 encoding/decoding in various places. 2016-03-08 09:14:15 -08:00
models.py python3: Add missing utf-8 encoding/decoding in various places. 2016-03-08 09:14:15 -08:00
static_header.txt Update copyright to 2014. 2014-02-04 15:51:53 -05:00
storage.py storage: Fix type error returning nothing in dry run case. 2016-02-03 19:29:44 -08:00
test_bugdown.py Apply Python 3 futurize transform libfuturize.fixes.fix_print_with_import. 2015-11-01 09:26:16 -08:00
test_decorators.py Use new-style classes consistently for Python 3 support. 2015-11-04 08:01:52 -08:00
test_email_mirror.py Replace json/send_message endpoint usage with json/message. 2015-12-12 18:14:08 -08:00
test_events.py EventsRegisterTest: Remove unused variable maxDiff. 2016-02-03 19:25:17 -08:00
test_external.py Migrate use of StringIO to Python 2+3 compatible six.moves.cStringIO. 2016-01-26 21:09:43 -08:00
test_hooks.py Switch all urllib/urlparse usage to six.moves.urllib. 2016-01-26 21:09:43 -08:00
test_messages.py Replace json/send_message endpoint usage with json/message. 2015-12-12 18:14:08 -08:00
test_signup.py Switch all urllib/urlparse usage to six.moves.urllib. 2016-01-26 21:09:43 -08:00
test_subs.py Switch all urllib/urlparse usage to six.moves.urllib. 2016-01-26 21:09:43 -08:00
test_unread.py Move some tests into test_unread.py 2014-02-10 13:23:27 -05:00
test_urls.py Add test that all functions defined in urls.py actually exist. 2016-02-07 19:21:53 -08:00
tests.py QueueProcessingWorker: Add stub consume function and queue_name. 2016-02-03 19:47:14 -08:00
tornadoviews.py Don't access/store full Client objects in Tornado queue servers. 2016-01-26 21:04:32 -08:00