fix: suppress EPIPE errors in pipeBetweenServers when target exits early

This commit is contained in:
Yash Kumar
2026-10-12 13:23:47 +05:30
parent 5ff8d05ff7
commit 37df4e484e
@@ -106,6 +106,7 @@ export const pipeBetweenServers = async ({
bytes += chunk.length;
onProgress?.(bytes);
});
from.stdout.on("error", () => {});
from.stdout.pipe(to.stdin);
const targetExit = to.exit.then((code) => {