[nginx] gRPC: fixed missing state save in frame header parsing.

Sergey Kandaurov pluknet at nginx.com
Tue Mar 20 13:07:30 UTC 2018


details:   http://hg.nginx.org/nginx/rev/25a4353633a0
branches:  
changeset: 7242:25a4353633a0
user:      Sergey Kandaurov <pluknet at nginx.com>
date:      Tue Mar 20 15:58:11 2018 +0300
description:
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.

diffstat:

 src/http/modules/ngx_http_grpc_module.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 190591ab0d76 -r 25a4353633a0 src/http/modules/ngx_http_grpc_module.c
--- 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 @@ ngx_http_grpc_parse_header(ngx_http_requ
         }
 
         ctx->padding = 0;
+        ctx->frame_state = state;
     }
 
     if (state < sw_fragment) {


More information about the nginx-devel mailing list