aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-03-03 10:42:00 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-03-03 10:42:00 +0000
commit7c15b75cc792c5e5c8d2af219d84e7dcb8e5be6b (patch)
tree07bf62bc4fe7822d8e22a03e8fc6078f17acbbc2 /src
parent72c518452f391502538ef5a7e412088a53c6ae24 (diff)
downloadnginx-7c15b75cc792c5e5c8d2af219d84e7dcb8e5be6b.tar.gz
nginx-7c15b75cc792c5e5c8d2af219d84e7dcb8e5be6b.zip
fix memory leak in long-lived non buffered connections
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_memcached_module.c1
-rw-r--r--src/http/ngx_http_upstream.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_memcached_module.c b/src/http/modules/ngx_http_memcached_module.c
index 1f156cd42..64592f3ae 100644
--- a/src/http/modules/ngx_http_memcached_module.c
+++ b/src/http/modules/ngx_http_memcached_module.c
@@ -461,6 +461,7 @@ ngx_http_memcached_filter(void *data, ssize_t bytes)
cl->buf->pos = last;
b->last += bytes;
cl->buf->last = b->last;
+ cl->buf->tag = u->output.tag;
ngx_log_debug4(NGX_LOG_DEBUG_HTTP, ctx->request->connection->log, 0,
"memcached filter bytes:%z size:%z length:%z rest:%z",
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index aedc504b6..a46b819a4 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -1937,6 +1937,7 @@ ngx_http_upstream_non_buffered_filter(void *data, ssize_t bytes)
cl->buf->pos = b->last;
b->last += bytes;
cl->buf->last = b->last;
+ cl->buf->tag = u->output.tag;
if (u->length == NGX_MAX_SIZE_T_VALUE) {
return NGX_OK;