Websockets - recommended settings question
Maxim Dounin
mdounin at mdounin.ru
Tue Sep 13 13:01:11 UTC 2016
Hello!
On Tue, Sep 13, 2016 at 04:29:21PM +1200, Cain wrote:
> In the nginx documentation (https://www.nginx.com/blog/websocket-nginx), it
> is recommended to set the 'Connection' header to 'close' (if there is no
> upgrade header) - from my understanding, this disables keep alive from
> nginx to the upstream - is there a reason for this?
>
> Additionally, is keep alive the default behaviour when connecting to
> upstreams?
"Connection: close" is the default, unless you've explicitly
configured keepalive and set it to an empty value, see docs here:
http://nginx.org/r/keepalive
--
Maxim Dounin
http://nginx.org/
More information about the nginx
mailing list