« Previous | Next » 

Revision c024d2d8

IDc024d2d8c04405bc112226796c8d10421f58d441
Parent b58efe77
Child d59beb9f

Added by Fedor Indutny over 11 years ago

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.

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.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences