aboutsummaryrefslogtreecommitdiff
path: root/src/mail/ngx_mail_handler.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-09-14 10:42:19 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-09-14 10:42:19 +0000
commit706ab65f5413ab77f8915e870981fbe0b0a47235 (patch)
tree260b9fa329f381dd0d6c57972f8d6c30cc0ae190 /src/mail/ngx_mail_handler.c
parent5fbe12146e84860a1e7cea077b1b2c705bacfed1 (diff)
downloadnginx-706ab65f5413ab77f8915e870981fbe0b0a47235.tar.gz
nginx-706ab65f5413ab77f8915e870981fbe0b0a47235.zip
move event handling to protocol specific code,
it is required to support SMTP greeting delay
Diffstat (limited to 'src/mail/ngx_mail_handler.c')
-rw-r--r--src/mail/ngx_mail_handler.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mail/ngx_mail_handler.c b/src/mail/ngx_mail_handler.c
index 8f549a8d3..000865d2f 100644
--- a/src/mail/ngx_mail_handler.c
+++ b/src/mail/ngx_mail_handler.c
@@ -253,12 +253,6 @@ ngx_mail_init_session(ngx_connection_t *c)
return;
}
- ngx_add_timer(c->read, cscf->timeout);
-
- if (ngx_handle_read_event(c->read, 0) == NGX_ERROR) {
- ngx_mail_close_connection(c);
- }
-
c->write->handler = ngx_mail_send;
ngx_mail_init_sessions[s->protocol](s, c);