Welcome! Log In Create A New Profile

Advanced

Subrequest Cycle

Antonio Nappa
April 21, 2017 11:46AM
Hello,

I would like to trigger a subrequest that will call a location that has an
upstream. What I am experimenting is a loop of subrequests, also if I do
finalize on the subrequest in the subsequent calls to the filter.

if (r != r->main)
{ /* subrequest */
ngx_http_finalize_request(r, NGX_HTTP_OK);
return NGX_OK;
}

Also I see an empty response from the server, instead of the actual body of
the root page.

My expected behavior would be to issue an asynchronous upstream call
through the usage of a subrequest when a particular value is set in the ctx.


Thanks,
Antonio
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Subrequest Cycle

Antonio Nappa 420 April 21, 2017 11:46AM



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

Online Users

Guests: 329
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready