From e0e6625f3ef573ebcf10ce6b298939ccbea25532 Mon Sep 17 00:00:00 2001 From: Michael Lehenbauer Date: Mon, 26 Mar 2018 13:24:32 -0700 Subject: Fix issue that could cause offline get()s to wait up to 10 seconds. (#978) Port of https://github.com/firebase/firebase-js-sdk/pull/592 FSTOnlineStateTracker was reverting to OnlineState Unknown on every stream attempt rather than remaining Offline once the offline heuristic had been met (i.e. 2 stream failures or 10 seconds). This means that getDocument() requests made while offline could be delayed up to 10 seconds each time (or until the next backoff attempt failed). --- Firestore/CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Firestore/CHANGELOG.md') diff --git a/Firestore/CHANGELOG.md b/Firestore/CHANGELOG.md index 50958db..bcd92d0 100644 --- a/Firestore/CHANGELOG.md +++ b/Firestore/CHANGELOG.md @@ -1,4 +1,7 @@ # Unreleased +- [fixed] Fixed a regression in the Firebase iOS SDK release 4.11.0 that could + cause getDocument() requests made while offline to be delayed by up to 10 + seconds (rather than returning from cache immediately). # v0.10.4 - [changed] If the SDK's attempt to connect to the Cloud Firestore backend -- cgit v1.2.3