mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 09:42:39 +08:00
SSL: removed conditions that always hold true.
This commit is contained in:
parent
4b46b7fc5b
commit
693ba0179e
@ -1210,7 +1210,7 @@ ngx_ssl_send_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit)
|
||||
|
||||
size = buf->last - buf->pos;
|
||||
|
||||
if (!flush && buf->last < buf->end && c->ssl->buffer) {
|
||||
if (!flush && buf->last < buf->end) {
|
||||
break;
|
||||
}
|
||||
|
||||
@ -1232,10 +1232,8 @@ ngx_ssl_send_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit)
|
||||
break;
|
||||
}
|
||||
|
||||
if (buf->pos == buf->last) {
|
||||
buf->pos = buf->start;
|
||||
buf->last = buf->start;
|
||||
}
|
||||
|
||||
if (in == NULL || send == limit) {
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user