Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delay closing until the next loop tick (#1326)
Motivation: When the idle handler determines that the channel needs to be closed (becuase the connection is no longer required) it does so on the current event loop tick. Closing immediately means that some events which are already scheduled to run on the current tick may be dropped unexpectedly. Modifications: - Execute the channel close on the next event-loop tick. - Fixup a test which now requires an extra loop `run()`. Result: Shutdown is a little more graceful.
- Loading branch information