Skip to content

Commit

Permalink
hopefully fix ECONNRESET error on node 10+ alibaba#454
Browse files Browse the repository at this point in the history
  • Loading branch information
d4tocchini committed Mar 29, 2020
1 parent 38cba91 commit 4b40031
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/requestHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4b40031

Please sign in to comment.