Mercurial > hg > nginx
comparison src/event/modules/ngx_kqueue_module.c @ 501:d4ea69372b94 release-0.1.25
nginx-0.1.25-RELEASE import
*) 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 <igor@sysoev.ru> |
---|---|
date | Sat, 19 Mar 2005 12:38:37 +0000 |
parents | 64d9afb209da |
children | 9b8c906f6e63 |
comparison
equal
deleted
inserted
replaced
500:9a0f304470f5 | 501:d4ea69372b94 |
---|---|
121 return NGX_ERROR; | 121 return NGX_ERROR; |
122 } | 122 } |
123 | 123 |
124 #if (NGX_THREADS) | 124 #if (NGX_THREADS) |
125 | 125 |
126 if (!(list_mutex = ngx_mutex_init(cycle->log, 0))) { | 126 list_mutex = ngx_mutex_init(cycle->log, 0); |
127 return NGX_ERROR; | 127 if (list_mutex == NULL) { |
128 } | 128 return NGX_ERROR; |
129 | 129 } |
130 if (!(kevent_mutex = ngx_mutex_init(cycle->log, 0))) { | 130 |
131 kevent_mutex = ngx_mutex_init(cycle->log, 0); | |
132 if (kevent_mutex == NULL) { | |
131 return NGX_ERROR; | 133 return NGX_ERROR; |
132 } | 134 } |
133 | 135 |
134 #endif | 136 #endif |
135 } | 137 } |
795 static void * | 797 static void * |
796 ngx_kqueue_create_conf(ngx_cycle_t *cycle) | 798 ngx_kqueue_create_conf(ngx_cycle_t *cycle) |
797 { | 799 { |
798 ngx_kqueue_conf_t *kcf; | 800 ngx_kqueue_conf_t *kcf; |
799 | 801 |
800 ngx_test_null(kcf, ngx_palloc(cycle->pool, sizeof(ngx_kqueue_conf_t)), | 802 kcf = ngx_palloc(cycle->pool, sizeof(ngx_kqueue_conf_t)); |
801 NGX_CONF_ERROR); | 803 if (kcf == NULL) { |
804 return NGX_CONF_ERROR; | |
805 } | |
802 | 806 |
803 kcf->changes = NGX_CONF_UNSET; | 807 kcf->changes = NGX_CONF_UNSET; |
804 kcf->events = NGX_CONF_UNSET; | 808 kcf->events = NGX_CONF_UNSET; |
805 | 809 |
806 return kcf; | 810 return kcf; |