]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
imap: Fix potential hang if client disconnects with pipelined ambiguous commands
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 29 Oct 2020 10:55:21 +0000 (12:55 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 1 Dec 2020 08:41:24 +0000 (10:41 +0200)
commit940307ae2c5937be010937ff3d66195c86f467df
tree316a83250e115054a2f26af27e8ec44ab8924ff2
parent1c56defb079d7e48341c2785278c6fc1201bb5dc
imap: Fix potential hang if client disconnects with pipelined ambiguous commands

For example if client pipelines FETCH+LOGOUT commands and disconnects during
a large FETCH output, the LOGOUT command is processed as waiting for
unambiguity. This code path however doesn't detect a client disconnection,
and input IO handler is removed so it can't detect it either. So the imap
process hangs.
src/imap/imap-client.c