Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use hack to enqueue frames to write before writing
Tornado has an internal queue that uses to hold frames before writing them. To avoid needing to track and wait on various `Future`s and the amount of data sent, we can just enqueue all of the frames we want to send before a send even happens and then start the write. This way Tornado already has all of the data we plan to send once it starts working. In the meantime, we are able to carry on with other tasks while this gets handled in the background.
- Loading branch information