]> git.kaiwu.me - nginx.git/commitdiff
SSL: removed conditions that always hold true.
authorValentin Bartenev <vbart@nginx.com>
Mon, 28 Jan 2013 15:34:09 +0000 (15:34 +0000)
committerValentin Bartenev <vbart@nginx.com>
Mon, 28 Jan 2013 15:34:09 +0000 (15:34 +0000)
src/event/ngx_event_openssl.c

index 378e72709fac9b7bef264d2b9733f7586bcb8822..93ae06aab11b53b45103747785e84ddc07ee0a5e 100644 (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;
 
-        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;
-        }
+        buf->pos = buf->start;
+        buf->last = buf->start;
 
         if (in == NULL || send == limit) {
             break;