diff options
| author | Valentin Bartenev <vbart@nginx.com> | 2013-01-28 15:35:12 +0000 |
|---|---|---|
| committer | Valentin Bartenev <vbart@nginx.com> | 2013-01-28 15:35:12 +0000 |
| commit | c857dade60bf7298226e0ba3d817ac56fb4abf49 (patch) | |
| tree | 9392105a2bb1cd53ff0ba54bd7617e178a39e6b8 | |
| parent | 693ba0179e4126fe3490e1c499d982183931598d (diff) | |
| download | nginx-c857dade60bf7298226e0ba3d817ac56fb4abf49.tar.gz nginx-c857dade60bf7298226e0ba3d817ac56fb4abf49.tar.bz2 | |
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.
| -rw-r--r-- | src/event/ngx_event_openssl.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |
