jhiesey / stream-http

Streaming node http in the browser
MIT License
354 stars 62 forks source link

req.abort does not emit 'close' #118

Open ostollmann opened 4 years ago

ostollmann commented 4 years ago

Calling req.abort() does not emit close which is the behavior of Nodejs's http: https://nodejs.org/api/http.html#http_request_destroy_error

Related to #26, but not a duplicate I think since this isn't about the request still living, but rather about the client being able to notice that from his point of view it has been closed.

My use-case is that I catch an error, then want to call req.abort() and handle the error on 'close'.