async notification in Nginx

Alder Network aldernetwork at gmail.com
Mon May 13 21:35:00 UTC 2013


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, 2013 at 6:37 PM, Alder Network <aldernetwork at gmail.com>wrote:

> 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 appreciated.
>
> - Alder
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130513/b890ff50/attachment.html>


More information about the nginx mailing list