Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable keepalive per location with http2 #2379

Open
cowsay opened this issue Nov 22, 2024 · 0 comments
Open

disable keepalive per location with http2 #2379

cowsay opened this issue Nov 22, 2024 · 0 comments

Comments

@cowsay
Copy link

cowsay commented Nov 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant