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 mercure eventsource (re)connection explosion in firefox #78

Merged

Conversation

asdfzdfj
Copy link
Contributor

previously, the firefox bug workaround in eventsource mercure connection code would results in a new untracked connection to mercure and there would be a new untracked connection everytime the initial mercure eventsource connection onerror handler is triggered.

try idling on any page while using dev tools open to track network requests to mercure and observe an additional request to mercure everytime the current one terminates approx. every 10m

although from some quick testing against newer/current firefox version, it looks like this workaround might not be needed and perhaps can be removed entirely? (last I checked was with FF 116 and it seemed to work fine)

previously, the firefox bug workaround in eventsource mercure connection
code would results in a new untracked connection to mercure and there
would be a new untracked connection everytime initial mercure
eventsource connection onerror handler activated.

try idling on any page while using dev tools to track network requests
to mercure and observe an additional request to mercure everytime the
current one terminates approx. every 10m
@melroy89

This comment was marked as outdated.

Co-authored-by: Melroy van den Berg <melroy@melroy.org>
@asdfzdfj asdfzdfj merged commit 0a4f30a into MbinOrg:main Oct 19, 2023
3 checks passed
@melroy89
Copy link
Member

melroy89 commented Oct 24, 2023

@asdfzdfj If Mercure is down for whatever reason or wrongly configured by the server admin.. Firefox is spamming like hell:

mercure_spamming

Shouldn't we implement some setTimeout()??

@melroy89 melroy89 added documentation Improvements or additions to documentation frontend Visual issues, improvements, bugs or other aspects relating mostly to the front end and removed documentation Improvements or additions to documentation labels Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Visual issues, improvements, bugs or other aspects relating mostly to the front end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants