mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +08:00
fix memory leak in long-lived non buffered connections
This commit is contained in:
parent
72c518452f
commit
7c15b75cc7
@ -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",
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user