Welcome! Log In Create A New Profile

Advanced

Re: websocket connection seems to cause nginx to not reload

nanaya
April 15, 2019 11:16PM
Hi,

On Tue, Apr 16, 2019, at 07:14, Andrea Y Ma wrote:
> Seeing nginx not picking up changes to its configuration. Running
> `nginx -t` does not reveal any errors and no errors generated when
> running `nginx -s reload`. However nginx access logs show that the old
> IPs from the previous configuration are still being served. Upon closer
> inspection seeing that nginx defunct process are occurring each time a
> `nginx -s reload` is run.
> Also seeing that it seems related to a websocket application as when
> that websocket application is stopped, then the nginx -s reload
> completes successfully.
> Andrea Ma
>

As websocket connections are persistent, the old processes will stay up until the last connection disconnects. It also applies to normal http (for example when someone is downloading/uploading large file) but it's way more visible with websocket.

(or at least that's how I understand it)
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

websocket connection seems to cause nginx to not reload

Andrea Y Ma April 15, 2019 06:16PM

Re: websocket connection seems to cause nginx to not reload

nanaya April 15, 2019 11:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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