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

Adding aborted event handler #3916

Merged
merged 14 commits into from Oct 29, 2021
Merged

Adding aborted event handler #3916

merged 14 commits into from Oct 29, 2021

Conversation

koh110
Copy link
Contributor

@koh110 koh110 commented Jul 27, 2021

close #3798

Instructions

Adding aborted event handler.

aborted event is emitted when a request is aborted with Node.js v14.
Now, axios does not have a handler for aborted events, so axios cannot reject when that are aborted.

This was not a problem in Node.js v12. But axios with Node.js v14 needs to be fixed.

Details: #3798

This was referenced Aug 1, 2021
@koh110
Copy link
Contributor Author

koh110 commented Aug 16, 2021

@jasonsaayman Hi! Thank you for #3938.
I retry CI.
Would you review and release new version?

@koh110
Copy link
Contributor Author

koh110 commented Sep 6, 2021

@jasonsaayman Hi! Thank you for new releases. https://github.com/axios/axios/releases/tag/v0.21.2
I was in trouble pointing out ReDoS vulnerability by our scanner.

And this bug is blocker of using Node.js v14 in our products.
Could you please review this?

Please let me know if you need to more information and have any help.

Thank you for releasing while you are busy!

@jasonsaayman
Copy link
Member

Tagging this for next release

@jasonsaayman jasonsaayman self-assigned this Oct 12, 2021
@koh110
Copy link
Contributor Author

koh110 commented Oct 12, 2021

@jasonsaayman Thank you sooo much!

@jasonsaayman jasonsaayman merged commit c5fe05b into axios:master Oct 29, 2021
@watiko
Copy link

watiko commented Nov 12, 2021

@jasonsaayman Thank you for maintaining this project! BTW, Any chance of a new release including this PR before #4209?
#3798 prevent us from upgrading node version.

mbargiel pushed a commit to mbargiel/axios that referenced this pull request Jan 27, 2022
* Adding test of aborts request

* Adding aborted event handler

* Fixing timing of setting rejected flag

Co-authored-by: Jay <jasonsaayman@gmail.com>
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

Successfully merging this pull request may close these issues.

http adapter stream never ends and request hangs
3 participants