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: Fix a crash when grpc.keepalive_permit_without_calls is set #2519

Conversation

murgatroid99
Copy link
Member

Part of the change in #2513 added a trace line to starting the keepalive timer. That can be called from the constructor if the option grpc.keepalive_permit_without_calls is set, and that fails because the object isn't fully constructed. This change just rearranges the constructor so that the parts of the setup that affect trace logs are completed as early as possible, and starting the keepalive timer happens as late as possible.

@murgatroid99 murgatroid99 merged commit 51d6163 into grpc:@grpc/grpc-js@1.8.x Jul 25, 2023
4 of 5 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

3 participants