mirror of
https://github.com/nginx/nginx.git
synced 2026-10-23 20:44:41 +00:00
Upstream keepalive: reset c->sent on cached connections.
The c->sent is reset to 0 on each request by server-side http code, so do the same on client side. This allows to count number of bytes sent in a particular request.
This commit is contained in:
parent
c9fbbc8273
commit
403a9efc0c
1 changed files with 1 additions and 0 deletions
|
|
@ -248,6 +248,7 @@ ngx_http_upstream_get_keepalive_peer(ngx_peer_connection_t *pc, void *data)
|
|||
"get keepalive peer: using connection %p", c);
|
||||
|
||||
c->idle = 0;
|
||||
c->sent = 0;
|
||||
c->log = pc->log;
|
||||
c->read->log = pc->log;
|
||||
c->write->log = pc->log;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue