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 paulmelnikow committed Jul 9, 2019
1 parent e3e6a65 commit a75f49f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/socket.js
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 a75f49f

Please sign in to comment.