backout r1757, we really need SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER
Igor Sysoev
14 years ago
185 | 185 | if (ngx_ssl_protocols[protocols >> 1] != 0) { |
186 | 186 | SSL_CTX_set_options(ssl->ctx, ngx_ssl_protocols[protocols >> 1]); |
187 | 187 | } |
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); | |
188 | 195 | |
189 | 196 | SSL_CTX_set_read_ahead(ssl->ctx, 1); |
190 | 197 |