comparison src/event/ngx_event_openssl.c @ 1873:5d076348c121

backout r1757, we really need SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER
author Igor Sysoev <igor@sysoev.ru>
date Thu, 31 Jan 2008 15:10:45 +0000
parents 192443881e51
children 5d663752fd96
comparison
equal deleted inserted replaced
1872:8e88522cb6da 1873:5d076348c121
184 184
185 185
186 if (ngx_ssl_protocols[protocols >> 1] != 0) { 186 if (ngx_ssl_protocols[protocols >> 1] != 0) {
187 SSL_CTX_set_options(ssl->ctx, ngx_ssl_protocols[protocols >> 1]); 187 SSL_CTX_set_options(ssl->ctx, ngx_ssl_protocols[protocols >> 1]);
188 } 188 }
189
190 /*
191 * we need this option because in ngx_ssl_send_chain()
192 * we may switch to a buffered write and may copy leftover part of
193 * previously unbuffered data to our internal buffer
194 */
195 SSL_CTX_set_mode(ssl->ctx, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
189 196
190 SSL_CTX_set_read_ahead(ssl->ctx, 1); 197 SSL_CTX_set_read_ahead(ssl->ctx, 1);
191 198
192 return NGX_OK; 199 return NGX_OK;
193 } 200 }