Welcome! Log In Create A New Profile

Advanced

closing connection after a request

January 13, 2023 01:22PM
Hello,

I'm trying to configure the upstream keepalive in such a way that upstream closes connection after every request. I have set keepalive configuration for upstream like so

keepalive 1;
keepalive_requests 0;
keepalive_timeout 0;

But when the upstream returns a response, I see that it sends "Connection: keep-alive" in the response header. Ideally it should have closed the connection after a request(send "Connection: close"). Could someone help me with what could be the issue here and what can be done to achieve this?

Thank you!
Subject Author Posted

closing connection after a request

libresco_27 January 13, 2023 01:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 132
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready