2004-09-01 03:05:39 +08:00
|
|
|
|
2004-09-28 16:34:51 +08:00
|
|
|
/*
|
2004-09-30 00:00:49 +08:00
|
|
|
* Copyright (C) Igor Sysoev
|
2004-09-28 16:34:51 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2004-09-01 03:05:39 +08:00
|
|
|
#include <ngx_config.h>
|
|
|
|
#include <ngx_core.h>
|
|
|
|
#include <ngx_event.h>
|
2004-09-07 23:29:22 +08:00
|
|
|
#include <ngx_imap.h>
|
|
|
|
#include <nginx.h>
|
|
|
|
|
|
|
|
|
2004-09-09 23:40:48 +08:00
|
|
|
static void ngx_imap_init_session(ngx_event_t *rev);
|
2005-06-07 23:56:31 +08:00
|
|
|
|
2004-09-10 02:55:39 +08:00
|
|
|
static void ngx_pop3_auth_state(ngx_event_t *rev);
|
|
|
|
static ngx_int_t ngx_pop3_read_command(ngx_imap_session_t *s);
|
2004-09-07 23:29:22 +08:00
|
|
|
|
2005-06-07 23:56:31 +08:00
|
|
|
static void ngx_imap_auth_state(ngx_event_t *rev);
|
2004-09-07 23:29:22 +08:00
|
|
|
|
2004-09-10 02:55:39 +08:00
|
|
|
|
2005-06-07 23:56:31 +08:00
|
|
|
static ngx_str_t greetings[] = {
|
|
|
|
ngx_string("+OK " NGINX_VER " ready" CRLF),
|
|
|
|
ngx_string("* OK " NGINX_VER " ready" CRLF)
|
|
|
|
};
|
2004-09-01 03:05:39 +08:00
|
|
|
|
2005-06-07 23:56:31 +08:00
|
|
|
static u_char pop3_ok[] = "+OK" CRLF;
|
|
|
|
static u_char pop3_invalid_command[] = "-ERR invalid command" CRLF;
|
2004-09-01 03:05:39 +08:00
|
|
|
|
2005-06-07 23:56:31 +08:00
|
|
|
|
|
|
|
void
|
|
|
|
ngx_imap_init_connection(ngx_connection_t *c)
|
2004-09-01 03:05:39 +08:00
|
|
|
{
|
2005-06-07 23:56:31 +08:00
|
|
|
ssize_t size;
|
|
|
|
ngx_imap_conf_ctx_t *ctx;
|
|
|
|
ngx_imap_core_srv_conf_t *cscf;
|
2004-09-07 23:29:22 +08:00
|
|
|
|
2005-06-07 23:56:31 +08:00
|
|
|
ngx_log_debug0(NGX_LOG_DEBUG_IMAP, c->log, 0, "imap init connection");
|
2004-09-01 03:05:39 +08:00
|
|
|
|
2004-09-07 23:29:22 +08:00
|
|
|
c->log_error = NGX_ERROR_INFO;
|
2004-09-01 03:05:39 +08:00
|
|
|
|
2005-06-07 23:56:31 +08:00
|
|
|
ctx = c->ctx;
|
|
|
|
cscf = ngx_imap_get_module_srv_conf(ctx, ngx_imap_core_module);
|
|
|
|
|
|
|
|
size = greetings[cscf->protocol].len;
|
2004-09-01 03:05:39 +08:00
|
|
|
|
2005-06-07 23:56:31 +08:00
|
|
|
if (ngx_send(c, greetings[cscf->protocol].data, size) < size) {
|
2004-09-09 23:40:48 +08:00
|
|
|
/*
|
|
|
|
* we treat the incomplete sending as NGX_ERROR
|
|
|
|
* because it is very strange here
|
|
|
|
*/
|
2004-09-07 23:29:22 +08:00
|
|
|
ngx_imap_close_connection(c);
|
|
|
|
return;
|
2004-09-01 03:05:39 +08:00
|
|
|
}
|
2004-09-07 23:29:22 +08:00
|
|
|
|
nginx-0.1.29-RELEASE import
*) Feature: the ngx_http_ssi_module supports "include virtual" command.
*) Feature: the ngx_http_ssi_module supports the condition command like
'if expr="$NAME"' and "else" and "endif" commands. Only one nested
level is supported.
*) Feature: the ngx_http_ssi_module supports the DATE_LOCAL and
DATE_GMT variables and "config timefmt" command.
*) Feature: the "ssi_ignore_recycled_buffers" directive.
*) Bugfix: the "echo" command did not show the default value for the
empty QUERY_STRING variable.
*) Change: the ngx_http_proxy_module was rewritten.
*) Feature: the "proxy_redirect", "proxy_pass_request_headers",
"proxy_pass_request_body", and "proxy_method" directives.
*) Feature: the "proxy_set_header" directive. The "proxy_x_var" was
canceled and must be replaced with the proxy_set_header directive.
*) Change: the "proxy_preserve_host" is canceled and must be replaced
with the "proxy_set_header Host $host" and the "proxy_redirect off"
directives, the "proxy_set_header Host $host:$proxy_port" directive
and the appropriate proxy_redirect directives.
*) Change: the "proxy_set_x_real_ip" is canceled and must be replaced
with the "proxy_set_header X-Real-IP $remote_addr" directive.
*) Change: the "proxy_add_x_forwarded_for" is canceled and must be
replaced with
the "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for"
directive.
*) Change: the "proxy_set_x_url" is canceled and must be replaced with
the "proxy_set_header X-URL http://$host:$server_port$request_uri"
directive.
*) Feature: the "fastcgi_param" directive.
*) Change: the "fastcgi_root", "fastcgi_set_var" and "fastcgi_params"
directive are canceled and must be replaced with the fastcgi_param
directives.
*) Feature: the "index" directive can use the variables.
*) Feature: the "index" directive can be used at http and server levels.
*) Change: the last index only in the "index" directive can be absolute.
*) Feature: the "rewrite" directive can use the variables.
*) Feature: the "internal" directive.
*) Feature: the CONTENT_LENGTH, CONTENT_TYPE, REMOTE_PORT, SERVER_ADDR,
SERVER_PORT, SERVER_PROTOCOL, DOCUMENT_ROOT, SERVER_NAME,
REQUEST_METHOD, REQUEST_URI, and REMOTE_USER variables.
*) Change: nginx now passes the invalid lines in a client request
headers or a backend response header.
*) Bugfix: if the backend did not transfer response for a long time and
the "send_timeout" was less than "proxy_read_timeout", then nginx
returned the 408 response.
*) Bugfix: the segmentation fault was occurred if the backend sent an
invalid line in response header; the bug had appeared in 0.1.26.
*) Bugfix: the segmentation fault may occurred in FastCGI fault
tolerance configuration.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" and "Cache-Control" headers.
*) Bugfix: nginx did not take into account trailing dot in "Host"
header line.
*) Bugfix: the ngx_http_auth_module did not work under Linux.
*) Bugfix: the rewrite directive worked incorrectly, if the arguments
were in a request.
*) Bugfix: nginx could not be built on MacOS X.
2005-05-12 22:58:06 +08:00
|
|
|
c->read->handler = ngx_imap_init_session;
|
2004-09-09 23:40:48 +08:00
|
|
|
|
2005-06-07 23:56:31 +08:00
|
|
|
ngx_add_timer(c->read, cscf->timeout);
|
2004-09-07 23:29:22 +08:00
|
|
|
|
|
|
|
if (ngx_handle_read_event(c->read, 0) == NGX_ERROR) {
|
|
|
|
ngx_imap_close_connection(c);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-06-07 23:56:31 +08:00
|
|
|
static void
|
|
|
|
ngx_imap_init_session(ngx_event_t *rev)
|
2004-09-07 23:29:22 +08:00
|
|
|
{
|
2005-06-07 23:56:31 +08:00
|
|
|
size_t size;
|
|
|
|
ngx_connection_t *c;
|
|
|
|
ngx_imap_session_t *s;
|
|
|
|
ngx_imap_conf_ctx_t *ctx;
|
|
|
|
ngx_imap_core_srv_conf_t *cscf;
|
2004-09-07 23:29:22 +08:00
|
|
|
|
|
|
|
c = rev->data;
|
|
|
|
|
2004-09-14 00:18:09 +08:00
|
|
|
if (rev->timedout) {
|
|
|
|
ngx_log_error(NGX_LOG_INFO, c->log, NGX_ETIMEDOUT, "client timed out");
|
|
|
|
ngx_imap_close_connection(c);
|
|
|
|
return;
|
|
|
|
}
|
2004-09-10 02:55:39 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
s = ngx_pcalloc(c->pool, sizeof(ngx_imap_session_t));
|
|
|
|
if (s == NULL) {
|
2004-09-09 23:40:48 +08:00
|
|
|
ngx_imap_close_connection(c);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
c->data = s;
|
|
|
|
s->connection = c;
|
|
|
|
|
2005-06-07 23:56:31 +08:00
|
|
|
s->ctx = ngx_pcalloc(c->pool, sizeof(void *) * ngx_imap_max_module);
|
|
|
|
if (s->ctx == NULL) {
|
|
|
|
ngx_imap_close_connection(c);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
ctx = c->ctx;
|
|
|
|
s->main_conf = ctx->main_conf;
|
|
|
|
s->srv_conf = ctx->srv_conf;
|
|
|
|
|
2004-09-09 23:40:48 +08:00
|
|
|
if (ngx_array_init(&s->args, c->pool, 2, sizeof(ngx_str_t)) == NGX_ERROR) {
|
2004-09-12 04:22:11 +08:00
|
|
|
ngx_imap_close_connection(c);
|
2004-09-09 23:40:48 +08:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2005-06-07 23:56:31 +08:00
|
|
|
cscf = ngx_imap_get_module_srv_conf(s, ngx_imap_core_module);
|
|
|
|
|
|
|
|
s->protocol = cscf->protocol;
|
|
|
|
|
|
|
|
if (cscf->protocol == NGX_IMAP_POP3_PROTOCOL) {
|
|
|
|
size = 128;
|
|
|
|
c->read->handler = ngx_pop3_auth_state;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
size = cscf->imap_client_buffer_size;
|
|
|
|
c->read->handler = ngx_imap_auth_state;
|
|
|
|
}
|
2004-09-10 02:55:39 +08:00
|
|
|
|
2004-09-12 04:22:11 +08:00
|
|
|
s->buffer = ngx_create_temp_buf(c->pool, size);
|
2004-09-09 23:40:48 +08:00
|
|
|
if (s->buffer == NULL) {
|
2004-09-12 04:22:11 +08:00
|
|
|
ngx_imap_close_connection(c);
|
2004-09-09 23:40:48 +08:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2005-06-07 23:56:31 +08:00
|
|
|
c->read->handler(rev);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void
|
|
|
|
ngx_imap_auth_state(ngx_event_t *rev)
|
|
|
|
{
|
|
|
|
ngx_connection_t *c;
|
|
|
|
|
|
|
|
c = rev->data;
|
2004-09-10 22:32:02 +08:00
|
|
|
|
2005-06-07 23:56:31 +08:00
|
|
|
ngx_imap_close_connection(c);
|
2004-09-10 02:55:39 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-06-07 23:56:31 +08:00
|
|
|
static void
|
|
|
|
ngx_pop3_auth_state(ngx_event_t *rev)
|
2004-09-10 02:55:39 +08:00
|
|
|
{
|
|
|
|
u_char *text;
|
|
|
|
ssize_t size;
|
|
|
|
ngx_int_t rc;
|
2004-09-12 04:22:11 +08:00
|
|
|
ngx_uint_t quit;
|
|
|
|
ngx_str_t *arg;
|
2004-09-10 02:55:39 +08:00
|
|
|
ngx_connection_t *c;
|
|
|
|
ngx_imap_session_t *s;
|
|
|
|
|
|
|
|
c = rev->data;
|
|
|
|
s = c->data;
|
|
|
|
|
2004-09-10 22:32:02 +08:00
|
|
|
ngx_log_debug0(NGX_LOG_DEBUG_IMAP, c->log, 0, "pop3 auth state");
|
|
|
|
|
2004-09-14 00:18:09 +08:00
|
|
|
if (rev->timedout) {
|
|
|
|
ngx_log_error(NGX_LOG_INFO, c->log, NGX_ETIMEDOUT, "client timed out");
|
|
|
|
ngx_imap_close_connection(c);
|
|
|
|
return;
|
|
|
|
}
|
2004-09-10 02:55:39 +08:00
|
|
|
|
|
|
|
rc = ngx_pop3_read_command(s);
|
|
|
|
|
|
|
|
if (rc == NGX_AGAIN || rc == NGX_ERROR) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2004-09-10 22:32:02 +08:00
|
|
|
quit = 0;
|
|
|
|
text = pop3_ok;
|
|
|
|
size = sizeof(pop3_ok) - 1;
|
|
|
|
|
|
|
|
if (rc == NGX_OK) {
|
|
|
|
switch (s->imap_state) {
|
|
|
|
|
|
|
|
case ngx_pop3_start:
|
|
|
|
|
|
|
|
switch (s->command) {
|
|
|
|
|
|
|
|
case NGX_POP3_USER:
|
|
|
|
if (s->args.nelts == 1) {
|
|
|
|
s->imap_state = ngx_pop3_user;
|
2004-09-12 04:22:11 +08:00
|
|
|
|
|
|
|
arg = s->args.elts;
|
|
|
|
s->login.len = arg[0].len;
|
|
|
|
s->login.data = ngx_palloc(c->pool, s->login.len + 1);
|
|
|
|
if (s->login.data == NULL) {
|
|
|
|
ngx_imap_close_connection(c);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
ngx_cpystrn(s->login.data, arg[0].data, s->login.len + 1);
|
|
|
|
|
|
|
|
ngx_log_debug1(NGX_LOG_DEBUG_IMAP, c->log, 0,
|
|
|
|
"pop3 login: \"%s\"", s->login.data);
|
|
|
|
|
2004-09-10 22:32:02 +08:00
|
|
|
} else {
|
|
|
|
rc = NGX_IMAP_PARSE_INVALID_COMMAND;
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case NGX_POP3_QUIT:
|
|
|
|
quit = 1;
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
s->imap_state = ngx_pop3_start;
|
|
|
|
rc = NGX_IMAP_PARSE_INVALID_COMMAND;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case ngx_pop3_user:
|
|
|
|
|
|
|
|
switch (s->command) {
|
|
|
|
|
|
|
|
case NGX_POP3_PASS:
|
|
|
|
if (s->args.nelts == 1) {
|
|
|
|
/* STUB */ s->imap_state = ngx_pop3_start;
|
2004-09-12 04:22:11 +08:00
|
|
|
|
|
|
|
arg = s->args.elts;
|
|
|
|
s->passwd.len = arg[0].len;
|
|
|
|
s->passwd.data = ngx_palloc(c->pool, s->passwd.len + 1);
|
|
|
|
if (s->passwd.data == NULL) {
|
|
|
|
ngx_imap_close_connection(c);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
ngx_cpystrn(s->passwd.data, arg[0].data, s->passwd.len + 1);
|
|
|
|
|
|
|
|
ngx_log_debug1(NGX_LOG_DEBUG_IMAP, c->log, 0,
|
|
|
|
"pop3 passwd: \"%s\"", s->passwd.data);
|
|
|
|
|
|
|
|
s->buffer->pos = s->buffer->start;
|
|
|
|
s->buffer->last = s->buffer->start;
|
|
|
|
|
2005-06-07 23:56:31 +08:00
|
|
|
ngx_imap_auth_http_init(s);
|
2004-09-12 04:22:11 +08:00
|
|
|
|
|
|
|
return;
|
|
|
|
|
2004-09-10 22:32:02 +08:00
|
|
|
} else {
|
|
|
|
rc = NGX_IMAP_PARSE_INVALID_COMMAND;
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case NGX_POP3_QUIT:
|
|
|
|
quit = 1;
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
s->imap_state = ngx_pop3_start;
|
|
|
|
rc = NGX_IMAP_PARSE_INVALID_COMMAND;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2004-09-10 02:55:39 +08:00
|
|
|
|
|
|
|
if (rc == NGX_IMAP_PARSE_INVALID_COMMAND) {
|
|
|
|
text = pop3_invalid_command;
|
|
|
|
size = sizeof(pop3_invalid_command) - 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (ngx_send(c, text, size) < size) {
|
|
|
|
/*
|
|
|
|
* we treat the incomplete sending as NGX_ERROR
|
|
|
|
* because it is very strange here
|
|
|
|
*/
|
|
|
|
ngx_imap_close_connection(c);
|
|
|
|
return;
|
|
|
|
}
|
2004-09-10 22:32:02 +08:00
|
|
|
|
|
|
|
if (quit) {
|
|
|
|
ngx_imap_close_connection(c);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
s->args.nelts = 0;
|
|
|
|
s->buffer->pos = s->buffer->start;
|
|
|
|
s->buffer->last = s->buffer->start;
|
2004-09-10 02:55:39 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-06-07 23:56:31 +08:00
|
|
|
static ngx_int_t
|
|
|
|
ngx_pop3_read_command(ngx_imap_session_t *s)
|
2004-09-10 02:55:39 +08:00
|
|
|
{
|
|
|
|
ssize_t n;
|
|
|
|
ngx_int_t rc;
|
|
|
|
|
|
|
|
n = ngx_recv(s->connection, s->buffer->last,
|
|
|
|
s->buffer->end - s->buffer->last);
|
|
|
|
|
|
|
|
if (n == NGX_ERROR || n == 0) {
|
|
|
|
ngx_imap_close_connection(s->connection);
|
|
|
|
return NGX_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (n > 0) {
|
|
|
|
s->buffer->last += n;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (n == NGX_AGAIN) {
|
|
|
|
if (ngx_handle_read_event(s->connection->read, 0) == NGX_ERROR) {
|
|
|
|
ngx_imap_close_connection(s->connection);
|
|
|
|
return NGX_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
return NGX_AGAIN;
|
|
|
|
}
|
|
|
|
|
|
|
|
rc = ngx_pop3_parse_command(s);
|
|
|
|
|
|
|
|
if (rc == NGX_AGAIN || rc == NGX_IMAP_PARSE_INVALID_COMMAND) {
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (rc == NGX_ERROR) {
|
|
|
|
ngx_imap_close_connection(s->connection);
|
|
|
|
return NGX_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
return NGX_OK;
|
2004-09-07 23:29:22 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-09-10 02:55:39 +08:00
|
|
|
#if 0
|
|
|
|
|
2005-06-07 23:56:31 +08:00
|
|
|
void
|
|
|
|
ngx_imap_close_session(ngx_imap_session_t *s)
|
2004-09-10 02:55:39 +08:00
|
|
|
{
|
|
|
|
ngx_log_debug0(NGX_LOG_DEBUG_IMAP, s->connection->log, 0,
|
|
|
|
"close imap session");
|
|
|
|
|
|
|
|
ngx_imap_close_connection(s->connection);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2005-06-07 23:56:31 +08:00
|
|
|
void
|
|
|
|
ngx_imap_close_connection(ngx_connection_t *c)
|
2004-09-07 23:29:22 +08:00
|
|
|
{
|
nginx-0.1.14-RELEASE import
*) Feature: the autoconfiguration directives:
--http-client-body-temp-path=PATH, --http-proxy-temp-path=PATH, and
--http-fastcgi-temp-path=PATH
*) Change: the directory name for the temporary files with the client
request body is specified by directive client_body_temp_path, by
default it is <prefix>/client_body_temp.
*) Feature: the ngx_http_fastcgi_module and the directives:
fastcgi_pass, fastcgi_root, fastcgi_index, fastcgi_params,
fastcgi_connect_timeout, fastcgi_send_timeout, fastcgi_read_timeout,
fastcgi_send_lowat, fastcgi_header_buffer_size, fastcgi_buffers,
fastcgi_busy_buffers_size, fastcgi_temp_path,
fastcgi_max_temp_file_size, fastcgi_temp_file_write_size,
fastcgi_next_upstream, and fastcgi_x_powered_by.
*) Bugfix: the "[alert] zero size buf" error; the bug had appeared in
0.1.3.
*) Change: the URI must be specified after the host name in the
proxy_pass directive.
*) Change: the %3F symbol in the URI was considered as the argument
string start.
*) Feature: the unix domain sockets support in the
ngx_http_proxy_module.
*) Feature: the ssl_engine and ssl_ciphers directives.
Thanks to Sergey Skvortsov for SSL-accelerator.
2005-01-18 21:03:58 +08:00
|
|
|
ngx_pool_t *pool;
|
|
|
|
|
2004-09-07 23:29:22 +08:00
|
|
|
ngx_log_debug1(NGX_LOG_DEBUG_IMAP, c->log, 0,
|
|
|
|
"close imap connection: %d", c->fd);
|
|
|
|
|
nginx-0.1.14-RELEASE import
*) Feature: the autoconfiguration directives:
--http-client-body-temp-path=PATH, --http-proxy-temp-path=PATH, and
--http-fastcgi-temp-path=PATH
*) Change: the directory name for the temporary files with the client
request body is specified by directive client_body_temp_path, by
default it is <prefix>/client_body_temp.
*) Feature: the ngx_http_fastcgi_module and the directives:
fastcgi_pass, fastcgi_root, fastcgi_index, fastcgi_params,
fastcgi_connect_timeout, fastcgi_send_timeout, fastcgi_read_timeout,
fastcgi_send_lowat, fastcgi_header_buffer_size, fastcgi_buffers,
fastcgi_busy_buffers_size, fastcgi_temp_path,
fastcgi_max_temp_file_size, fastcgi_temp_file_write_size,
fastcgi_next_upstream, and fastcgi_x_powered_by.
*) Bugfix: the "[alert] zero size buf" error; the bug had appeared in
0.1.3.
*) Change: the URI must be specified after the host name in the
proxy_pass directive.
*) Change: the %3F symbol in the URI was considered as the argument
string start.
*) Feature: the unix domain sockets support in the
ngx_http_proxy_module.
*) Feature: the ssl_engine and ssl_ciphers directives.
Thanks to Sergey Skvortsov for SSL-accelerator.
2005-01-18 21:03:58 +08:00
|
|
|
pool = c->pool;
|
|
|
|
|
2004-09-07 23:29:22 +08:00
|
|
|
ngx_close_connection(c);
|
nginx-0.1.14-RELEASE import
*) Feature: the autoconfiguration directives:
--http-client-body-temp-path=PATH, --http-proxy-temp-path=PATH, and
--http-fastcgi-temp-path=PATH
*) Change: the directory name for the temporary files with the client
request body is specified by directive client_body_temp_path, by
default it is <prefix>/client_body_temp.
*) Feature: the ngx_http_fastcgi_module and the directives:
fastcgi_pass, fastcgi_root, fastcgi_index, fastcgi_params,
fastcgi_connect_timeout, fastcgi_send_timeout, fastcgi_read_timeout,
fastcgi_send_lowat, fastcgi_header_buffer_size, fastcgi_buffers,
fastcgi_busy_buffers_size, fastcgi_temp_path,
fastcgi_max_temp_file_size, fastcgi_temp_file_write_size,
fastcgi_next_upstream, and fastcgi_x_powered_by.
*) Bugfix: the "[alert] zero size buf" error; the bug had appeared in
0.1.3.
*) Change: the URI must be specified after the host name in the
proxy_pass directive.
*) Change: the %3F symbol in the URI was considered as the argument
string start.
*) Feature: the unix domain sockets support in the
ngx_http_proxy_module.
*) Feature: the ssl_engine and ssl_ciphers directives.
Thanks to Sergey Skvortsov for SSL-accelerator.
2005-01-18 21:03:58 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_destroy_pool(pool);
|
2004-09-01 03:05:39 +08:00
|
|
|
}
|