Welcome! Log In Create A New Profile

Advanced

Re: proxy_set_header Connection "";

Robert Paprocki
September 30, 2016 12:28PM
On Fri, Sep 30, 2016 at 9:24 AM, Grant <emailgrant@gmail.com> wrote:

> > By default the Connection header is passed to the origin. If a client
> sends
> > a request with Connection: close, Nginx would send this to the upstream,
> > effectively disabling keepalive. By clearing this header, Nginx will not
> > send it on to the upstream source, leaving it to send its own Connection
> > header as appropriate.
>
>
> That makes perfect sense. Is there a way to test if keepalive is
> active between nginx and the upstream server?
>
> - Grant
>

A few quick thoughts come to mind:

- tcpdump traffic between nginx and upstream (this seems like the best way
to verify given that keepalive behavior directly affects tcp traffic, so
you want to examine this directly)
- examine nginx debug logs to show what headers are being passed to /
received from upstream (requires your nginx to be built with --with-debug)
- query kernel for status of tcp connections while simulating traffic
between nginx and upstream (eg netstat, ss, etc)
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

proxy_set_header Connection "";

Grant September 30, 2016 12:18PM

Re: proxy_set_header Connection "";

Robert Paprocki September 30, 2016 12:20PM

Re: proxy_set_header Connection "";

Grant September 30, 2016 12:26PM

Re: proxy_set_header Connection "";

Robert Paprocki September 30, 2016 12:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 152
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