Mercurial > hg > nginx-quic
comparison src/mail/ngx_mail_handler.c @ 1480:a231e37a19ab
move event handling to protocol specific code,
it is required to support SMTP greeting delay
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 14 Sep 2007 10:42:19 +0000 |
parents | 2647950e047f |
children | 4606dce4f416 |
comparison
equal
deleted
inserted
replaced
1479:2647950e047f | 1480:a231e37a19ab |
---|---|
251 if (s->ctx == NULL) { | 251 if (s->ctx == NULL) { |
252 ngx_mail_session_internal_server_error(s); | 252 ngx_mail_session_internal_server_error(s); |
253 return; | 253 return; |
254 } | 254 } |
255 | 255 |
256 ngx_add_timer(c->read, cscf->timeout); | |
257 | |
258 if (ngx_handle_read_event(c->read, 0) == NGX_ERROR) { | |
259 ngx_mail_close_connection(c); | |
260 } | |
261 | |
262 c->write->handler = ngx_mail_send; | 256 c->write->handler = ngx_mail_send; |
263 | 257 |
264 ngx_mail_init_sessions[s->protocol](s, c); | 258 ngx_mail_init_sessions[s->protocol](s, c); |
265 } | 259 } |
266 | 260 |