changeset 7242:25a4353633a0

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.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 20 Mar 2018 15:58:11 +0300
parents 190591ab0d76
children 31c929e16910
files src/http/modules/ngx_http_grpc_module.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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_requ
         }
 
         ctx->padding = 0;
+        ctx->frame_state = state;
     }
 
     if (state < sw_fragment) {