comparison src/http/v2/ngx_http_v2_filter_module.c @ 6952:afc60bd9008f

HTTP/2: fix $bytes_sent variable. Previously, its value accounted for payloads of HEADERS, CONTINUATION and DATA frames, as well as frame headers of HEADERS and DATA frames, but it didn't account for frame headers of CONTINUATION frames. Signed-off-by: Piotr Sikora <piotrsikora@google.com>
author Piotr Sikora <piotrsikora@google.com>
date Sun, 26 Mar 2017 01:25:02 -0700
parents 25203fc377fb
children 663e6a48bfcb
comparison
equal deleted inserted replaced
6951:ce37362a7a70 6952:afc60bd9008f
767 ll = &cl->next; 767 ll = &cl->next;
768 768
769 rest -= frame_size; 769 rest -= frame_size;
770 770
771 if (rest) { 771 if (rest) {
772 frame->length += NGX_HTTP_V2_FRAME_HEADER_SIZE;
773
772 type = NGX_HTTP_V2_CONTINUATION_FRAME; 774 type = NGX_HTTP_V2_CONTINUATION_FRAME;
773 flags = NGX_HTTP_V2_NO_FLAG; 775 flags = NGX_HTTP_V2_NO_FLAG;
774 continue; 776 continue;
775 } 777 }
776 778