19 messages in ru.sysoev.nginxRe: Is mod_php walking on its road?
FromSent OnAttachments
Steve ChuOct 23, 2007 2:01 am 
Aleksandar LazicOct 23, 2007 2:12 am 
Igor SysoevOct 23, 2007 2:15 am 
marc...@public.gmane.orgOct 23, 2007 2:24 am 
Alejandro VartabedianOct 23, 2007 2:42 am 
Manlio PerilloOct 23, 2007 2:46 am 
Igor SysoevOct 23, 2007 3:03 am 
Igor SysoevOct 23, 2007 3:05 am 
Manlio PerilloOct 23, 2007 3:27 am 
Steve ChuOct 23, 2007 3:51 am 
Alejandro VartabedianOct 23, 2007 4:03 am 
Manlio PerilloOct 23, 2007 4:05 am 
Steve ChuOct 23, 2007 7:13 pm 
Yusuf GoolamabbasOct 24, 2007 1:01 am 
Igor SysoevOct 24, 2007 3:14 am 
Steve ChuOct 24, 2007 8:22 am 
Thomas SeifertOct 24, 2007 8:50 am 
Igor SysoevOct 30, 2007 1:11 am 
Manlio PerilloOct 30, 2007 4:35 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Is mod_php walking on its road?Actions...
From:Manlio Perillo (manl@public.gmane.org)
Date:Oct 30, 2007 4:35:49 am
List:ru.sysoev.nginx

Igor Sysoev ha scritto:

On Wed, Oct 24, 2007 at 08:22:52AM -0700, Steve Chu wrote:

I mean, why mod_perl not blocked?

As it was already said, ngx_http_perl_module of course blocks too. However, ngx_http_perl_module allows to create call-back handlers that will be called lately. Currently ngx_http_perl_module support two such handlers only:

$r->has_request_body(handler) and $r->sleep(milliseconds, handler)

Use of $r->has_request_body() you may see here: http://wiki.codemongers.com/NginxEmbeddedPerlModule

mod_wsgi has a similar feature. If there is a request body, the handler is called only after the entire body has been read.

Moreover Python supports generators: http://en.wikipedia.org/wiki/Generator_%28computer_science%29

This means that the iteration can be suspended when nginx is busy sending data.

In a future revision I will had an extension, so that the WSGI application can voluntarily suspend its execution.