comparison src/core/ngx_cycle.c @ 3992:a1dd9dc754ab

A new fix for the case when ssl_session_cache defined, but ssl is not enabled in any server. The previous r1033 does not help when unused zone becomes used after reconfiguration, so it is backed out. The initial thought was to make SSL modules independed from SSL implementation and to keep OpenSSL code dependance as much as in separate files.
author Igor Sysoev <igor@sysoev.ru>
date Thu, 04 Aug 2011 11:12:30 +0000
parents e3cb8e27e413
children 59b99f217c6d
comparison
equal deleted inserted replaced
3991:509db6c0c5dc 3992:a1dd9dc754ab
416 "zero size shared memory zone \"%V\"", 416 "zero size shared memory zone \"%V\"",
417 &shm_zone[i].shm.name); 417 &shm_zone[i].shm.name);
418 goto failed; 418 goto failed;
419 } 419 }
420 420
421 if (shm_zone[i].init == NULL) {
422 /* unused shared zone */
423 continue;
424 }
425
426 shm_zone[i].shm.log = cycle->log; 421 shm_zone[i].shm.log = cycle->log;
427 422
428 opart = &old_cycle->shared_memory.part; 423 opart = &old_cycle->shared_memory.part;
429 oshm_zone = opart->elts; 424 oshm_zone = opart->elts;
430 425