Skip to content

Commit a5fd42d

Browse files
committed
fix ECONNRESET error on node 10+
1 parent ce13272 commit a5fd42d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/requestHandler.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,10 @@ function getConnectReqHandler(userRule, recorder, httpsServerMgr) {
527527
let resourceInfoId = -1;
528528
const requestStream = new CommonReadableStream();
529529

530+
cltSocket.on('error', (e) => {
531+
console.error(e)
532+
})
533+
530534
/*
531535
1. write HTTP/1.1 200 to client
532536
2. get request data

0 commit comments

Comments
 (0)