nginx sometimes close connection to grpc upstream when keepalive is set
mdounin at mdounin.ru
Mon Jun 18 15:20:37 UTC 2018
On Sun, Jun 17, 2018 at 12:46:35PM -0400, peanutgyz wrote:
> when grpc server response
> SETTINGS, WINDOW_UPDATE, PING, HEADERS, DATA, HEADERS 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 can't set
> connection to be keepalive and closed connection.
> expect connection to be persistent .
There are situations when nginx won't be able to keep a connection
alive. These aren't likely to happen though, and not considered
to be a problem.
More information about the nginx