Subrequests: returning response to client

Maxim Dounin mdounin at
Mon Apr 22 16:14:47 UTC 2013


On Mon, Apr 22, 2013 at 12:17:31AM -0400, davidjb wrote:

> Maxim Dounin Wrote:
> -------------------------------------------------------
> > What you are trying to do should be possible with 
> > NGX_HTTP_SUBREQUEST_IN_MEMORY - this way subrequest body will be 
> > available in memory instead of being sent to a client.  But it's 
> > not currently supported for fastcgi.
> Thanks for the clarification and your reply.  I've taken to ignoring request
> and response bodies for now since in my use case, the auth_request backend
> really only needs to respond with redirections for Single Sign On.  
> Is the thinking that this may eventually be supported by other modules like
> FastCGI/uWSGI or is it related to some technical issue?  

The subrequest in memory functionality needs unbuffered handling 
in the upstream module, which is not implemented for FastCGI.

Maxim Dounin

More information about the nginx mailing list