Welcome! Log In Create A New Profile


Re: Nginx POST handler module caching response

Maxim Dounin
March 26, 2014 08:16AM

On Tue, Mar 25, 2014 at 09:03:22PM +0100, Mapper Uno wrote:

> Hi,
> I have written a small nginx module that processes POST request and
> sends back in response the same data that is received in POST request. I
> am testing this with curl utility and closely monitoring nginx log which
> is set to debug level.
> (My module's server is listening on port 9000)
> # curl --data "This is nginx helper forum" http://localhost:9000
> This is nginx helper forum
> # curl --data "Ruby forum" http://localhost:9000
> This is ng
> # curl --data "ngx" http://localhost:9000
> Thi
> However, if I reload the nginx config (nginx -s reload), I see the
> correct string
> # curl --data "Ruby forum" http://localhost:9000
> Ruby forum
> When I look at the nginx log file, I can see the correct incoming data
> string every time in my handler. I also do ngx_pcalloc for my output
> buffer string.
> However, why is the cached/stale buffer string returned by nginx in
> response. I tried to look up relevant config directive but failed to
> correlate to this behaviour.

Looks like you did something wrong. It's highly unlikely though
that somebody will be able to say what exactly without seeing your

Maxim Dounin

nginx mailing list
Subject Author Posted

Nginx POST handler module caching response

Mapper Uno March 25, 2014 04:04PM

Re: Nginx POST handler module caching response

Maxim Dounin March 26, 2014 08:16AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 130
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 494 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready