Hallo everybody.

In my asynchronous application (besides other tasks) I have to read in memory 
and process a ~3-7 Mb files from disk. After some research I haven't found any 
proper way to do it without blocking.

I can set O_NONBLOCK flag and use pooling, but it seems that I can't 
async_sleep less then a second, which is too long delay for my task.

Looks like, there remains one thing to do: detach a file reading task from 
async application into a special separate uwsgi service, where the read will 
be blocking and call it through async_send_message.

Am I right or there is a more convenient way for such tasks?

p.s. I use Linux system.

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

Reply via email to