convos-chat / convos-chat/convos
Websocket connection drops in Firefox (HTTP/2)
- Dominant language
- Go
- Stars
- 1.2k
- Forks
- 93
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
The websocket connection drops frequently (sometimes several times a minute) in Firefox. The console displays this error upon connection drop:
The connection to wss://irc.example.com/events was interrupted while the page was loading.
The dropout bounces the user back to the login screen momentarily, before the connection is re-established.
The problem is remedied by changing Firefox's about:config setting `network.http.http2.websockets` to false.
This would lead me to believe there is a problem with websockets using HTTP/2.
**To Reproduce**
Steps to reproduce the behavior:
1. Install Convos
2. Create user account
3. Log in to user account
4. Wait
**Expected behavior**
Convos stays connected via websocket.
**Environment:**
- OS: Docker (server), macOS 15.4.1 (client)
- Browser: Firefox 138
- Version 8.07
- connecting to libera.chat and oftc.net
Contributor guide
No contributing guide indexed for this repository
Research direction
No file or test is named. Reproduce the drops in Firefox 138 with HTTP/2 WebSockets enabled, then compare behavior with network.http.http2.websockets set to false; trace the WebSocket connection and reconnect path. Done means the connection remains stable without sending the user back to the login screen.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, perl
- Domain
- backend, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100