diff options
author | Roman Arutyunyan <arut@nginx.com> | 2016-09-15 14:55:46 +0300 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2016-09-15 14:55:46 +0300 |
commit | 04b9434b1817def37eb55cd7f4360d1164678797 (patch) | |
tree | c0b609612ea98be3291822b4685d5cda6f4ea8d7 /src/stream/ngx_stream_handler.c | |
parent | afa771140bcf677505adcc6517008a9f9108c878 (diff) | |
download | nginx-04b9434b1817def37eb55cd7f4360d1164678797.tar.gz nginx-04b9434b1817def37eb55cd7f4360d1164678797.zip |
Stream: filters.
Diffstat (limited to 'src/stream/ngx_stream_handler.c')
-rw-r--r-- | src/stream/ngx_stream_handler.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stream/ngx_stream_handler.c b/src/stream/ngx_stream_handler.c index 6e2ed82dc..1c5dc6b62 100644 --- a/src/stream/ngx_stream_handler.c +++ b/src/stream/ngx_stream_handler.c @@ -134,6 +134,10 @@ ngx_stream_init_connection(ngx_connection_t *c) s->ssl = addr_conf->ssl; #endif + if (c->buffer) { + s->received += c->buffer->last - c->buffer->pos; + } + s->connection = c; c->data = s; |