From e3e36e11acff58570cbaa90c13e2177991e140f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Wed, 1 Apr 2020 22:36:59 +0200 Subject: [PATCH] Remove client-side timeout when saving pages Bug: T249071 Change-Id: I367c5931c05cf944bfad0f9fff69f06b32880411 --- modules/controller.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/controller.js b/modules/controller.js index 25463f64a..4ff6e69c0 100644 --- a/modules/controller.js +++ b/modules/controller.js @@ -260,7 +260,12 @@ function save( widget, parsoidData ) { savePromise = mw.libs.ve.targetSaver.saveDoc( parsoidData.doc, - data + data, + { + // No timeout. Huge talk pages take a long time to save, and falsely reporting an error can + // result in duplicate messages when the user retries. (T249071) + api: new mw.Api( { ajax: { timeout: 0 } } ) + } ).catch( function ( code, data ) { // Handle edit conflicts. Load the latest revision of the page, then try again. If the parent // comment has been deleted from the page, or if retry also fails for some other reason, the