You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Use timeout=0 rather than timeout=1 because of SYN-588
Fixes https://github.com/vector-im/vector-web/issues/606
This commit is contained in:
@@ -107,7 +107,7 @@ SyncApi.prototype.syncLeftRooms = function() {
|
|||||||
|
|
||||||
var localTimeoutMs = this.opts.pollTimeout + BUFFER_PERIOD_MS;
|
var localTimeoutMs = this.opts.pollTimeout + BUFFER_PERIOD_MS;
|
||||||
var qps = {
|
var qps = {
|
||||||
timeout: 1 // don't want to block since this is a single isolated req
|
timeout: 0 // don't want to block since this is a single isolated req
|
||||||
};
|
};
|
||||||
|
|
||||||
return this._getOrCreateFilter(
|
return this._getOrCreateFilter(
|
||||||
@@ -334,8 +334,8 @@ SyncApi.prototype._sync = function(syncOptions, attempt) {
|
|||||||
if (attempt > 1) {
|
if (attempt > 1) {
|
||||||
// we think the connection is dead. If it comes back up, we won't know
|
// we think the connection is dead. If it comes back up, we won't know
|
||||||
// about it till /sync returns. If the timeout= is high, this could
|
// about it till /sync returns. If the timeout= is high, this could
|
||||||
// be a long time. Set it to 1 when doing retries.
|
// be a long time. Set it to 0 when doing retries.
|
||||||
qps.timeout = 1;
|
qps.timeout = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
client._http.authedRequestWithPrefix(
|
client._http.authedRequestWithPrefix(
|
||||||
|
|||||||
Reference in New Issue
Block a user