[nginx] SSL: account sent bytes in ngx_ssl_write().
Ruslan Ermilov
ru at nginx.com
Tue Feb 24 20:53:13 UTC 2015
details: http://hg.nginx.org/nginx/rev/c2f309fb7ad2
branches:
changeset: 5986:c2f309fb7ad2
user: Ruslan Ermilov <ru at nginx.com>
date: Tue Feb 24 23:52:47 2015 +0300
description:
SSL: account sent bytes in ngx_ssl_write().
diffstat:
src/event/ngx_event_openssl.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r f961c719fb09 -r c2f309fb7ad2 src/event/ngx_event_openssl.c
--- a/src/event/ngx_event_openssl.c Tue Feb 24 18:37:14 2015 +0300
+++ b/src/event/ngx_event_openssl.c Tue Feb 24 23:52:47 2015 +0300
@@ -1516,7 +1516,6 @@ ngx_ssl_send_chain(ngx_connection_t *c,
}
in->buf->pos += n;
- c->sent += n;
if (in->buf->pos == in->buf->last) {
in = in->next;
@@ -1617,7 +1616,6 @@ ngx_ssl_send_chain(ngx_connection_t *c,
}
buf->pos += n;
- c->sent += n;
if (n < size) {
break;
@@ -1675,6 +1673,8 @@ ngx_ssl_write(ngx_connection_t *c, u_cha
ngx_post_event(c->read, &ngx_posted_events);
}
+ c->sent += n;
+
return n;
}
More information about the nginx-devel
mailing list