-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent stream timeout by removing backpressure
When UI thread is suspended (winit event loop) we can't remove messages sent from the IRC stream channel. This backpressure stalls the stream and prevents it from dealing w/ new IRC messages / pings, causing the connection to timeout. Use an unbounded channel to remove all backpressure. If the UI is suspended, memory will start increasing instead, which is preferrable to timeout.
- Loading branch information
Showing
3 changed files
with
55 additions
and
57 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
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
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