SSL: calculation of buffer size moved closer to its usage.
No functional changes.
This commit is contained in:
parent
822e47a69a
commit
3df8fe1d19
|
@ -1207,12 +1207,12 @@ ngx_ssl_send_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit)
|
|||
}
|
||||
}
|
||||
|
||||
size = buf->last - buf->pos;
|
||||
|
||||
if (!flush && send < limit && buf->last < buf->end) {
|
||||
break;
|
||||
}
|
||||
|
||||
size = buf->last - buf->pos;
|
||||
|
||||
n = ngx_ssl_write(c, buf->pos, size);
|
||||
|
||||
if (n == NGX_ERROR) {
|
||||
|
|
Loading…
Reference in New Issue