Mercurial > hg > nginx
comparison src/http/v2/ngx_http_v2_filter_module.c @ 6953:663e6a48bfcb
HTTP/2: fix $body_bytes_sent variable.
Previously, its value included payloads and frame headers of HEADERS
and CONTINUATION frames.
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
author | Piotr Sikora <piotrsikora@google.com> |
---|---|
date | Sun, 26 Mar 2017 01:25:03 -0700 |
parents | afc60bd9008f |
children | b624fbf7bee2 |
comparison
equal
deleted
inserted
replaced
6952:afc60bd9008f | 6953:663e6a48bfcb |
---|---|
1209 | 1209 |
1210 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0, | 1210 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0, |
1211 "http2:%ui HEADERS frame %p was sent", | 1211 "http2:%ui HEADERS frame %p was sent", |
1212 stream->node->id, frame); | 1212 stream->node->id, frame); |
1213 | 1213 |
1214 stream->request->header_size += NGX_HTTP_V2_FRAME_HEADER_SIZE | |
1215 + frame->length; | |
1216 | |
1214 ngx_http_v2_handle_frame(stream, frame); | 1217 ngx_http_v2_handle_frame(stream, frame); |
1215 | 1218 |
1216 ngx_http_v2_handle_stream(h2c, stream); | 1219 ngx_http_v2_handle_stream(h2c, stream); |
1217 | 1220 |
1218 return NGX_OK; | 1221 return NGX_OK; |