From bc13a21796fb1a4a8db2e2803dbbf44308ea1f44 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 25 Mar 2020 11:50:45 -0400 Subject: [PATCH] give fileStreams a little bit more time before closing them --- lib/storage/file.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/storage/file.js b/lib/storage/file.js index 669ff900b..994680218 100644 --- a/lib/storage/file.js +++ b/lib/storage/file.js @@ -64,7 +64,7 @@ const destroyStream = function (stream) { try { stream.close(); } catch (err) { console.error(err); } setTimeout(function () { try { stream.destroy(); } catch (err) { console.error(err); } - }, 5000); + }, 15000); }; const ensureStreamCloses = function (stream, id, ms) { @@ -729,7 +729,7 @@ var getChannel = function (env, id, _callback) { delete env.channels[id]; destroyStream(channel.writeStream, path); //console.log("closing writestream"); - }, 30000); + }, 120000); channel.delayClose(); env.channels[id] = channel; done(void 0, channel);