Hello uWSGI,
I'am trying to read file in async mode, and getting some errors. do
I do something wrong?
fp = open('somefile', 'a')
uwsgi.wait_fd_write(fp.fileno(), 1)
uwsgi.suspend()
fp.write(msg+'\n')
uwsgi.wait_fd_write(fp.fileno(), 1)
uwsgi.suspend()
fp.flush()
# some other code
fp.close()
also should I suspend before flush() and close() ?
P.S.: errors I'am getting now are
epoll_ctl(): Operation not permitted [event.c line 244]
epoll_ctl(): Operation not permitted [event.c line 228]
ugreen/async mode
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi