Klaus Demo nginx / c20d376
backout r1757, we really need SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER Igor Sysoev 14 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
185185 if (ngx_ssl_protocols[protocols >> 1] != 0) {
186186 SSL_CTX_set_options(ssl->ctx, ngx_ssl_protocols[protocols >> 1]);
187187 }
188
189 /*
190 * we need this option because in ngx_ssl_send_chain()
191 * we may switch to a buffered write and may copy leftover part of
192 * previously unbuffered data to our internal buffer
193 */
194 SSL_CTX_set_mode(ssl->ctx, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
188195
189196 SSL_CTX_set_read_ahead(ssl->ctx, 1);
190197