mirror of
https://github.com/mailscope/kumomta.git
synced 2026-09-06 02:28:56 +00:00
The intent of the idle behavior is to linger for up to the configured idle_timeout value, waiting for new messages to arrive in the ready queue. The actual behavior was to initiate a wait, but when woken up, if there were no messages in the ready queue, the connection would close out, even if there was still time that could be waited out before the idle period was up. This commit adds in a loop that will keep the connection open until the idle timeout is reached, which in turn will improve throughput, especially if the traffic is a little bursty.