diff src/imap/ngx_imap_auth_http_module.c @ 88:e916a291e9aa NGINX_0_1_44

nginx 0.1.44 *) Feature: the IMAP/POP3 proxy supports SSL. *) Feature: the "proxy_timeout" directive of the ngx_imap_proxy_module. *) Feature: the "userid_mark" directive. *) Feature: the $remote_user variable value is determined independently of authorization use.
author Igor Sysoev <http://sysoev.ru>
date Tue, 06 Sep 2005 00:00:00 +0400
parents da9a3b14312d
children 71c46860eb55
line wrap: on
line diff
--- a/src/imap/ngx_imap_auth_http_module.c
+++ b/src/imap/ngx_imap_auth_http_module.c
@@ -516,13 +516,14 @@ ngx_imap_auth_http_process_headers(ngx_i
             ngx_close_connection(ctx->peer.connection);
 
             if (ctx->err.len) {
-                (void) ngx_send(s->connection, ctx->err.data, ctx->err.len);
+                s->out = ctx->err;
 
                 if (ctx->sleep == 0) {
-                    ngx_imap_close_connection(s->connection);
-                    return;
+                    s->quit = 1;
                 }
 
+                ngx_imap_send(s->connection->write);
+
                 ngx_add_timer(s->connection->read, ctx->sleep * 1000);
 
                 s->connection->read->handler = ngx_imap_auth_sleep_handler;