Zev Benjamin
36ac717872
Lower the server-side heartbeat frequency slightly so its maximum value is less than 60
...
(imported from commit d61e12a985d833843c9ae757465701f0057d5ee8)
2013-03-29 11:11:34 -04:00
Zev Benjamin
0caec89fc6
Use helper functions instead of importing event_queue.client and event_queue.user_clients directly
...
(imported from commit 653decf415e0026439dd5d323bed361732dac2e9)
2013-03-28 16:57:48 -04:00
Zev Benjamin
cec9c6f30d
Send heartbeat events to all clients
...
This effectively implements a server-side timeout for get_events
(imported from commit 4151562358329a6a5662f219ab2a9241e54ad585)
2013-03-28 16:57:48 -04:00
Zev Benjamin
c6df5af84d
Import tornado ioloop directly instead of passing it from runtornado
...
(imported from commit ce901d7daca81bb1682827175bdcd83d3e5c2344)
2013-03-28 16:57:48 -04:00
Zev Benjamin
5b20dcf03c
Add server-side event filtering based on type
...
Clients can now request to receive only certain kinds of events,
although they always receive restart events.
(imported from commit 1e72981f8fe763829ab2abde1e35f94cad5c34e4)
2013-03-28 16:57:48 -04:00
Zev Benjamin
f2b1de7940
Apply events in register()
...
(imported from commit 4e30e52d968ceec596ecbabe71d4d9378cc8f7d9)
2013-03-28 16:57:48 -04:00
Zev Benjamin
4bc9152f71
Inform clients to reload via a 'restart' event sent on Tornado start up
...
(imported from commit 10bb45547ea0bf34e56fc620ecd7415bb8a825c5)
2013-03-28 16:57:48 -04:00
Zev Benjamin
e4fba59538
Make event queues persistent across Tornado restarts using cPickle
...
(imported from commit 1434d1e9d394d725827b1740c0c07249d5e716ed)
2013-03-28 16:57:48 -04:00
Zev Benjamin
6cc70d94f6
Add register() call to event system
...
(imported from commit 0c9fbfec1866591b2169ce2da2bc2af6003f8f31)
2013-03-28 16:57:47 -04:00
Zev Benjamin
8f4eaa63ad
Initial event system implementation
...
This version has several limitations that are addressed in later
commits in this series.
(imported from commit 5d452b312d4204935059c4d602af0b9a8be1a009)
2013-03-28 16:48:14 -04:00