aboutsummaryrefslogtreecommitdiffstats
path: root/src/acit/imapplugin.py
diff options
context:
space:
mode:
authorVosjedev <vosje@vosjedev.net>2025-11-02 15:34:43 +0100
committerVosjedev <vosje@vosjedev.net>2025-11-02 15:34:43 +0100
commit31f05a4c2c21ea30c8b2f8b6b944a75e0ff0e4ab (patch)
treeaa59a9a3135e15ddb7080373b658ffd8dda28675 /src/acit/imapplugin.py
parent4f5c0c51182ea3725d8f1855590013f12f4ae6d6 (diff)
downloadacit-31f05a4c2c21ea30c8b2f8b6b944a75e0ff0e4ab.tar.gz
acit-31f05a4c2c21ea30c8b2f8b6b944a75e0ff0e4ab.tar.bz2
acit-31f05a4c2c21ea30c8b2f8b6b944a75e0ff0e4ab.tar.xz
Fix imap_pool hanging when getting a second MailBox (+stuff)
In the following situation: - the pool has handed out one or more mailboxes already, - if you'd call get_box(), - imap_pool would hang. the reason for this is that when you call get_box(), the pool checks if all connections are still alive to prevent handing out dead ones. it'd also check all boxes that were already handed out and in use, resulting in hanging the thread and eventually deadlocking. This commit: - removes the list of handed out boxes from the alive check loop, - removes commented out log messages that were present for finding this bug, - adds a list where it'll track which threads are currently holding a mailbox.
Diffstat (limited to 'src/acit/imapplugin.py')
0 files changed, 0 insertions, 0 deletions