Mercurial > hg > nginx
comparison src/imap/ngx_imap_handler.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 | c52408583801 |
children | 9b8c906f6e63 |
comparison
equal
deleted
inserted
replaced
500:9a0f304470f5 | 501:d4ea69372b94 |
---|---|
15 static void ngx_pop3_auth_state(ngx_event_t *rev); | 15 static void ngx_pop3_auth_state(ngx_event_t *rev); |
16 static ngx_int_t ngx_pop3_read_command(ngx_imap_session_t *s); | 16 static ngx_int_t ngx_pop3_read_command(ngx_imap_session_t *s); |
17 | 17 |
18 | 18 |
19 static u_char pop3_greeting[] = "+OK " NGINX_VER " ready" CRLF; | 19 static u_char pop3_greeting[] = "+OK " NGINX_VER " ready" CRLF; |
20 #if 0 | |
20 static u_char imap_greeting[] = "* OK " NGINX_VER " ready" CRLF; | 21 static u_char imap_greeting[] = "* OK " NGINX_VER " ready" CRLF; |
22 #endif | |
21 | 23 |
22 static u_char pop3_ok[] = "+OK" CRLF; | 24 static u_char pop3_ok[] = "+OK" CRLF; |
23 static u_char pop3_invalid_command[] = "-ERR invalid command" CRLF; | 25 static u_char pop3_invalid_command[] = "-ERR invalid command" CRLF; |
24 | 26 |
25 | 27 |
67 ngx_log_error(NGX_LOG_INFO, c->log, NGX_ETIMEDOUT, "client timed out"); | 69 ngx_log_error(NGX_LOG_INFO, c->log, NGX_ETIMEDOUT, "client timed out"); |
68 ngx_imap_close_connection(c); | 70 ngx_imap_close_connection(c); |
69 return; | 71 return; |
70 } | 72 } |
71 | 73 |
72 if (!(s = ngx_pcalloc(c->pool, sizeof(ngx_imap_session_t)))) { | 74 s = ngx_pcalloc(c->pool, sizeof(ngx_imap_session_t)); |
75 if (s == NULL) { | |
73 ngx_imap_close_connection(c); | 76 ngx_imap_close_connection(c); |
74 return; | 77 return; |
75 } | 78 } |
76 | 79 |
77 c->data = s; | 80 c->data = s; |
305 | 308 |
306 pool = c->pool; | 309 pool = c->pool; |
307 | 310 |
308 ngx_close_connection(c); | 311 ngx_close_connection(c); |
309 | 312 |
310 ngx_destroy_pool(c->pool); | 313 ngx_destroy_pool(pool); |
311 } | 314 } |