It works! Thanks a ton! @Sergey Kandaurovby Roar - Nginx Mailing List - English
I recompile nginx with debug module follow your instruction and check all keepalive_timeout parameter. I tested my application at 2019/01/24 10:49:53 and it responsed correctly, and the connection between nginx and grpc server was closed as expected at 2019/01/24 10:50:53. Oops! What sad is that I don't understand the output nginx debug log. Could you help me analyze the log? Here is my ngby Roar - Nginx Mailing List - English
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 parametersby Roar - Nginx Mailing List - English
Grpc server is sitting at my backends, I use nginx as the proxy to transfer http1.1 to http2(grpc) protocol, I set parameter like below: upstream ID_PUMPER { server 127.0.0.1:58548; } server { listen 8080 http2; grpc_read_timeout 120s; grpc_send_timeout 120s; grpc_socket_keepalive on; keepalive_timeout 100s; location /utoProto.idProduce.IdProduceby Roar - Nginx Mailing List - English