WebSocket connections are silently throttled in a way that does not reset even upon closing or reloading a tab

NEW
Unassigned

Status

()

Core
Networking: WebSockets
P3
normal
a year ago
8 months ago

People

(Reporter: kael, Unassigned)

Tracking

54 Branch
Unspecified
Windows
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [necko-backlog])

(Reporter)

Description

a year ago
I'm working on an internal webapp that uses a persistent WebSocket connection to interact with a server. In order to handle intermittent network connectivity and server restarts (like when I change server code), it periodically retries its connection after a disconnect, on a delay that backs off over time (every 2 seconds at first, slower over time).

Firefox is silently throttling these requests over time, to the point that a single connection request quietly takes up to 60 seconds. This delay does not go away if I close the tab or reload it by hand, which means to debug this webapp I have to *restart Firefox* repeatedly. I don't have this problem in Chrome or Edge.
CC'ing Michal in case he knows some quick and simple solution to this.
Whiteboard: [necko-backlog]
(Reporter)

Comment 2

a year ago
I should note that there seems to be a timer on this because if I close the tab for a few minutes the throttling goes away.
You need to log in before you can comment on or make changes to this bug.