Welcome! Log In Create A New Profile

Advanced

Re: grpc keepalive does not effect, nginx will close connection by the minute

Sergey Kandaurov
January 23, 2019 05:58AM
> On 23 Jan 2019, at 05:37, Roar <nginx-forum@forum.nginx.org> wrote:
>
> Thanks Sergey Kandaurov.
> The second problem is that I set grpc_read_timeout and grpc_send_timeout but
> it seems does not take effect. I tested many times and found that if the
> read_timeout less than default 60s, then it works. But it has no effect when
> read_timeout more than 60s, nginx will automatically close the connection
> between nginx and grpc server by every 60s. How to configure parameters to
> fix this issue?

There're different timeouts when communicating with gRPC server,
but only grpc_read_timeout is set when reading a gRPC response.
Please double-check to make sure: 1) there are no external events
that result in connection close; 2) connection is not closed by
another timeout such as keepalive timeout, after a whole response
had been read. To sort out what's going on, it is useful to have
debug log, see http://nginx.org/en/docs/debugging_log.html

--
Sergey Kandaurov

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

grpc keepalive does not effect, nginx will close connection by the minute

Roar January 21, 2019 10:43PM

Re: grpc keepalive does not effect, nginx will close connection by the minute

Sergey Kandaurov January 22, 2019 07:02AM

Re: grpc keepalive does not effect, nginx will close connection by the minute

Roar January 22, 2019 09:37PM

Re: grpc keepalive does not effect, nginx will close connection by the minute

Sergey Kandaurov January 23, 2019 05:58AM

Re: grpc keepalive does not effect, nginx will close connection by the minute

Roar January 23, 2019 10:05PM

Re: grpc keepalive does not effect, nginx will close connection by the minute

Sergey Kandaurov January 24, 2019 10:42AM

Re: grpc keepalive does not effect, nginx will close connection by the minute

Roar January 25, 2019 12:43AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 202
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready