Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade tokio-tungstenite #1046

Merged
merged 1 commit into from
Oct 2, 2023
Merged

Conversation

mauvealerts
Copy link
Contributor

Tungstenite, and therefore tokio-tungstenite, had some notable API changes:

  • Buffers are now in terms of bytes
  • Implicit flushes have generally been removed

The default send buffer is 128KiB, which seems more than enough for our needs. Note that writes will fail if the buffer is full, but I'd wrather do that than consume unbounded memory. Also we flush a lot, maybe too much.

Generally, the websocket stuff could probably use some more thought. This is just enough to keep it working roughly the same.

@mauvealerts mauvealerts merged commit 0927830 into spelunky-fyi:main Oct 2, 2023
4 checks passed
@mauvealerts mauvealerts deleted the up-tungsteite branch October 2, 2023 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants