Skip to content

Commit

Permalink
feat: added noop method unref to Socket (#1612)
Browse files Browse the repository at this point in the history
it has been implemented in node.js 0.9.1 but it's seldomly used.

ref: https://nodejs.org/api/net.html#net_socket_unref
  • Loading branch information
zenlor authored and gr2m committed Sep 4, 2019
1 parent 20c682b commit f17a487
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function Socket(options) {
this.setNoDelay = noop
this.setKeepAlive = noop
this.resume = noop
this.unref = noop

// totalDelay that has already been applied to the current
// request/connection, timeout error will be generated if
Expand Down

0 comments on commit f17a487

Please sign in to comment.