From d72e053560f7dfeab8fd244f47ec76b173219324 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 22 Oct 2020 11:24:58 +0530 Subject: [PATCH] make a note to improve stream timeout error handling --- lib/storage/file.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/storage/file.js b/lib/storage/file.js index 5f3d4ae46..b1ccfde0f 100644 --- a/lib/storage/file.js +++ b/lib/storage/file.js @@ -105,6 +105,9 @@ in the meantime. Used to prevent file descriptor leaks in the case of abandoned streams while closing streams which are being read very very slowly. +XXX inform the stream consumer when it has been closed prematurely +by calling back with a TIMEOUT error or something + */ const createIdleStreamCollector = function (stream) { // create a function to close the stream which takes no arguments