mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
fix memory leak in long-lived non buffered connections
This commit is contained in:
parent
72c518452f
commit
7c15b75cc7
2 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue