Merge pull request #36028 from overleaf/mj-fatal-op-long

[web] Stop arming FATAL_OP_TIMEOUT timer

GitOrigin-RevId: f0b98d6fb5d2312d3b5137ebba0775a88cb01b72
This commit is contained in:
Mathias Jakobsen
2026-09-17 11:43:30 +00:00
committed by Copybot
parent 0c5e55a8be
commit 774f2c8f06
@@ -522,6 +522,14 @@ export class ShareJsDoc extends EventEmitter {
}
private startFatalTimeoutTimer(update: Update) {
if (
intermittentConnectionImprovementsEnabled &&
this.type === 'sharejs-text-ot'
) {
// We're storing ops locally as a backup, so no need to panic if they
// don't reach the server this time.
return
}
// If an op doesn't get acked within FATAL_OP_TIMEOUT, something has
// gone unrecoverably wrong (the op will have been retried multiple times)
if (this._timeoutTimer != null) {