comparison src/event/ngx_event.c @ 480:549994537f15 NGINX_0_7_52

nginx 0.7.52 *) Feature: the first native Windows binary release. *) Bugfix: in processing HEAD method while caching. *) Bugfix: in processing the "If-Modified-Since", "If-Range", etc. client request header lines while caching. *) Bugfix: now the "Set-Cookie" and "P3P" header lines are hidden in cacheable responses. *) Bugfix: if nginx was built with the ngx_http_perl_module and with a perl which supports threads, then during a master process exit the message "panic: MUTEX_LOCK" might be issued. *) Bugfix: nginx could not be built --without-http-cache; the bug had appeared in 0.7.48. *) Bugfix: nginx could not be built on platforms different from i386, amd64, sparc, and ppc; the bug had appeared in 0.7.42.
author Igor Sysoev <http://sysoev.ru>
date Mon, 20 Apr 2009 00:00:00 +0400
parents a8424ffa495c
children ed5e10fb40fc
comparison
equal deleted inserted replaced
479:eb4fdebda673 480:549994537f15
440 return NGX_ERROR; 440 return NGX_ERROR;
441 } 441 }
442 442
443 ecf = (*cf)[ngx_event_core_module.ctx_index]; 443 ecf = (*cf)[ngx_event_core_module.ctx_index];
444 444
445 if (!ngx_test_config) { 445 if (!ngx_test_config && ngx_process <= NGX_PROCESS_MASTER) {
446 ngx_log_error(NGX_LOG_NOTICE, cycle->log, 0, 446 ngx_log_error(NGX_LOG_NOTICE, cycle->log, 0,
447 "using the \"%s\" event method", ecf->name); 447 "using the \"%s\" event method", ecf->name);
448 } 448 }
449 449
450 ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); 450 ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module);
504 + cl; /* ngx_stat_writing */ 504 + cl; /* ngx_stat_writing */
505 505
506 #endif 506 #endif
507 507
508 shm.size = size; 508 shm.size = size;
509 shm.name.len = sizeof("nginx_shared_zone");
510 shm.name.data = (u_char *) "nginx_shared_zone";
509 shm.log = cycle->log; 511 shm.log = cycle->log;
510 512
511 if (ngx_shm_alloc(&shm) != NGX_OK) { 513 if (ngx_shm_alloc(&shm) != NGX_OK) {
512 return NGX_ERROR; 514 return NGX_ERROR;
513 } 515 }
533 ngx_stat_reading = (ngx_atomic_t *) (shared + 6 * cl); 535 ngx_stat_reading = (ngx_atomic_t *) (shared + 6 * cl);
534 ngx_stat_writing = (ngx_atomic_t *) (shared + 7 * cl); 536 ngx_stat_writing = (ngx_atomic_t *) (shared + 7 * cl);
535 537
536 #endif 538 #endif
537 539
538 *ngx_connection_counter = 1; 540 (void) ngx_atomic_cmp_set(ngx_connection_counter, 0, 1);
539 541
540 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, cycle->log, 0, 542 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
541 "counter: %p, %d", 543 "counter: %p, %d",
542 ngx_connection_counter, *ngx_connection_counter); 544 ngx_connection_counter, *ngx_connection_counter);
543 545