Welcome! Log In Create A New Profile

Advanced

Re: Post action after client closes connection

Roman Mobczynski
May 04, 2009 05:21AM
I think I have found solution :)

ngx_http_request_t *sr;
rc = ngx_http_subrequest(r, &location, NULL, &sr, NULL, 0);

ngx_http_core_loc_conf_t *clcfsub;

//location configuration for subrequest
clcfsub = ngx_http_get_module_loc_conf(sr, ngx_http_core_module);

clcfsub->post_action = uri of post action;

Earlier I was setting post_action only for main request and now it is
set also for subrequest, seems to work.
--
Posted via http://www.ruby-forum.com/.
Subject Author Posted

Post action after client closes connection

Mobczynski Mobczynski April 29, 2009 10:48AM

Re: Post action after client closes connection

Roman Mobczynski May 04, 2009 03:22AM

Re: Post action after client closes connection

Roman Mobczynski May 04, 2009 05:21AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 178
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