From e4b70983860fef247daf9877e6fde4dbef1f0556 Mon Sep 17 00:00:00 2001 From: Moe Date: Thu, 23 Dec 2021 08:55:15 -0800 Subject: [PATCH] remove packet limit on child node file transfer --- libs/childNode/childUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/childNode/childUtils.js b/libs/childNode/childUtils.js index a8abb740..a2e70178 100644 --- a/libs/childNode/childUtils.js +++ b/libs/childNode/childUtils.js @@ -111,7 +111,7 @@ module.exports = function(s,config,lang,app,io){ connectionId: s.childNodeIdOnMasterNode, })) setTimeout(() => { - fs.createReadStream(filePath,{ highWaterMark: 500 }) + fs.createReadStream(filePath) .on('data',function(data){ fileTransferConnection.send(data) })