handle aborted responses in lens proxy (#4308)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2021-11-10 13:47:36 +02:00
1 parent c37a8aee0a
commit 8846b5c96f
1 file changed
+4
+4
View File
@@ -146,6 +146,10 @@ export class LensProxy extends Singleton {
res.flushHeaders();
}
}
proxyRes.on("aborted", () => { // happens when proxy target aborts connection
res.end();
});
});
proxy.on("error", (error, req, res, target) => {