lua-nginx-module
lua-nginx-module copied to clipboard
disable keepalive per location with http2
Hi
I apologize if this isn't the place for howto questions, but it may also be a feature request.
With http2 enabled we cannot use "connection: close" and keepalive_* directives per location (which makes sense), but that's what I looking for:
- http2 on
- global (http/server) keepalive on
- except for the one location (on the same server)
must give content with 2xx code and close connection, connection must start over every request, must not reuse the port, new syn-ack.
I tried different things, ngx.exit() ngx.eof() at different phases etc, no luck. I guess we should send GOAWAY http2 frame somehow, but I don't understand how if possible.
If you have a solution or ideas, I would be very grateful.