From 557f22224eed74a22fb851d40e07ea0f9109bad9 Mon Sep 17 00:00:00 2001 From: thelamer Date: Fri, 7 Jun 2024 10:20:18 -0400 Subject: [PATCH] double the ipfs timeout to facilitate larger files --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index afa9e25..056e2d7 100644 --- a/index.js +++ b/index.js @@ -222,7 +222,7 @@ io.on('connection', async function (socket) { let writeStream = fs.createWriteStream(file); socket.emit('modaldata', 'Downloading: ' + file); try { - for await (var fileStream of ipfs.cat(cid, {'timeout': 10000})) { + for await (var fileStream of ipfs.cat(cid, {'timeout': 20000})) { writeStream.write(fileStream); }; writeStream.end();