Skip to content

grpc-js: Fix a crash when grpc.keepalive_permit_without_calls is set#2519

Merged
murgatroid99 merged 1 commit intogrpc:@grpc/grpc-js@1.8.xfrom
murgatroid99:grpc-js_keepalive_order_fix
Jul 25, 2023
Merged

grpc-js: Fix a crash when grpc.keepalive_permit_without_calls is set#2519
murgatroid99 merged 1 commit intogrpc:@grpc/grpc-js@1.8.xfrom
murgatroid99:grpc-js_keepalive_order_fix

Conversation

@murgatroid99
Copy link
Copy Markdown
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.

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.

3 participants