keepalive not work with grpc

2018-08-05 Thread hunterqin
Hi, everyone! I have a problem that keepalive does not work with grpc. My conf looks like this: worker_processes 1; events { worker_connections 102400; } http { include mime.types; default_type application/octet-stream; sendfileon; #tcp_nopush on;

Re: keepalive not work with grpc

2018-08-17 Thread hunterqin
I used protobuf v310, grpc v181, nginx v1152 and v1140. The server is just same as the example async_server on grpc website. https://grpc.io/docs/tutorials/async/helloasync-cpp.html You can use it directly. https://github.com/grpc/grpc/blob/v1.14.1/examples/cpp/helloworld/greeter_async_server.cc

Re: keepalive not work with grpc

2018-08-10 Thread hunterqin
I found the problem. I used the wireshark to analyse the packets between nginx server and grpc server and I found that in the last packet from grpc server to nginx client, there are five frames,SETTINGS, HEADERS, DATA, HEADERS, WINDOW_UPDATE. The second HEADERS set the 'end_stream' and

Re: keepalive not work with grpc

2018-08-21 Thread hunterqin
It works. Nice job! Thank you for help. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,280765,280932#msg-280932 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx