Mercurial > hg > nginx
comparison src/imap/ngx_imap_handler.c @ 525:09b42134ac0c release-0.1.37
nginx-0.1.37-RELEASE import
*) Change: now the "\n" is added to the end of the "nginx.pid" file.
*) Bugfix: the responses may be transferred not completely, if many
parts or the big parts were included by SSI.
*) Bugfix: if all backends had returned the 404 reponse and the
"http_404" parameter of the "proxy_next_upstream" or
"fastcgi_next_upstream" directives was used, then nginx started to
request all backends again.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 23 Jun 2005 13:41:06 +0000 |
parents | 6f00349b98e5 |
children | 7fa11e5c6e96 |
comparison
equal
deleted
inserted
replaced
524:a55bc21dee27 | 525:09b42134ac0c |
---|---|
20 | 20 |
21 | 21 |
22 static ngx_str_t greetings[] = { | 22 static ngx_str_t greetings[] = { |
23 ngx_string("+OK " NGINX_VER " ready" CRLF), | 23 ngx_string("+OK " NGINX_VER " ready" CRLF), |
24 ngx_string("* OK " NGINX_VER " ready" CRLF) | 24 ngx_string("* OK " NGINX_VER " ready" CRLF) |
25 }; | |
26 | |
27 static ngx_str_t internal_server_errors[] = { | |
28 ngx_string("-ERR internal server error" CRLF), | |
29 ngx_string("* BAD internal server error" CRLF), | |
25 }; | 30 }; |
26 | 31 |
27 static u_char pop3_ok[] = "+OK" CRLF; | 32 static u_char pop3_ok[] = "+OK" CRLF; |
28 static u_char pop3_invalid_command[] = "-ERR invalid command" CRLF; | 33 static u_char pop3_invalid_command[] = "-ERR invalid command" CRLF; |
29 | 34 |
340 | 345 |
341 #endif | 346 #endif |
342 | 347 |
343 | 348 |
344 void | 349 void |
350 ngx_imap_session_internal_server_error(ngx_imap_session_t *s) | |
351 { | |
352 (void) ngx_send(s->connection, internal_server_errors[s->protocol].data, | |
353 internal_server_errors[s->protocol].len); | |
354 | |
355 ngx_imap_close_connection(s->connection); | |
356 } | |
357 | |
358 | |
359 void | |
345 ngx_imap_close_connection(ngx_connection_t *c) | 360 ngx_imap_close_connection(ngx_connection_t *c) |
346 { | 361 { |
347 ngx_pool_t *pool; | 362 ngx_pool_t *pool; |
348 | 363 |
349 ngx_log_debug1(NGX_LOG_DEBUG_IMAP, c->log, 0, | 364 ngx_log_debug1(NGX_LOG_DEBUG_IMAP, c->log, 0, |