Welcome! Log In Create A New Profile

Advanced

Re: The "worker process is shutting down" is running all the time, How should I do?

Maxim Dounin
November 13, 2017 08:54AM
Hello!

On Fri, Nov 10, 2017 at 05:08:55PM +0800, Vis Lee wrote:

> Hi,
>
>
> The nginx is http proxy. when I use upgrade websocket and send heartbeat
> per 5s(client_body_timeout 6s;) the directives "worker_shutdown_timeout" is
> invalid, the "worker process is shutting down" produced by nginx -s reload
> is running all the time.
>
> How should I do?

What do you mean by "the directives "worker_shutdown_timeout" is
invalid"? It does not work for you?

It looks like WebSocket proxying currently fails to handle
worker_shutdown_timeout requests to close a connection, please try
the following patch:

diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -3314,6 +3314,11 @@ ngx_http_upstream_process_upgraded(ngx_h
return;
}

+ if (upstream->close || downstream->close) {
+ ngx_http_upstream_finalize_request(r, u, NGX_ERROR);
+ return;
+ }
+
if (from_upstream) {
src = upstream;
dst = downstream;

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

The "worker process is shutting down" is running all the time, How should I do?

Vis Lee November 10, 2017 04:10AM

Re: The "worker process is shutting down" is running all the time, How should I do?

Vis Lee November 10, 2017 04:52AM

Re: The "worker process is shutting down" is running all the time, How should I do?

Maxim Dounin November 13, 2017 08:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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