Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

req.abort does not emit 'close' #118

Open
ostollmann opened this issue Sep 18, 2020 · 0 comments
Open

req.abort does not emit 'close' #118

ostollmann opened this issue Sep 18, 2020 · 0 comments

Comments

@ostollmann
Copy link

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'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant