-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ensure that pings don't get stuck behind writes
This sends pings/pongs first before processing messages. This ensures that: 1. RTT times are accurate. 2. We don't end up thinking the connection is dead because a ping keeps getting stuck behind a message. I tried lowering the max message size to 4KiB, but that broke tests due to a perf regression. Although I'm not sure how "real" that perf regression is.
- Loading branch information
Showing
1 changed file
with
39 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters