On Wednesday 28 September 2011 21:42:18 Valentin V. Bartenev wrote:
> 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.
Now, I tried, and it doesn't work:
import os
def fileHandler(filename, modifier2):
fd = os.open(filename, os.O_RDONLY)
try:
while True:
buf = os.read(fd, 4096) #32768)
if buf:
yield buf
else:
raise StopIteration
finally:
fd.close()
I'm getting this:
[uWSGI DEBUG] uwsgi payload size: 91 (0x5B) modifier1: 32 modifier2: 0
-- unavailable modifier requested: 32 --
when I call from another uwsgi instance:
uwsgi.async_send_message(fl_fd, 0, 32, path)
Am I doing something wrong, or handling 32's modifier just haven't been
implemented yet?
wbr, Valentin V. Bartenev
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi