]> Sergey Matveev's repositories - public-inbox.git/commit
imap: delay InboxIdle start, support refresh
authorEric Wong <e@yhbt.net>
Wed, 10 Jun 2020 07:04:04 +0000 (07:04 +0000)
committerEric Wong <e@yhbt.net>
Sat, 13 Jun 2020 07:55:45 +0000 (07:55 +0000)
commit9d154055ec44903052beaa4e2c1221f39d6d507a
treeb76b693d85976839bbedba525a38f99a85760dd1
parenteab4dfdda4eeea9a54aa674510fa11789c5f91c8
imap: delay InboxIdle start, support refresh

InboxIdle should not be holding onto Inbox objects after the
Config object they came from expires, and Config objects may
expire on SIGHUP.

Old Inbox objects still persist due to IMAP clients holding onto
them, but that's a concern we'll deal with at another time, or
not at all, since all clients expire, eventually.

Regardless, stale inotify watch descriptors should not be left
hanging after SIGHUP refreshes.
lib/PublicInbox/IMAP.pm
lib/PublicInbox/IMAPD.pm
lib/PublicInbox/InboxIdle.pm
t/imapd.t