Skip to content

Fix Firefox network idle timeout on repeated iterations#2391

Merged
soulgalore merged 3 commits into
mainfrom
fix-firefox-network-idle
Apr 23, 2026
Merged

Fix Firefox network idle timeout on repeated iterations#2391
soulgalore merged 3 commits into
mainfrom
fix-firefox-network-idle

Conversation

@soulgalore
Copy link
Copy Markdown
Member

The WebSocket message listener for BiDi network events was never removed between iterations, causing listener leaks.

Old listeners would decrement a stale inflight counter, driving it negative (-1), which prevented the idle check from ever succeeding. Store the handler as a named function and remove it on cleanup.

Co-authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com
Change-Id: I2f8e7b72eb948332c54966aa18e7000128b5a110

The WebSocket message listener for BiDi network events was never removed between
iterations, causing listener leaks.

Old listeners would decrement a stale inflight counter, driving it negative (-1),
which prevented the idle check from ever succeeding.
Store the handler as a named function and remove it on cleanup.

Co-authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com
Change-Id: I2f8e7b72eb948332c54966aa18e7000128b5a110
@soulgalore soulgalore merged commit 4cff5fd into main Apr 23, 2026
14 checks passed
@soulgalore soulgalore deleted the fix-firefox-network-idle branch April 23, 2026 07:33
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