From: Valentin Bartenev Date: Mon, 28 Jan 2013 15:35:12 +0000 (+0000) Subject: SSL: resetting of flush flag after the data was written. X-Git-Tag: release-1.3.12~12 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=c857dade60bf7298226e0ba3d817ac56fb4abf49;p=nginx.git SSL: resetting of flush flag after the data was written. 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. --- diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c index 93ae06aab..60d4f6193 100644 --- a/src/event/ngx_event_openssl.c +++ b/src/event/ngx_event_openssl.c @@ -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;