comparison src/imap/ngx_imap_auth_http_module.c @ 539:371c1cee100d release-0.1.44

nginx-0.1.44-RELEASE import *) 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 <igor@sysoev.ru>
date Tue, 06 Sep 2005 16:09:32 +0000
parents 7fa11e5c6e96
children b09ee85d0ac8
comparison
equal deleted inserted replaced
538:4f43cd2c4558 539:371c1cee100d
514 "auth http header done"); 514 "auth http header done");
515 515
516 ngx_close_connection(ctx->peer.connection); 516 ngx_close_connection(ctx->peer.connection);
517 517
518 if (ctx->err.len) { 518 if (ctx->err.len) {
519 (void) ngx_send(s->connection, ctx->err.data, ctx->err.len); 519 s->out = ctx->err;
520 520
521 if (ctx->sleep == 0) { 521 if (ctx->sleep == 0) {
522 ngx_imap_close_connection(s->connection); 522 s->quit = 1;
523 return;
524 } 523 }
524
525 ngx_imap_send(s->connection->write);
525 526
526 ngx_add_timer(s->connection->read, ctx->sleep * 1000); 527 ngx_add_timer(s->connection->read, ctx->sleep * 1000);
527 528
528 s->connection->read->handler = ngx_imap_auth_sleep_handler; 529 s->connection->read->handler = ngx_imap_auth_sleep_handler;
529 530