On Wednesday 28 September 2011 22:10:16 Valentin V. Bartenev wrote:
> > In the mean time, why not simply call uwsgi.suspend() continuosly until
> > the file is fully read ?
> 
> Is it not too cpu-expensive? It looks like "while True" loop, especially
> when my async app concurrent load is low, and there is no other task to
> switch.

Whoops, never mind. I was under the delusion that I can set O_NONBLOCK flag on 
a regular file descriptor in Python and it will not block. Actually, it 
doesn't have any effect.

wbr, Valentin V. Bartenev
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to