Mercurial > hg > nginx-vendor-0-6
comparison src/imap/ngx_imap_core_module.c @ 266:251bcd11a5b8 NGINX_0_5_3
nginx 0.5.3
*) Feature: the ngx_http_perl_module supports the $r->status,
$r->log_error, and $r->sleep methods.
*) Feature: the $r->variable method supports variables that do not
exist in nginx configuration.
*) Bugfix: the $r->has_request_body method did not work.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 13 Dec 2006 00:00:00 +0300 |
parents | 644510700914 |
children |
comparison
equal
deleted
inserted
replaced
265:3d4634b3b321 | 266:251bcd11a5b8 |
---|---|
539 | 539 |
540 imls = cmcf->listen.elts; | 540 imls = cmcf->listen.elts; |
541 | 541 |
542 for (i = 0; i < cmcf->listen.nelts; i++) { | 542 for (i = 0; i < cmcf->listen.nelts; i++) { |
543 | 543 |
544 if (imls[i].addr != u.addr.in_addr || imls[i].port != u.portn) { | 544 if (imls[i].addr != u.addr.in_addr || imls[i].port != u.port) { |
545 continue; | 545 continue; |
546 } | 546 } |
547 | 547 |
548 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | 548 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, |
549 "duplicate \"%V\" address and port pair", &u.url); | 549 "duplicate \"%V\" address and port pair", &u.url); |
556 } | 556 } |
557 | 557 |
558 ngx_memzero(imls, sizeof(ngx_imap_listen_t)); | 558 ngx_memzero(imls, sizeof(ngx_imap_listen_t)); |
559 | 559 |
560 imls->addr = u.addr.in_addr; | 560 imls->addr = u.addr.in_addr; |
561 imls->port = u.portn; | 561 imls->port = u.port; |
562 imls->family = AF_INET; | 562 imls->family = AF_INET; |
563 imls->ctx = cf->ctx; | 563 imls->ctx = cf->ctx; |
564 | 564 |
565 if (cf->args->nelts == 2) { | 565 if (cf->args->nelts == 2) { |
566 return NGX_CONF_OK; | 566 return NGX_CONF_OK; |