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