]> git.kaiwu.me - nginx.git/commitdiff
SSL: resetting of flush flag after the data was written.
authorValentin Bartenev <vbart@nginx.com>
Mon, 28 Jan 2013 15:35:12 +0000 (15:35 +0000)
committerValentin Bartenev <vbart@nginx.com>
Mon, 28 Jan 2013 15:35:12 +0000 (15:35 +0000)
There is no need to flush next chunk of data if it does not contain a buffer
with the flush or last_buf flags set.

src/event/ngx_event_openssl.c

index 93ae06aab11b53b45103747785e84ddc07ee0a5e..60d4f6193cf942b474515a918aa41021cd024262 100644 (file)
@@ -1232,6 +1232,8 @@ ngx_ssl_send_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit)
             break;
         }
 
+        flush = 0;
+
         buf->pos = buf->start;
         buf->last = buf->start;