Closed ghost closed 9 years ago
When the remote end closes, there's no notification at the server side of the connection right now. This patch ends the stream when the remote end closes.
It might also be a good idea to have a close event to handle cleanup and such.
close
Hmm. This should already work (close should be emitted when the stream is destroyed). Could you add a test case for this?
Test added!
Released in 1.5.0
When the remote end closes, there's no notification at the server side of the connection right now. This patch ends the stream when the remote end closes.
It might also be a good idea to have a
close
event to handle cleanup and such.