> 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
> _______________________________________________
>


Hi, nginx moved to async_io some time ago as reading big files could hurt
too much. I will probably add something very similar in the near future.

In the mean time, while not simply call uwsgi.suspend() continuosly until
the file is fully read ?

-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to