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

grpc-js: Implement Server#unbind #2612

Merged
merged 1 commit into from Nov 14, 2023

Conversation

murgatroid99
Copy link
Member

This implements L109: Node: Server API to unbind ports.

Most of the work was in refactoring bindAsync to make unbind implementable, and introducing tracking of previous bindAsync calls as a unit. As a result, bindAsync behavior has slight changes to observable behavior: when making a bindAsync call with the same target string as a previous call, if the credentials are equivalent, the result of the previous call is passed along to the new callback, but if they are different, the new call fails with an error.

The new ServerCredentials#_equals and combineHostPort functions are new utility functions that were needed to implement the new bindAsync behavior.

The change in subchannel.ts was a fix to prevent tests from spuriously holding the process open with connection backoff timers.

@murgatroid99 murgatroid99 merged commit 58b13ac into grpc:master Nov 14, 2023
9 of 10 checks passed
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.

None yet

2 participants