From aa3715bd66f4ea941e6b13a0b0b263df56bd69b0 Mon Sep 17 00:00:00 2001 From: Anna Claire Fields <58918237+franklovefrank@users.noreply.github.com> Date: Thu, 26 Mar 2026 14:15:08 +0100 Subject: [PATCH] Fix filestore-readonly crash from ERR_STREAM_UNABLE_TO_PIPE GitOrigin-RevId: 405ad3210132702fffecdc091066321bc1ccc10c --- services/filestore/app/js/FileController.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/filestore/app/js/FileController.js b/services/filestore/app/js/FileController.js index 0ccb332516..c2dffe76cb 100644 --- a/services/filestore/app/js/FileController.js +++ b/services/filestore/app/js/FileController.js @@ -62,6 +62,11 @@ function getFile(req, res, next) { return } + if (res.destroyed) { + fileStream.destroy() + return + } + if (req.query.cacheWarm) { fileStream.destroy() return res.sendStatus(200).end()