Skip to content

Commit

Permalink
bugfix: avoid socket to pause
Browse files Browse the repository at this point in the history
  • Loading branch information
roccomuso committed Mar 11, 2020
1 parent fdf9911 commit a2e095e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/tcpServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ module.exports = function (debug) {

function tcpData (data) { // emitting also chunks
self.emit('data', socket, data)
if (socket._readableState.paused) {
socket.resume()
}
// waitTime before close
waitTimer.call(self)
}
Expand Down

0 comments on commit a2e095e

Please sign in to comment.