-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix(NODE-5127): implement reject kmsRequest on server close #3964
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
72a0620
fix(NODE-5127): reject kmsRequest on server close
alenakhineika bfbd8b9
test: add unit test
alenakhineika 05bf2b3
refactor: kmsRequest to async/await
alenakhineika 08ad041
refactor: use promiseWithResolvers
alenakhineika 29beb70
refactor: destroy sockets at the very end
alenakhineika 12356a2
refactor: split rejecters
alenakhineika ac17114
refactor: listen for error events on tls socket only
alenakhineika 9b01fa3
Merge remote-tracking branch 'origin/main' into NODE-5127-reject-kms-…
alenakhineika bdfb5e3
fix: try listen for errors again on rawSocket
alenakhineika f3b9c62
fix: add back destroy socket on resolve
alenakhineika 4536da2
refactor: try again without error handlers on rawSocket
alenakhineika 70f279a
refactor: destroy sockets on finally
alenakhineika bd7723f
fix: add error listeners to raw socket
alenakhineika 36c10fb
test: add test for a plain endpoint
alenakhineika e744436
refactor: try with a single socket
alenakhineika e12e84e
fix: destroy tls socket
alenakhineika 48a985c
refactor: revert
alenakhineika d9fa8c8
refactor: remove only
alenakhineika 96b0cc8
refactor: try one more way
alenakhineika a3128fb
refactor: revert
alenakhineika 10c8b3d
refactor: and one more round
alenakhineika 788eeb5
test: close tls socket on server
alenakhineika 1aec2be
refactor: clean up
alenakhineika 16448ca
refactor: this time close really on server
alenakhineika be4f2ea
Merge branch 'main' into NODE-5127-reject-kms-request-onclose
nbbeeken File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit/question] Is there any reason, apart from style consistency, not to do this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, no there isn't but I also would not change it.
Generally, you may want to be careful about passing a function directly into another API. Adding parameters to the listener would be considered a feature and not a breaking change, but our promise would resolve with whatever new parameters were added.