From 4b400312a3c564a8750e5a443d738669f9487c76 Mon Sep 17 00:00:00 2001 From: D4 Date: Sun, 29 Mar 2020 07:21:14 -0700 Subject: [PATCH] hopefully fix ECONNRESET error on node 10+ alibaba/anyproxy#454 --- lib/requestHandler.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/requestHandler.js b/lib/requestHandler.js index 4aaf3d522..4b3412d12 100644 --- a/lib/requestHandler.js +++ b/lib/requestHandler.js @@ -853,7 +853,10 @@ class RequestHandler { try { await userRule.onClientSocketError(requestDetail, error); } - catch (e) { } + catch (e) { + console.error(e); + } + reject(error) }); cltSocket.on('end', function () { requestStream.push(null);