]> Sergey Matveev's repositories - public-inbox.git/commit
imap: improve IDLE handling at graceful shutdown
authorEric Wong <e@yhbt.net>
Mon, 15 Jun 2020 07:43:17 +0000 (07:43 +0000)
committerEric Wong <e@yhbt.net>
Tue, 16 Jun 2020 00:07:05 +0000 (00:07 +0000)
commit01f2e00be4671e1100b6180310c0fd8c0035ebc8
tree7a6a2b78e222b4c7ec524b7e7e45046b1659e3ff
parent97cb0db690cc2065e7e3c33ea5f3636dc0b538c5
imap: improve IDLE handling at graceful shutdown

Since IMAP IDLE users aren't expected to issue any commands, we
can terminate their connections immediately on graceful
shutdown.

Furthermore, we need to drop the inotify FD from the epoll set
to avoid warnings during global destruction.  Embarassingly,
this required fixing wacky test ordering from 2a717d13f10fcdc6
("nntpd+imapd: detect replaced over.sqlite3")
lib/PublicInbox/IMAP.pm
lib/PublicInbox/InboxIdle.pm
t/nntpd.t