]> git.kaiwu.me - nginx.git/commit
Mail: added missing event handling after reading data.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 5 Mar 2021 14:16:17 +0000 (17:16 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 5 Mar 2021 14:16:17 +0000 (17:16 +0300)
commit065a1641b242538073e92065e20fd788203108ab
tree40ed1a7599a54922d838f6700a61219834e04823
parent8ed63c936c1493a25bdcb351a812de1ebac8b976
Mail: added missing event handling after reading data.

If we need to be notified about further events, ngx_handle_read_event()
needs to be called after a read event is processed.  Without this,
an event can be removed from the kernel and won't be reported again,
notably when using oneshot event methods, such as eventport on Solaris.

For consistency, existing ngx_handle_read_event() call removed from
ngx_mail_read_command(), as this call only covers one of the code paths
where ngx_mail_read_command() returns NGX_AGAIN.  Instead, appropriate
processing added to the callers, covering all code paths where NGX_AGAIN
is returned.
src/mail/ngx_mail_handler.c
src/mail/ngx_mail_imap_handler.c
src/mail/ngx_mail_pop3_handler.c
src/mail/ngx_mail_proxy_module.c
src/mail/ngx_mail_smtp_handler.c