Welcome! Log In Create A New Profile

Advanced

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

Vis Lee
November 10, 2017 04:52AM
The nginx will add timer, the handler is as follows. The
c[i].read->handler is not processing the 'close' and 'error' flag?

```
static void
ngx_shutdown_timer_handler(ngx_event_t *ev)
{
ngx_uint_t i;
ngx_cycle_t *cycle;
ngx_connection_t *c;

cycle = ev->data;

c = cycle->connections;

for (i = 0; i < cycle->connection_n; i++) {

if (c[i].fd == (ngx_socket_t) -1
|| c[i].read == NULL
|| c[i].read->accept
|| c[i].read->channel
|| c[i].read->resolver)
{
continue;
}

ngx_log_debug1(NGX_LOG_DEBUG_CORE, ev->log, 0,
"*%uA shutdown timeout", c[i].number);

c[i].close = 1;
c[i].error = 1;

c[i].read->handler(c[i].read);
}
}

```

2017-11-10 17:08 GMT+08:00 Vis Lee <lazyvislee@gmail.com>:

>
> 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?
>
> Regards,
>
> leevis
>
>
_______________________________________________
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: 123
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