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	Mon Mar 19 21:32:15 2018 +0300
+++ b/src/http/modules/ngx_http_grpc_module.c	Tue Mar 20 15:58:11 2018 +0300
@@ -2410,6 +2410,7 @@
         }
 
         ctx->padding = 0;
+        ctx->frame_state = state;
     }
 
     if (state < sw_fragment) {