remove packet limit on child node file transfer

montage-api
Moe 2021-12-23 08:55:15 -08:00
parent c456222864
commit e4b7098386
1 changed files with 1 additions and 1 deletions

View File

@ -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)
})