mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +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;
|
size = buf->last - buf->pos;
|
||||||
|
|
||||||
if (!flush && buf->last < buf->end && c->ssl->buffer) {
|
if (!flush && buf->last < buf->end) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1232,10 +1232,8 @@ ngx_ssl_send_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buf->pos == buf->last) {
|
|
||||||
buf->pos = buf->start;
|
buf->pos = buf->start;
|
||||||
buf->last = buf->start;
|
buf->last = buf->start;
|
||||||
}
|
|
||||||
|
|
||||||
if (in == NULL || send == limit) {
|
if (in == NULL || send == limit) {
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user