[dev] some questions about subrequests
Manlio Perillo
manlio_perillo at libero.it
Sun Mar 30 01:16:08 MSK 2008
Manlio Perillo ha scritto:
> Sergey Bochenkov ha scritto:
> [...]
>> The handler will be called after the end of the *subrequest*, not the
>> end of ngx_http_subrequest()-function call.
>>
>
> The problem is that you are assuming that the subrequest will make use
> of the upstream module, but this is not always the case.
>
> What happens if the subrequest will make use of the static module and
> the file is very small?
>
Confirmed, if the subrequest handler returns without NGX_AGAIN, then the
callback is called *before* the ngx_http_subrequest function returns.
Manlio Perillo
More information about the nginx
mailing list