comparison src/core/nginx.c @ 112:408f195b3482 NGINX_0_3_3

nginx 0.3.3 *) Change: the "bl" and "af" parameters of the "listen" directive was renamed to the "backlog" and "accept_filter". *) Feature: the "rcvbuf" and "sndbuf" parameters of the "listen" directive. *) Change: the "$msec" log parameter does not require now the additional the gettimeofday() system call. *) Feature: the -t switch now tests the "listen" directives. *) Bugfix: if the invalid address was specified in the "listen" directive, then after the -HUP signal nginx left an open socket in the CLOSED state. *) Bugfix: the mime type may be incorrectly set to default value for index file with variable in the name; bug appeared in 0.3.0. *) Feature: the "timer_resolution" directive. *) Feature: the millisecond "$upstream_response_time" log parameter. *) Bugfix: a temporary file with client request body now is removed just after the response header was transferred to a client. *) Bugfix: OpenSSL 0.9.6 compatibility. *) Bugfix: the SSL certificate and key file paths could not be relative. *) Bugfix: the "ssl_prefer_server_ciphers" directive did not work in the ngx_imap_ssl_module. *) Bugfix: the "ssl_protocols" directive allowed to specify the single protocol only.
author Igor Sysoev <http://sysoev.ru>
date Wed, 19 Oct 2005 00:00:00 +0400
parents 45f7329b4bd0
children df17fbafec8f
comparison
equal deleted inserted replaced
111:a175b609c76d 112:408f195b3482
27 27
28 28
29 static ngx_command_t ngx_core_commands[] = { 29 static ngx_command_t ngx_core_commands[] = {
30 30
31 { ngx_string("daemon"), 31 { ngx_string("daemon"),
32 NGX_MAIN_CONF|NGX_DIRECT_CONF|NGX_CONF_TAKE1, 32 NGX_MAIN_CONF|NGX_DIRECT_CONF|NGX_CONF_FLAG,
33 ngx_conf_set_flag_slot, 33 ngx_conf_set_flag_slot,
34 0, 34 0,
35 offsetof(ngx_core_conf_t, daemon), 35 offsetof(ngx_core_conf_t, daemon),
36 NULL }, 36 NULL },
37 37
38 { ngx_string("master_process"), 38 { ngx_string("master_process"),
39 NGX_MAIN_CONF|NGX_DIRECT_CONF|NGX_CONF_TAKE1, 39 NGX_MAIN_CONF|NGX_DIRECT_CONF|NGX_CONF_FLAG,
40 ngx_conf_set_flag_slot, 40 ngx_conf_set_flag_slot,
41 0, 41 0,
42 offsetof(ngx_core_conf_t, master), 42 offsetof(ngx_core_conf_t, master),
43 NULL },
44
45 { ngx_string("timer_resolution"),
46 NGX_MAIN_CONF|NGX_DIRECT_CONF|NGX_CONF_TAKE1,
47 ngx_conf_set_msec_slot,
48 0,
49 offsetof(ngx_core_conf_t, timer_resolution),
43 NULL }, 50 NULL },
44 51
45 { ngx_string("pid"), 52 { ngx_string("pid"),
46 NGX_MAIN_CONF|NGX_DIRECT_CONF|NGX_CONF_TAKE1, 53 NGX_MAIN_CONF|NGX_DIRECT_CONF|NGX_CONF_TAKE1,
47 ngx_conf_set_str_slot, 54 ngx_conf_set_str_slot,
532 * ccf->priority = 0; 539 * ccf->priority = 0;
533 */ 540 */
534 541
535 ccf->daemon = NGX_CONF_UNSET; 542 ccf->daemon = NGX_CONF_UNSET;
536 ccf->master = NGX_CONF_UNSET; 543 ccf->master = NGX_CONF_UNSET;
544 ccf->timer_resolution = NGX_CONF_UNSET_MSEC;
545
537 ccf->worker_processes = NGX_CONF_UNSET; 546 ccf->worker_processes = NGX_CONF_UNSET;
538 ccf->debug_points = NGX_CONF_UNSET; 547 ccf->debug_points = NGX_CONF_UNSET;
539 548
540 ccf->rlimit_nofile = NGX_CONF_UNSET; 549 ccf->rlimit_nofile = NGX_CONF_UNSET;
541 ccf->rlimit_sigpending = NGX_CONF_UNSET; 550 ccf->rlimit_sigpending = NGX_CONF_UNSET;
562 struct group *grp; 571 struct group *grp;
563 #endif 572 #endif
564 573
565 ngx_conf_init_value(ccf->daemon, 1); 574 ngx_conf_init_value(ccf->daemon, 1);
566 ngx_conf_init_value(ccf->master, 1); 575 ngx_conf_init_value(ccf->master, 1);
576 ngx_conf_init_msec_value(ccf->timer_resolution, 0);
577
567 ngx_conf_init_value(ccf->worker_processes, 1); 578 ngx_conf_init_value(ccf->worker_processes, 1);
568 ngx_conf_init_value(ccf->debug_points, 0); 579 ngx_conf_init_value(ccf->debug_points, 0);
569 580
570 #if (NGX_THREADS) 581 #if (NGX_THREADS)
571 ngx_conf_init_value(ccf->worker_threads, 0); 582 ngx_conf_init_value(ccf->worker_threads, 0);