a846e6d6b4f1e9fcef4c07a5982b243a274f0a42 |
|
09-Aug-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
push-notification: Switch to main ioloop while calling drivers' deinit/cleanup callbacks
Continues a44595f7b1afc7ccbd8653598753b32899d01c76 to other functions.
For example the OX backend would call http_client_wait(), which would move
the I/Os and timeouts to the current ioloop, which might not be main_ioloop
always. When that ioloop gets destroyed, I/O and timeout leaks are logged
and eventually the process crashes when calling http_client_deinit() in
cleanup() (this would happen later for another mail_user). |
a44595f7b1afc7ccbd8653598753b32899d01c76 |
|
13-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
push-notification: Switch to main ioloop while calling drivers' commit callbacks
There aren't any guarantees what ioloop happens to be active at the time
the commit is called. The active ioloop can also be destroyed early on,
which can cause an I/O leak and crashes later on. |