Event based implementation in http module

Maxim Dounin mdounin at mdounin.ru
Mon May 7 17:13:41 UTC 2012


On Mon, May 07, 2012 at 08:19:48PM +0530, vivek goel wrote:

> I am working on http module using nginx.
> I have one question.
>    1. Is function specified in ngx_command_t will be blocking call ?
> If not
> My module description is as follow:
>       It does read of file which is blocking call. That I think at same
> time worker process can't server the same client ?

Functions specified in ngx_command_t structures are configuration 
parsing handlers, they are executed during configuration parsing 
within master process and are allowed to block (as this doesn't 
affect worker processes and hence request handling).

Maxim Dounin

More information about the nginx-devel mailing list