News for hackers. Stuff that matters.
Re:Gevent, Long-Polling & You by ssfak on Monday August 01, 2011 @04:32AM (#2831266)
Instead of "long polling" (or a different way to have long polling) is to use the HTML5's server sent events (http://www.w3.org/TR/eventsource/) See here for examples: http://www.html5rocks.com/en/tutorials/eventsource/basics/

I have implemented such a functionality for real time monitoring using gevent and works extremely well. This HTML5 feature is supported in recent versions of Chrome, Opera, and Safari and in the beta versions of Firefox, but not in any version of IE: http://caniuse.com/#feat=eventsource

Re:Gevent, Long-Polling & You by lightcatcher on Monday August 01, 2011 @05:06AM (#2831330)
Thanks for the links. I wasn't aware that server sent events existed. It looks cool, but is just another thing that can't be used because of compatibility yet :(.