Shouldn't there be something similar in Qpsmtpd::PollServer? (Or
maybe put it in Qpsmtpd::SMTP to avoid the duplication).
I'm not very versed on async but after staring at the code for the drive
into work, I *think* this is what is needed for PollServer:
--- a/lib/Qpsmtpd/PollServer.pm
+++
This patch makes sure that hook_disconnect and hook_reset_transaction
plugins are run at the end of all transactions, including those where
the remote end hung up unexpectedly or we timed out the connection.
My previous changes were a bit more complex than they had to be, had no
effect on apache o