Skip to content

Commit ba45e4f

Browse files
committed
just reject not show error message
1 parent a5fd42d commit ba45e4f

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

lib/requestHandler.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -527,10 +527,6 @@ 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-
534530
/*
535531
1. write HTTP/1.1 200 to client
536532
2. get request data
@@ -584,6 +580,7 @@ function getConnectReqHandler(userRule, recorder, httpsServerMgr) {
584580
resolve();
585581
}
586582
});
583+
cltSocket.on('error', reject);
587584
cltSocket.on('end', () => {
588585
requestStream.push(null);
589586
});

0 commit comments

Comments
 (0)