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

fix: prefer WebSockets over XMPP #58

Merged
merged 2 commits into from
Jan 24, 2025
Merged

fix: prefer WebSockets over XMPP #58

merged 2 commits into from
Jan 24, 2025

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Jan 24, 2025

Previously we preferred XMPP because there was a concern that the WebSockets API might change or go away, however since the product line has been discontinued there is much less risk of a firmware update breaking the WebSockets. Since the WebSocket version is more stable, and does not have the blocking I/O issues that XMPP does, its generally a better choice to try first. Additionally the XMPP implementation used on the hub has known vulns.

In theory we should never fallback to XMPP with this change even if its enabled unless the WebSocket port is blocked

Previously we preferred XMPP because there was a concern that the
WebSockets API might change or go away, however since the product
line has been discontinued there is much less risk of a firmware
update breaking the WebSockets. Since the WebSocket version is
more stable, and does not have the blocking I/O issues that
XMPP does, its generally a better choice to try first.

https://codeberg.org/poezio/slixmpp/issues/3582
@bdraco bdraco marked this pull request as ready for review January 24, 2025 04:49
@bdraco bdraco merged commit 381ec77 into main Jan 24, 2025
9 checks passed
@bdraco bdraco deleted the prefer_websockets branch January 24, 2025 04:52
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.

1 participant