Skip to content

Commit e0bcffd

Browse files
[bug] Set noDelay=true if the client intentionally closes connection or server shuts down; For bug 75503
1 parent 914af69 commit e0bcffd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

DocService/sources/DocsCoServer.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1984,7 +1984,9 @@ exports.install = function(server, callbackFunction) {
19841984
if (needSaveChanges && !conn.encrypted) {
19851985
// Send changes to save server
19861986
let user_lcid = utilsDocService.localeToLCID(conn.lang);
1987-
yield createSaveTimer(ctx, docId, tmpUser.idOriginal, userIndex, user_lcid, undefined, getIsShutdown());
1987+
//noDelay=true if the client intentionally closes connection or server shuts down
1988+
const noDelay = !reason || getIsShutdown();
1989+
yield createSaveTimer(ctx, docId, tmpUser.idOriginal, userIndex, user_lcid, undefined, noDelay);
19881990
} else if (needSendStatus) {
19891991
yield* cleanDocumentOnExitNoChanges(ctx, docId, tmpUser.idOriginal, userIndex);
19901992
} else {

0 commit comments

Comments
 (0)