We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
macOS Sonoma 14.6.1
Chrome 130
11.2.0
Database
Javascript + React + Webpack
Realtime should quickly reconnect after connection lost.
But there is a bug in Firebase JS SDK that leads to delays before reconnect attempt that exceeds max constant values.
Steps
You will see that Realtime DB may try to reconnect in 3 minutes even for Admin accounts (for Admin accounts constant maximum is 30 seconds).
The bug is in this code:
firebase-js-sdk/packages/database/src/core/PersistentConnection.ts
Lines 800 to 815 in b12af44
So timeSinceLastConnectAttempt may become negative, and so lead to significant exceeding of max delays defined in constants.
timeSinceLastConnectAttempt
The text was updated successfully, but these errors were encountered:
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Sorry, something went wrong.
Fix negative offset of reconnect delay (firebase#8718)
c20267b
01f36ea
DellaBitta
No branches or pull requests
Operating System
macOS Sonoma 14.6.1
Environment (if applicable)
Chrome 130
Firebase SDK Version
11.2.0
Firebase SDK Product(s)
Database
Project Tooling
Javascript + React + Webpack
Detailed Problem Description
Realtime should quickly reconnect after connection lost.
But there is a bug in Firebase JS SDK that leads to delays before reconnect attempt that exceeds max constant values.
Steps and code to reproduce issue
Steps
You will see that Realtime DB may try to reconnect in 3 minutes even for Admin accounts (for Admin accounts constant maximum is 30 seconds).
The bug is in this code:
firebase-js-sdk/packages/database/src/core/PersistentConnection.ts
Lines 800 to 815 in b12af44
So
timeSinceLastConnectAttempt
may become negative, and so lead to significant exceeding of max delays defined in constants.The text was updated successfully, but these errors were encountered: