Mercurial > hg > nginx-vendor-0-6
comparison src/event/modules/ngx_epoll_module.c @ 50:72eb30262aac NGINX_0_1_25
nginx 0.1.25
*) Bugfix: nginx did run on Linux parisc.
*) Feature: nginx now does not start under FreeBSD if the sysctl
kern.ipc.somaxconn value is too big.
*) Bugfix: if a request was internally redirected by the
ngx_http_index_module module to the ngx_http_proxy_module or
ngx_http_fastcgi_module modules, then the index file was not closed
after request completion.
*) Feature: the "proxy_pass" can be used in location with regular
expression.
*) Feature: the ngx_http_rewrite_filter_module module supports the
condition like "if ($HTTP_USER_AGENT ~ MSIE)".
*) Bugfix: nginx started too slow if the large number of addresses and
text values were used in the "geo" directive.
*) Change: a variable name must be declared as "$name" in the "geo"
directive. The previous variant without "$" is still supported, but
will be removed soon.
*) Feature: the "%{VARIABLE}v" logging parameter.
*) Feature: the "set $name value" directive.
*) Bugfix: gcc 4.0 compatibility.
*) Feature: the --with-openssl-opt=OPTIONS autoconfiguration directive.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Sat, 19 Mar 2005 00:00:00 +0300 |
parents | 6cfc63e68377 |
children | b55cbf18157e |
comparison
equal
deleted
inserted
replaced
49:93dabbc9efb9 | 50:72eb30262aac |
---|---|
131 | 131 |
132 | 132 |
133 static ngx_int_t | 133 static ngx_int_t |
134 ngx_epoll_init(ngx_cycle_t *cycle) | 134 ngx_epoll_init(ngx_cycle_t *cycle) |
135 { | 135 { |
136 size_t n; | |
137 ngx_event_conf_t *ecf; | 136 ngx_event_conf_t *ecf; |
138 ngx_epoll_conf_t *epcf; | 137 ngx_epoll_conf_t *epcf; |
139 | 138 |
140 ecf = ngx_event_get_conf(cycle->conf_ctx, ngx_event_core_module); | 139 ecf = ngx_event_get_conf(cycle->conf_ctx, ngx_event_core_module); |
141 | 140 |
378 | 377 |
379 static ngx_int_t | 378 static ngx_int_t |
380 ngx_epoll_process_events(ngx_cycle_t *cycle) | 379 ngx_epoll_process_events(ngx_cycle_t *cycle) |
381 { | 380 { |
382 int events; | 381 int events; |
383 size_t n; | |
384 uint32_t revents; | 382 uint32_t revents; |
385 ngx_int_t instance, i; | 383 ngx_int_t instance, i; |
386 ngx_uint_t lock, accept_lock, expire; | 384 ngx_uint_t lock, accept_lock, expire; |
387 ngx_err_t err; | 385 ngx_err_t err; |
388 ngx_log_t *log; | 386 ngx_log_t *log; |
661 static void * | 659 static void * |
662 ngx_epoll_create_conf(ngx_cycle_t *cycle) | 660 ngx_epoll_create_conf(ngx_cycle_t *cycle) |
663 { | 661 { |
664 ngx_epoll_conf_t *epcf; | 662 ngx_epoll_conf_t *epcf; |
665 | 663 |
666 ngx_test_null(epcf, ngx_palloc(cycle->pool, sizeof(ngx_epoll_conf_t)), | 664 epcf = ngx_palloc(cycle->pool, sizeof(ngx_epoll_conf_t)); |
667 NGX_CONF_ERROR); | 665 if (epcf == NULL) { |
666 return NGX_CONF_ERROR; | |
667 } | |
668 | 668 |
669 epcf->events = NGX_CONF_UNSET; | 669 epcf->events = NGX_CONF_UNSET; |
670 | 670 |
671 return epcf; | 671 return epcf; |
672 } | 672 } |