diff options
author | Valentin Bartenev <vbart@nginx.com> | 2013-01-28 15:41:12 +0000 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2013-01-28 15:41:12 +0000 |
commit | 733e6d2ac6c544aa1a3f42dbc93c9e6d4adf7122 (patch) | |
tree | 53799a3eb70b5456cf98ceebf755fb3b5a0a6ae2 /src | |
parent | 0f0fac70a14fc489eab91888772073ed1259b633 (diff) | |
download | nginx-733e6d2ac6c544aa1a3f42dbc93c9e6d4adf7122.tar.gz nginx-733e6d2ac6c544aa1a3f42dbc93c9e6d4adf7122.zip |
SSL: take into account data in the buffer while limiting output.
In some rare cases this can result in a more smooth sending rate.
Diffstat (limited to 'src')
-rw-r--r-- | src/event/ngx_event_openssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c index d288bc817..1a1498cae 100644 --- a/src/event/ngx_event_openssl.c +++ b/src/event/ngx_event_openssl.c @@ -1168,7 +1168,7 @@ ngx_ssl_send_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit) buf->end = buf->start + NGX_SSL_BUFSIZE; } - send = 0; + send = buf->last - buf->pos; flush = (in == NULL) ? 1 : buf->flush; for ( ;; ) { |