From e232421266416ed841272847ea307e935852230d Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Tue, 20 Mar 2018 15:58:11 +0300 Subject: [PATCH] gRPC: fixed missing state save in frame header parsing. Previously, frame state wasn't saved if HEADERS frame payload that begins with header fragment was not received at once. --- src/http/modules/ngx_http_grpc_module.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/http/modules/ngx_http_grpc_module.c b/src/http/modules/ngx_http_grpc_module.c index 5ec45e28c..b6be9b874 100644 --- a/src/http/modules/ngx_http_grpc_module.c +++ b/src/http/modules/ngx_http_grpc_module.c @@ -2410,6 +2410,7 @@ ngx_http_grpc_parse_header(ngx_http_request_t *r, ngx_http_grpc_ctx_t *ctx, } ctx->padding = 0; + ctx->frame_state = state; } if (state < sw_fragment) {