joyent/node — pull request #4723 by indutny (2013-02-06 14:47:24+00:00)
Title: streams: both `finish` and `close` should unpipe

Otherwise sockets that are 'finish'ed won't be unpiped and `writing to
ended stream` error will arise.

/cc @bnoordhuis @isaacs