diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2018-03-20 15:58:11 +0300 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2018-03-20 15:58:11 +0300 |
commit | e232421266416ed841272847ea307e935852230d (patch) | |
tree | 2224180aba0a3d9cc0052e33dc94dbe43ff9d2a5 | |
parent | 74ea120f7d7445f0874add2c4f40f13de3bd5723 (diff) |
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.
-rw-r--r-- | src/http/modules/ngx_http_grpc_module.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_grpc_module.c b/src/http/modules/ngx_http_grpc_module.c index 5ec45e28c..b6be9b874 100644 --- 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_request_t *r, ngx_http_grpc_ctx_t *ctx, } ctx->padding = 0; + ctx->frame_state = state; } if (state < sw_fragment) { |