comparison src/event/ngx_event.c @ 505:f39b9e29530d NGINX_0_8_0

nginx 0.8.0 *) Feature: the "keepalive_requests" directive. *) Feature: the "limit_rate_after" directive. Thanks to Ivan Debnar. *) Bugfix: XLST filter did not work in subrequests. *) Bugfix: in relative paths handling in nginx/Windows. *) Bugfix: in proxy_store, fastcgi_store, proxy_cache, and fastcgi_cache in nginx/Windows. *) Bugfix: in memory allocation error handling. Thanks to Maxim Dounin and Kirill A. Korinskiy.
author Igor Sysoev <http://sysoev.ru>
date Tue, 02 Jun 2009 00:00:00 +0400
parents ed5e10fb40fc
children 7efcdb937752
comparison
equal deleted inserted replaced
504:6d9fb4461113 505:f39b9e29530d
1111 { 1111 {
1112 ngx_event_conf_t *ecf; 1112 ngx_event_conf_t *ecf;
1113 1113
1114 ecf = ngx_palloc(cycle->pool, sizeof(ngx_event_conf_t)); 1114 ecf = ngx_palloc(cycle->pool, sizeof(ngx_event_conf_t));
1115 if (ecf == NULL) { 1115 if (ecf == NULL) {
1116 return NGX_CONF_ERROR; 1116 return NULL;
1117 } 1117 }
1118 1118
1119 ecf->connections = NGX_CONF_UNSET_UINT; 1119 ecf->connections = NGX_CONF_UNSET_UINT;
1120 ecf->use = NGX_CONF_UNSET_UINT; 1120 ecf->use = NGX_CONF_UNSET_UINT;
1121 ecf->multi_accept = NGX_CONF_UNSET; 1121 ecf->multi_accept = NGX_CONF_UNSET;
1126 #if (NGX_DEBUG) 1126 #if (NGX_DEBUG)
1127 1127
1128 if (ngx_array_init(&ecf->debug_connection, cycle->pool, 4, 1128 if (ngx_array_init(&ecf->debug_connection, cycle->pool, 4,
1129 sizeof(ngx_event_debug_t)) == NGX_ERROR) 1129 sizeof(ngx_event_debug_t)) == NGX_ERROR)
1130 { 1130 {
1131 return NGX_CONF_ERROR; 1131 return NULL;
1132 } 1132 }
1133 1133
1134 #endif 1134 #endif
1135 1135
1136 return ecf; 1136 return ecf;