Welcome! Log In Create A New Profile

Advanced

Reading request body in PRE_ACCESS phase

August 28, 2014 01:36PM
Hi Guys

I am trying to read the request body in pre_access phase. This seems
like a regular requirement but I dont seem to find a good way to do
this. Since the request body is read asynchronously, I have to do
phases++ and core_run_phases myself in the read_completion callback. I
also have to set the r->write_event_handler to empty because otherwise
a write event calls run_phases which I obviously dont want till I read
the body. I am trying to understand what is the correct way to do this
since I seem to be hacking my way around this.

Best Regards!
+Fasih

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

Reading request body in PRE_ACCESS phase

faskiri.devel 718 August 28, 2014 01:36PM

Re: Reading request body in PRE_ACCESS phase

Yichun Zhang (agentzh) 288 August 28, 2014 04:48PM

Re: Reading request body in PRE_ACCESS phase

faskiri.devel 421 August 29, 2014 03:56AM

Re: Reading request body in PRE_ACCESS phase

Yichun Zhang (agentzh) 348 August 29, 2014 04:36PM



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

Online Users

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