Skip to content

Commit 4b40031

Browse files
committed
hopefully fix ECONNRESET error on node 10+ alibaba#454
1 parent 38cba91 commit 4b40031

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/requestHandler.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,10 @@ class RequestHandler {
853853
try {
854854
await userRule.onClientSocketError(requestDetail, error);
855855
}
856-
catch (e) { }
856+
catch (e) {
857+
console.error(e);
858+
}
859+
reject(error)
857860
});
858861
cltSocket.on('end', function () {
859862
requestStream.push(null);

0 commit comments

Comments
 (0)