fix memory leak in long-lived non buffered connections

This commit is contained in:
Igor Sysoev 2008-03-03 10:42:00 +00:00
parent 72c518452f
commit 7c15b75cc7
2 changed files with 2 additions and 0 deletions

View File

@ -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",

View File

@ -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;