comparison src/mail/ngx_mail_proxy_module.c @ 7838:815c63581be4

Mail: POP3 pipelining support. The change is mostly the same as the SMTP one (04e43d03e153 and 3f5d0af4e40a), and ensures that nginx is able to properly handle or reject multiple POP3 commands, as required by the PIPELINING capability (RFC 2449). The s->cmd field is not really used and set for consistency.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 19 May 2021 03:13:18 +0300
parents c72d8839f427
children b38728495e1a
comparison
equal deleted inserted replaced
7837:ba8a8299b904 7838:815c63581be4
325 ngx_del_timer(c->read); 325 ngx_del_timer(c->read);
326 326
327 c->log->action = NULL; 327 c->log->action = NULL;
328 ngx_log_error(NGX_LOG_INFO, c->log, 0, "client logged in"); 328 ngx_log_error(NGX_LOG_INFO, c->log, 0, "client logged in");
329 329
330 if (s->buffer->pos < s->buffer->last) {
331 ngx_post_event(c->write, &ngx_posted_events);
332 }
333
330 ngx_mail_proxy_handler(s->connection->write); 334 ngx_mail_proxy_handler(s->connection->write);
331 335
332 return; 336 return;
333 337
334 default: 338 default: