Re: async notification in Nginx

2013-05-13 Thread Alder Network
By browsing the source code, it seems ngx_event_t can be used for this purpose, but looks like ngx_event_t has to be associated with ngx_connection_t, does ngx_connection_t have to be a socket, or a regular file descriptor will do? Is there any forum for wrting nginx modules? On Fri, May 10, 201

async notification in Nginx

2013-05-10 Thread Alder Network
I am writing a Niginx module that from several of worker threads that I created by own, I need to notify Nginx's main thread so the main thread (single-threaded nginx) doesn't need to poll periodically in timer context. What would be the reliable way to do that in Nginx? Anybody advice would be app