mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
Otherwise sockets that are 'finish'ed won't be unpiped and `writing to ended stream` error will arise. 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.