Klaus Demo nginx / 05a75d0
style fix: remove trailing spaces Igor Sysoev 14 years ago
3 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
4242
4343 c->read->handler = ngx_mail_imap_init_protocol;
4444
45 ngx_add_timer(c->read, cscf->timeout);
45 ngx_add_timer(c->read, cscf->timeout);
4646
4747 if (ngx_handle_read_event(c->read, 0) == NGX_ERROR) {
4848 ngx_mail_close_connection(c);
6161
6262 c->read->handler = ngx_mail_pop3_init_protocol;
6363
64 ngx_add_timer(c->read, cscf->timeout);
64 ngx_add_timer(c->read, cscf->timeout);
6565
6666 if (ngx_handle_read_event(c->read, 0) == NGX_ERROR) {
6767 ngx_mail_close_connection(c);
4747
4848 timeout = cscf->smtp_greeting_delay ? cscf->smtp_greeting_delay:
4949 cscf->timeout;
50 ngx_add_timer(c->read, timeout);
50 ngx_add_timer(c->read, timeout);
5151
5252 if (ngx_handle_read_event(c->read, 0) == NGX_ERROR) {
5353 ngx_mail_close_connection(c);
8888
8989 c->read->handler = ngx_mail_smtp_init_protocol;
9090
91 ngx_add_timer(c->read, cscf->timeout);
91 ngx_add_timer(c->read, cscf->timeout);
9292
9393 if (ngx_handle_read_event(c->read, 0) == NGX_ERROR) {
9494 ngx_mail_close_connection(c);
287287
288288 case NGX_MAIL_PARSE_INVALID_COMMAND:
289289 s->mail_state = ngx_smtp_start;
290 s->state = 0;
290 s->state = 0;
291291
292292 s->out.len = sizeof(smtp_invalid_command) - 1;
293293 s->out.data = smtp_invalid_command;
489489 if (n > 0) {
490490 s->buffer->last += n;
491491 }
492
492
493493 if (n == NGX_AGAIN) {
494494 if (ngx_handle_read_event(c->read, 0) == NGX_ERROR) {
495495 ngx_mail_session_internal_server_error(s);