Re: nginx sometimes close connection to grpc upstream when keepalive is set

2018-06-20 Thread peanutgyz
thanks for your help. how can i find why nginx can't keep connection in this case. why nginx can no process data and send a settings or ping ack to grpc server? grpc client will do like this. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,280159,280207#msg-280207 _

Re: nginx sometimes close connection to grpc upstream when keepalive is set

2018-06-18 Thread Maxim Dounin
Hello! On Sun, Jun 17, 2018 at 12:46:35PM -0400, peanutgyz wrote: > when grpc server response > SETTINGS[0], WINDOW_UPDATE[0], PING[0], HEADERS[1], DATA[1], HEADERS[1] in > one tcp packet, > > nginx want to send settings ack and call function > ngx_http_grpc_send_settings_ack, write some data

nginx sometimes close connection to grpc upstream when keepalive is set

2018-06-17 Thread peanutgyz
when grpc server response SETTINGS[0], WINDOW_UPDATE[0], PING[0], HEADERS[1], DATA[1], HEADERS[1] in one tcp packet, nginx want to send settings ack and call function ngx_http_grpc_send_settings_ack, write some data in ctx->out when finalize upstream grpc request, because out != NULL, nginx ca