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 channel idle timeout #2471

Merged
merged 2 commits into from Jun 27, 2023

Conversation

murgatroid99
Copy link
Member

Implement channel idle timeout functionality: after a channel has no active calls for a certain amount of time, it will close any active connections and enter the IDLE state. The amount of time is configured by the grpc.client_idle_timeout_ms option. The default value is 30 minutes (1,800,000) and the minimum is 1 second (1000).

The changes making some fields readonly are primarily to make it easier to track which ones will be constant for the lifetime of the object and which may need to be reset when going to the IDLE state.

I also added some testing helper code to make it easier to add new tests of client or server behavior.

This is related to #2463 in the sense that that change's client management setup assumes that this change is coming.

@murgatroid99 murgatroid99 merged commit 51c5b94 into grpc:master Jun 27, 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