Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2018-03-20 15:58:11 +0300
committerSergey Kandaurov <pluknet@nginx.com>2018-03-20 15:58:11 +0300
commite232421266416ed841272847ea307e935852230d (patch)
tree2224180aba0a3d9cc0052e33dc94dbe43ff9d2a5
parent74ea120f7d7445f0874add2c4f40f13de3bd5723 (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.c1
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) {