src: remove old code
The Socket writable only change was added and implemented in the constructor around 5885f464f0ad372efa7e, but this was never removed. The libev counter issue is no longer prudent; the test remains in test/sequential/test-regress-GH-1726. PR-URL: https://github.com/nodejs/io.js/pull/1819 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
parent
8606793999
commit
a65762cab6
19
src/node.js
19
src/node.js
@ -578,12 +578,6 @@
|
|||||||
var tty = NativeModule.require('tty');
|
var tty = NativeModule.require('tty');
|
||||||
stream = new tty.WriteStream(fd);
|
stream = new tty.WriteStream(fd);
|
||||||
stream._type = 'tty';
|
stream._type = 'tty';
|
||||||
|
|
||||||
// Hack to have stream not keep the event loop alive.
|
|
||||||
// See https://github.com/joyent/node/issues/1726
|
|
||||||
if (stream._handle && stream._handle.unref) {
|
|
||||||
stream._handle.unref();
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'FILE':
|
case 'FILE':
|
||||||
@ -600,20 +594,7 @@
|
|||||||
readable: false,
|
readable: false,
|
||||||
writable: true
|
writable: true
|
||||||
});
|
});
|
||||||
|
|
||||||
// FIXME Should probably have an option in net.Socket to create a
|
|
||||||
// stream from an existing fd which is writable only. But for now
|
|
||||||
// we'll just add this hack and set the `readable` member to false.
|
|
||||||
// Test: ./node test/fixtures/echo.js < /etc/passwd
|
|
||||||
stream.readable = false;
|
|
||||||
stream.read = null;
|
|
||||||
stream._type = 'pipe';
|
stream._type = 'pipe';
|
||||||
|
|
||||||
// FIXME Hack to have stream not keep the event loop alive.
|
|
||||||
// See https://github.com/joyent/node/issues/1726
|
|
||||||
if (stream._handle && stream._handle.unref) {
|
|
||||||
stream._handle.unref();
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user