Skip to content

Commit a75f49f

Browse files
zenlorpaulmelnikow
authored andcommitted
feat: added noop method unref to Socket (#1612)
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
1 parent e3e6a65 commit a75f49f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/socket.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function Socket(options) {
2626
this.setNoDelay = noop
2727
this.setKeepAlive = noop
2828
this.resume = noop
29+
this.unref = noop
2930

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

0 commit comments

Comments
 (0)