From 8687e34903c0b45d216bee3f46ebb6899250f0c0 Mon Sep 17 00:00:00 2001 From: Sergey Konovalov Date: Wed, 23 Oct 2024 18:24:33 +0300 Subject: [PATCH] [bug] Change disconnection code on server shutdown; For shared cluster --- DocService/sources/DocsCoServer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DocService/sources/DocsCoServer.js b/DocService/sources/DocsCoServer.js index 4fd1a395..4ac7af7f 100644 --- a/DocService/sources/DocsCoServer.js +++ b/DocService/sources/DocsCoServer.js @@ -1634,7 +1634,8 @@ exports.install = function(server, callbackFunction) { return; } if (getIsShutdown()) { - sendFileError(ctx, conn, 'Server shutdow'); + sendDataDisconnectReason(ctx, conn, constants.SHUTDOWN_CODE, constants.SHUTDOWN_REASON); + conn.disconnect(true); return; } conn.baseUrl = utils.getBaseUrlByConnection(ctx, conn);