diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-05-17 07:13:29 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-05-22 16:14:24 +0200 |
commit | 039fac633eaf081a96bb1ed8bc7307d03dcbe9d9 (patch) | |
tree | b24085e8aab84e09ed8fd7d311cd360dbfd6259e /lib | |
parent | a608f65b2454a83f08a60ba24088a672097540f5 (diff) | |
download | node-039fac633eaf081a96bb1ed8bc7307d03dcbe9d9.tar.gz |
deps: upgrade libuv to a478847
The event loop's reference counting scheme in this version of libuv has changed.
Update the libuv bindings to reflect that fact.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net.js | 10 | ||||
-rw-r--r-- | lib/tty.js | 2 |
2 files changed, 0 insertions, 12 deletions
diff --git a/lib/net.js b/lib/net.js index 5d86e644b..493053630 100644 --- a/lib/net.js +++ b/lib/net.js @@ -238,11 +238,6 @@ Object.defineProperty(Socket.prototype, 'bufferSize', { Socket.prototype.pause = function() { if (this._handle) { this._handle.readStop(); - - // this adds an undesireable boundary crossing for pipe streams. - // the .unref() method is omitted on TCP streams, because it is - // unnecessary. - if (this._handle.unref) this._handle.unref(); } }; @@ -250,11 +245,6 @@ Socket.prototype.pause = function() { Socket.prototype.resume = function() { if (this._handle) { this._handle.readStart(); - - // this adds an undesireable boundary crossing for pipe streams. - // the .ref() method is omitted on TCP streams, because it is - // unnecessary. - if (this._handle.ref) this._handle.ref(); } }; diff --git a/lib/tty.js b/lib/tty.js index 3aedcf407..414eed698 100644 --- a/lib/tty.js +++ b/lib/tty.js @@ -55,12 +55,10 @@ inherits(ReadStream, net.Socket); exports.ReadStream = ReadStream; ReadStream.prototype.pause = function() { - this._handle.unref(); return net.Socket.prototype.pause.call(this); }; ReadStream.prototype.resume = function() { - this._handle.ref(); return net.Socket.prototype.resume.call(this); }; |