Skip to content

Commit 2af182a

Browse files
committed
Rolling back the use of useFetchStreams, which has lead to hanging queries.
1 parent cac9165 commit 2af182a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/firestore/src/platform/browser/webchannel_connection.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ import {
2727
EventTarget,
2828
StatEvent,
2929
Event,
30-
Stat
30+
Stat,
31+
FetchXmlHttpFactory
3132
} from '@firebase/webchannel-wrapper';
3233

3334
import { Token } from '../../api/credentials';
@@ -208,7 +209,9 @@ export class WebChannelConnection extends RestConnection {
208209
}
209210

210211
if (this.useFetchStreams) {
211-
request.useFetchStreams = true;
212+
// When b/307942499 is fixed, revert to the following line:
213+
// request.useFetchStreams = true;
214+
request.xmlHttpFactory = new FetchXmlHttpFactory({});
212215
}
213216

214217
this.modifyHeadersForRequest(

0 commit comments

Comments
 (0)