Skip to content

Commit

Permalink
fix crashing issue when connection is reset
Browse files Browse the repository at this point in the history
  • Loading branch information
laysent committed Sep 23, 2018
1 parent ce13272 commit cdc6012
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/requestHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,9 @@ function getConnectReqHandler(userRule, recorder, httpsServerMgr) {
resolve();
}
});
cltSocket.on('error', (e) => {
reject(e);
});
cltSocket.on('end', () => {
requestStream.push(null);
});
Expand Down

0 comments on commit cdc6012

Please sign in to comment.