mikeal / SLEEP

Implementation of the SLEEP protocol.
29 stars 6 forks source link

use pump to error handle streams #17

Closed mafintosh closed 10 years ago

mafintosh commented 10 years ago

currently this module doesn't do stream error handling

if a request that fetches a long sleep stream from the server is aborted by the user the sequence stream is currently never closed (since pipe doesn't do that for you anymore).

in this pr i use my pump module that makes sure all streams involved in the pipeline are closed if one of them closes prematurely