Mercurial > hg > nginx-ranges
comparison src/event/ngx_event_openssl.c @ 378:820f6378fc00 NGINX_0_7_1
nginx 0.7.1
*) Change: now locations are searched in a tree.
*) Change: the "optimize_server_names" directive was canceled due to
the "server_name_in_redirect" directive introduction.
*) Change: some long deprecated directives are not supported anymore.
*) Change: the "none" parameter in the "ssl_session_cache" directive;
now this is default parameter.
Thanks to Rob Mueller.
*) Bugfix: worker processes might not catch reconfiguration and log
rotation signals.
*) Bugfix: nginx could not be built on latest Fedora 9 Linux.
Thanks to Roxis.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 26 May 2008 00:00:00 +0400 |
parents | 6639b93e81b2 |
children | bc21d9cd9c54 |
comparison
equal
deleted
inserted
replaced
377:5d98007adb5f | 378:820f6378fc00 |
---|---|
1265 if (builtin_session_cache == NGX_SSL_NO_SCACHE) { | 1265 if (builtin_session_cache == NGX_SSL_NO_SCACHE) { |
1266 SSL_CTX_set_session_cache_mode(ssl->ctx, SSL_SESS_CACHE_OFF); | 1266 SSL_CTX_set_session_cache_mode(ssl->ctx, SSL_SESS_CACHE_OFF); |
1267 return NGX_OK; | 1267 return NGX_OK; |
1268 } | 1268 } |
1269 | 1269 |
1270 if (builtin_session_cache == NGX_SSL_NONE_SCACHE) { | |
1271 | |
1272 /* | |
1273 * If the server explicitly says that it does not support | |
1274 * session reuse (see SSL_SESS_CACHE_OFF above), then | |
1275 * Outlook Express fails to upload a sent email to | |
1276 * the Sent Items folder on the IMAP server via a separate IMAP | |
1277 * connection in the background. Therefore we have a special | |
1278 * mode (SSL_SESS_CACHE_SERVER|SSL_SESS_CACHE_NO_INTERNAL_STORE) | |
1279 * where the server pretends that it supports session reuse, | |
1280 * but it does not actually store any session. | |
1281 */ | |
1282 | |
1283 SSL_CTX_set_session_cache_mode(ssl->ctx, | |
1284 SSL_SESS_CACHE_SERVER | |
1285 |SSL_SESS_CACHE_NO_AUTO_CLEAR | |
1286 |SSL_SESS_CACHE_NO_INTERNAL_STORE); | |
1287 | |
1288 SSL_CTX_sess_set_cache_size(ssl->ctx, 1); | |
1289 | |
1290 return NGX_OK; | |
1291 } | |
1292 | |
1270 cache_mode = SSL_SESS_CACHE_SERVER; | 1293 cache_mode = SSL_SESS_CACHE_SERVER; |
1271 | 1294 |
1272 if (shm_zone && builtin_session_cache == NGX_SSL_NO_BUILTIN_SCACHE) { | 1295 if (shm_zone && builtin_session_cache == NGX_SSL_NO_BUILTIN_SCACHE) { |
1273 cache_mode |= SSL_SESS_CACHE_NO_INTERNAL; | 1296 cache_mode |= SSL_SESS_CACHE_NO_INTERNAL; |
1274 } | 1297 } |