Merge of r4630: fixed c->sent with unbuffered ssl.

Update c->sent in ngx_ssl_send_chain() even if SSL buffer is not used.
This commit is contained in:
Maxim Dounin 2012-06-04 12:00:38 +00:00
parent 2ae26f4d08
commit 62b2d07640
1 changed files with 1 additions and 0 deletions

View File

@ -995,6 +995,7 @@ ngx_ssl_send_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit)
}
in->buf->pos += n;
c->sent += n;
if (in->buf->pos == in->buf->last) {
in = in->next;