2 ms·
It probably is for long-polling or websockets? https://github.com/mkj/wort-templog/blob/master/web/templog.py#L184 https://github.com/mkj/wort-templog/blob/mas
by mkj 10y ago
It probably is for long-polling or websockets?
https://github.com/mkj/wort-templog/blob/master/web/templog.py#L184 https://github.com/mkj/wort-templog/blob/master/web/templog.... is my not-quite-toy example - a single process runs from uwsgi with Bottle (like Flask) and gevent. The long polling waits on a global Event variable that's updated by another request, nice and simple.