Welcome! Log In Create A New Profile

Advanced

Re: Event based implementation in http module

May 07, 2012 01:28PM
@Maxim
and what about handler function specified by clcf->handler ?
Is it also blocking ?
and what about my others questions. Can I server multiple client using
worker process ?

regards
Vivek Goel



On Mon, May 7, 2012 at 8:19 PM, vivek goel <goelvivek2011@gmail.com> 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 ?
>
> The solution I am thinking is that I can do a blocking operation in one
> thread and call a callback to send response when response is ready. Is
> there a way I can tell worker process to start accepting the connection and
> server the response for old request when response is ready for that client?
>
> Can you please suggest some better idea to server multiple client on
> blocking call with nginx http module ?
>
>
>
> regards
> Vivek Goel
>
>
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Event based implementation in http module

goelviek2011@gmail.com 1640 May 07, 2012 10:50AM

Re: Event based implementation in http module

Maxim Dounin 607 May 07, 2012 01:14PM

Re: Event based implementation in http module

goelviek2011@gmail.com 760 May 07, 2012 01:28PM

Re: Event based implementation in http module

agentzh 622 May 08, 2012 01:14AM

Re: Event based implementation in http module

goelviek2011@gmail.com 767 May 08, 2012 01:48AM

Re: Event based implementation in http module

agentzh 797 May 08, 2012 08:16AM

Re: Event based implementation in http module

goelviek2011@gmail.com 844 May 12, 2012 03:58AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 135
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready