Sha256: 1d9c790f601df20040392677a4cf4a6551dda0d3131a43f561653adcb0afb3f7

Contents?: true

Size: 501 Bytes

Versions: 5

Compression:

Stored size: 501 Bytes

Contents

'use strict';
require('../common');
var stream = require('stream');
var Buffer = require('buffer').Buffer;

var r = new stream.Readable();
r._read = function(size) {
  r.push(Buffer.allocUnsafe(size));
};

var w = new stream.Writable();
w._write = function(data, encoding, cb) {
  cb(null);
};

r.pipe(w);

// This might sound unrealistic, but it happens in net.js. When
// `socket.allowHalfOpen === false`, EOF will cause `.destroySoon()` call which
// ends the writable side of net.Socket.
w.end();

Version data entries

5 entries across 4 versions & 1 rubygems

Version Path
node-compiler-0.9.1 vendor/node/test/parallel/test-stream2-finish-pipe.js
node-compiler-0.9.0 vendor/node-v7.2.1/test/parallel/test-stream2-finish-pipe.js
node-compiler-0.8.0 vendor/node-v7.2.0/test/parallel/test-stream2-finish-pipe.js
node-compiler-0.7.0 vendor/node-v6.9.1/test/parallel/test-stream2-finish-pipe.js
node-compiler-0.7.0 vendor/node-v7.1.0/test/parallel/test-stream2-finish-pipe.js