From 2af182a8177794e64f5cdf1f7222a47a22f39ae6 Mon Sep 17 00:00:00 2001 From: Mark Duckworth <1124037+MarkDuckworth@users.noreply.github.com> Date: Thu, 26 Oct 2023 16:01:22 -0600 Subject: [PATCH] Rolling back the use of useFetchStreams, which has lead to hanging queries. --- .../src/platform/browser/webchannel_connection.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/firestore/src/platform/browser/webchannel_connection.ts b/packages/firestore/src/platform/browser/webchannel_connection.ts index 05cd79ecf9e..cb183c9e149 100644 --- a/packages/firestore/src/platform/browser/webchannel_connection.ts +++ b/packages/firestore/src/platform/browser/webchannel_connection.ts @@ -27,7 +27,8 @@ import { EventTarget, StatEvent, Event, - Stat + Stat, + FetchXmlHttpFactory } from '@firebase/webchannel-wrapper'; import { Token } from '../../api/credentials'; @@ -208,7 +209,9 @@ export class WebChannelConnection extends RestConnection { } if (this.useFetchStreams) { - request.useFetchStreams = true; + // When b/307942499 is fixed, revert to the following line: + // request.useFetchStreams = true; + request.xmlHttpFactory = new FetchXmlHttpFactory({}); } this.modifyHeadersForRequest(