SSL: take into account data in the buffer while limiting output.
In some rare cases this can result in a more smooth sending rate.
This commit is contained in:
parent
bfe4ae8a88
commit
5ef334fff4
1 changed files with 1 additions and 1 deletions
|
@ -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 ( ;; ) {
|
||||
|
|
Loading…
Reference in a new issue