Mapper Uno
March 25, 2014 04:04PM

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

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.

Any guidance would be highly appreciated.


Posted via

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: 79
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