diff src/http/modules/ngx_http_grpc_module.c @ 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 413189f03c8d
children 070c972336c4
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) {