zulip/zerver/lib
Tim Abbott b8579c6848 Disconnect handlers if the client closes a connection.
Tested using the following procedure (run-dev.py won't pass through
the client connect closing)

tabbott@monastery:~/zulip$ curl http://localhost:9991/api/v1/register  -u email:key  -d 'event_types=["message"]'
{"msg":"","max_message_id":2259,"last_event_id":-1,"result":"success","queue_id":"1386884005:0"}
tabbott@monastery:~/zulip$ curl -G http://localhost:9993/api/v1/events  -u email:key -d "last_event_id=0" -d "queue_id=1386884005:0"
(then hit ctrl-C)

(imported from commit 3c4f3d5caac97b3de53da994ff9cd9ef67b2b9ea)
2013-12-12 16:52:25 -05:00
..
bugdown Use realm filters from the database in bugdown 2013-12-11 14:39:10 -05:00
__init__.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
actions.py [manual] Backend support for Android GCM push notifications 2013-12-11 15:37:48 -05:00
alert_words.py Clean up some unused imports. 2013-11-04 11:51:17 -05:00
avatar.py Allow overriding the default avatar image 2013-11-18 11:48:53 -05:00
bulk_create.py Replace email_to_domain with split_email_to_domain and resolve_email_to_domain 2013-11-26 10:45:01 -05:00
cache.py Update active_user_dicts_in_realm cache when touching is_active flag. 2013-11-16 11:35:25 -05:00
cache_helpers.py Support filling memcached caches with no messages. 2013-11-13 12:07:16 -05:00
ccache.py Clean up some unused imports. 2013-11-04 11:51:17 -05:00
context_managers.py Use os.path directly rather than sometimes importing it separately. 2013-10-28 15:44:13 -04:00
create_user.py Only create initial passwords for local dev setups 2013-11-12 22:42:05 -05:00
debug.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
digest.py digest: refactor sending the emails into a function for easier testing. 2013-12-02 18:58:03 -05:00
event_queue.py Disconnect handlers if the client closes a connection. 2013-12-12 16:52:25 -05:00
html_diff.py Make built-in bots come from settings.py, and allow localserver-specific ones 2013-11-01 14:13:05 -04:00
initial_password.py Only create initial passwords for local dev setups 2013-11-12 22:42:05 -05:00
logging_util.py Enable absolute imports for non-third-party code where it was omitted previously 2013-10-25 14:13:30 -04:00
mandrill_client.py [schema] Add ScheduledJob table, and update mandrill related code 2013-11-13 16:41:36 -05:00
mention.py Clean up some unused imports. 2013-11-04 11:51:17 -05:00
parallel.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
push_notifications.py [manual] Backend support for Android GCM push notifications 2013-12-11 15:37:48 -05:00
query.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
queue.py Simplify callback protocol for register_json_consumer(). 2013-10-31 13:18:11 -04:00
rate_limiter.py [schema] Support for authenticating Deployments via the API. 2013-10-25 14:13:30 -04:00
response.py Fix json_unauthorized. 2013-12-11 16:45:29 -05:00
rest.py rest_dispatch: Don't allow session auth on /api URLs. 2013-12-12 10:31:04 -05:00
socket.py socket: Close old connections before registering new ones under the same id 2013-12-09 16:17:26 -05:00
statistics.py Clean up some unused imports. 2013-11-04 11:51:17 -05:00
timeout.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
timestamp.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
tornado_ioloop_logging.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
unminify.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
upload.py Clean up some unused imports. 2013-11-04 11:51:17 -05:00
utils.py Move to a common random token generation function instead of several one-offs. 2013-08-09 14:59:26 -04:00