Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_grpc_module.c @ 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 | 413189f03c8d |
children | 070c972336c4 |
comparison
equal
deleted
inserted
replaced
7241:190591ab0d76 | 7242:25a4353633a0 |
---|---|
2408 } else if (ctx->type == NGX_HTTP_V2_CONTINUATION_FRAME) { | 2408 } else if (ctx->type == NGX_HTTP_V2_CONTINUATION_FRAME) { |
2409 state = sw_fragment; | 2409 state = sw_fragment; |
2410 } | 2410 } |
2411 | 2411 |
2412 ctx->padding = 0; | 2412 ctx->padding = 0; |
2413 ctx->frame_state = state; | |
2413 } | 2414 } |
2414 | 2415 |
2415 if (state < sw_fragment) { | 2416 if (state < sw_fragment) { |
2416 | 2417 |
2417 if (b->last - b->pos < (ssize_t) ctx->rest) { | 2418 if (b->last - b->pos < (ssize_t) ctx->rest) { |