]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
imap: Fix potential hang/crash when unhibernating
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 14 Oct 2024 09:53:33 +0000 (12:53 +0300)
committerDovecot Automation <automation@dovecot.org>
Fri, 18 Oct 2024 08:43:16 +0000 (08:43 +0000)
commit9a00369c8a09ccb2799dd6b3a4767947f5ace55a
tree67de6acbdf4758cb1a42c0967926398b872ff882
parent1fd4fcc00335a0560e5686e17aceece7933f214d
imap: Fix potential hang/crash when unhibernating

This fixes two potential bugs:

a) Unhibernation is triggered by new mailbox changes. While sending these
to IMAP client, Dovecot notices that the client has disconnected. The
process will stay IDLEing for 30 minutes until it gets disconnected with
"Disconnected: Inactivity - no input for 1800 secs"

b) Unhibernation is triggered by DONE command with some further pipelined
commands. During unhibernation new mailbox changes are noticed, and
again IMAP client is found to be disconnected while sending the changes.
This causes a segfault.
src/imap/cmd-idle.c