Mercurial > hg > nginx-ranges
comparison src/imap/ngx_imap_core_module.c @ 126:df17fbafec8f NGINX_0_3_10
nginx 0.3.10
*) Change: the "valid_referers" directive and the "$invalid_referer"
variable were moved to the new ngx_http_referer_module from the
ngx_http_rewrite_module.
*) Change: the "$apache_bytes_sent" variable name was changed to
"$body_bytes_sent".
*) Feature: the "$sent_http_..." variables.
*) Feature: the "if" directive supports the "=" and "!=" operations.
*) Feature: the "proxy_pass" directive supports the HTTPS protocol.
*) Feature: the "proxy_set_body" directive.
*) Feature: the "post_action" directive.
*) Feature: the ngx_http_empty_gif_module.
*) Feature: the "worker_cpu_affinity" directive for Linux.
*) Bugfix: the "rewrite" directive did not unescape URI part in
redirect, now it is unescaped except the %00-%25 and %7F-%FF
characters.
*) Bugfix: nginx could not be built by the icc 9.0 compiler.
*) Bugfix: if the SSI was enabled for zero size static file, then the
chunked response was encoded incorrectly.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 15 Nov 2005 00:00:00 +0300 |
parents | 408f195b3482 |
children | 91372f004adf |
comparison
equal
deleted
inserted
replaced
125:97504de1f89e | 126:df17fbafec8f |
---|---|
125 }; | 125 }; |
126 | 126 |
127 | 127 |
128 static void * | 128 static void * |
129 ngx_imap_core_create_main_conf(ngx_conf_t *cf) | 129 ngx_imap_core_create_main_conf(ngx_conf_t *cf) |
130 { | 130 { |
131 ngx_imap_core_main_conf_t *cmcf; | 131 ngx_imap_core_main_conf_t *cmcf; |
132 | 132 |
133 cmcf = ngx_pcalloc(cf->pool, sizeof(ngx_imap_core_main_conf_t)); | 133 cmcf = ngx_pcalloc(cf->pool, sizeof(ngx_imap_core_main_conf_t)); |
134 if (cmcf == NULL) { | 134 if (cmcf == NULL) { |
135 return NGX_CONF_ERROR; | 135 return NGX_CONF_ERROR; |
145 } | 145 } |
146 | 146 |
147 | 147 |
148 static void * | 148 static void * |
149 ngx_imap_core_create_srv_conf(ngx_conf_t *cf) | 149 ngx_imap_core_create_srv_conf(ngx_conf_t *cf) |
150 { | 150 { |
151 ngx_imap_core_srv_conf_t *cscf; | 151 ngx_imap_core_srv_conf_t *cscf; |
152 | 152 |
153 cscf = ngx_pcalloc(cf->pool, sizeof(ngx_imap_core_srv_conf_t)); | 153 cscf = ngx_pcalloc(cf->pool, sizeof(ngx_imap_core_srv_conf_t)); |
154 if (cscf == NULL) { | 154 if (cscf == NULL) { |
155 return NULL; | 155 return NULL; |
156 } | 156 } |
157 | 157 |
297 return NGX_CONF_ERROR; | 297 return NGX_CONF_ERROR; |
298 } | 298 } |
299 | 299 |
300 imap_ctx = cf->ctx; | 300 imap_ctx = cf->ctx; |
301 ctx->main_conf = imap_ctx->main_conf; | 301 ctx->main_conf = imap_ctx->main_conf; |
302 | 302 |
303 /* the server{}'s srv_conf */ | 303 /* the server{}'s srv_conf */ |
304 | 304 |
305 ctx->srv_conf = ngx_pcalloc(cf->pool, sizeof(void *) * ngx_imap_max_module); | 305 ctx->srv_conf = ngx_pcalloc(cf->pool, sizeof(void *) * ngx_imap_max_module); |
306 if (ctx->srv_conf == NULL) { | 306 if (ctx->srv_conf == NULL) { |
307 return NGX_CONF_ERROR; | 307 return NGX_CONF_ERROR; |
386 | 386 |
387 in_addr = inet_addr((const char *) inet_upstream.host.data); | 387 in_addr = inet_addr((const char *) inet_upstream.host.data); |
388 | 388 |
389 if (in_addr == INADDR_NONE) { | 389 if (in_addr == INADDR_NONE) { |
390 h = gethostbyname((const char *) inet_upstream.host.data); | 390 h = gethostbyname((const char *) inet_upstream.host.data); |
391 | 391 |
392 if (h == NULL || h->h_addr_list[0] == NULL) { | 392 if (h == NULL || h->h_addr_list[0] == NULL) { |
393 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | 393 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, |
394 "can not resolve host \"%s\" " | 394 "can not resolve host \"%s\" " |
395 "in the \"listen\" directive", | 395 "in the \"listen\" directive", |
396 inet_upstream.host.data); | 396 inet_upstream.host.data); |
405 } | 405 } |
406 | 406 |
407 | 407 |
408 ls = ngx_listening_inet_stream_socket(cf, in_addr, inet_upstream.port); | 408 ls = ngx_listening_inet_stream_socket(cf, in_addr, inet_upstream.port); |
409 if (ls == NULL) { | 409 if (ls == NULL) { |
410 return NGX_CONF_ERROR; | 410 return NGX_CONF_ERROR; |
411 } | 411 } |
412 | 412 |
413 ls->backlog = -1; | 413 ls->backlog = -1; |
414 ls->rcvbuf = -1; | 414 ls->rcvbuf = -1; |
415 ls->sndbuf = -1; | 415 ls->sndbuf = -1; |