mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
SSL: calculation of buffer size moved closer to its usage.
No functional changes.
This commit is contained in:
parent
0f62e193dc
commit
f98b1d2561
@ -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
Block a user