Mercurial > hg > nginx-vendor-0-8
comparison src/imap/ngx_imap_proxy_module.c @ 260:0effe91f6083 NGINX_0_5_0
nginx 0.5.0
*) Change: the parameters in the "%name" form in the "log_format"
directive are not supported anymore.
*) Change: the "proxy_upstream_max_fails",
"proxy_upstream_fail_timeout", "fastcgi_upstream_max_fails",
"fastcgi_upstream_fail_timeout", "memcached_upstream_max_fails", and
"memcached_upstream_fail_timeout" directives are not supported
anymore.
*) Feature: the "server" directive in the "upstream" context supports
the "max_fails", "fail_timeout", and "down" parameters.
*) Feature: the "ip_hash" directive inside the "upstream" block.
*) Feature: the WAIT status in the "Auth-Status" header line of the
IMAP/POP3 proxy authentication server response.
*) Bugfix: nginx could not be built on 64-bit platforms; bug appeared
in 0.4.14.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 04 Dec 2006 00:00:00 +0300 |
parents | 6ae1357b7b7c |
children |
comparison
equal
deleted
inserted
replaced
259:c68f18041059 | 260:0effe91f6083 |
---|---|
92 NGX_MODULE_V1_PADDING | 92 NGX_MODULE_V1_PADDING |
93 }; | 93 }; |
94 | 94 |
95 | 95 |
96 void | 96 void |
97 ngx_imap_proxy_init(ngx_imap_session_t *s, ngx_peers_t *peers) | 97 ngx_imap_proxy_init(ngx_imap_session_t *s, ngx_peer_addr_t *peer) |
98 { | 98 { |
99 int keepalive; | 99 int keepalive; |
100 ngx_int_t rc; | 100 ngx_int_t rc; |
101 ngx_imap_proxy_ctx_t *p; | 101 ngx_imap_proxy_ctx_t *p; |
102 ngx_imap_core_srv_conf_t *cscf; | 102 ngx_imap_core_srv_conf_t *cscf; |
123 return; | 123 return; |
124 } | 124 } |
125 | 125 |
126 s->proxy = p; | 126 s->proxy = p; |
127 | 127 |
128 p->upstream.peers = peers; | 128 p->upstream.sockaddr = peer->sockaddr; |
129 p->upstream.socklen = peer->socklen; | |
130 p->upstream.name = &peer->name; | |
131 p->upstream.get = ngx_event_get_peer; | |
129 p->upstream.log = s->connection->log; | 132 p->upstream.log = s->connection->log; |
130 p->upstream.log_error = NGX_ERROR_ERR; | 133 p->upstream.log_error = NGX_ERROR_ERR; |
131 | 134 |
132 rc = ngx_event_connect_peer(&p->upstream); | 135 rc = ngx_event_connect_peer(&p->upstream); |
133 | 136 |