SSL: removed conditions that always hold true.

This commit is contained in:
Valentin Bartenev 2013-01-28 15:34:09 +00:00
parent 4b46b7fc5b
commit 693ba0179e

View File

@ -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;