]> git.kaiwu.me - nginx.git/commitdiff
gRPC: fixed missing state save in frame header parsing.
authorSergey Kandaurov <pluknet@nginx.com>
Tue, 20 Mar 2018 12:58:11 +0000 (15:58 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Tue, 20 Mar 2018 12:58:11 +0000 (15:58 +0300)
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

index 5ec45e28c0361c50189234806f9fd3ec7f616184..b6be9b874d30c88f0959cb30d2e6399e6a49379a 100644 (file)
@@ -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) {