6 messages in ru.sysoev.nginxRe: [dev] some questions about subreq...
FromSent OnAttachments
Manlio PerilloMar 27, 2008 4:52 am 
Sergey BochenkovMar 27, 2008 7:28 am 
Manlio PerilloMar 28, 2008 5:21 am 
Sergey BochenkovMar 28, 2008 6:13 am 
Manlio PerilloMar 29, 2008 5:18 am 
Manlio PerilloMar 29, 2008 3:15 pm 
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: [dev] some questions about subrequestsActions...
From:Manlio Perillo (manl@public.gmane.org)
Date:Mar 29, 2008 3:15:45 pm
List:ru.sysoev.nginx

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.