Skip to content

grpc-js: Consistently reference the same options object in the channel constructor#2933

Merged
murgatroid99 merged 1 commit intogrpc:@grpc/grpc-js@1.13.xfrom
murgatroid99:grpc-js_channel_options_fix
Mar 26, 2025
Merged

grpc-js: Consistently reference the same options object in the channel constructor#2933
murgatroid99 merged 1 commit intogrpc:@grpc/grpc-js@1.13.xfrom
murgatroid99:grpc-js_channel_options_fix

Conversation

@murgatroid99
Copy link
Copy Markdown
Member

Since this.options is modified on line 295, all later uses of the options object should refer to this.options instead of the local options variable. In particular, the change to the ResolvingLoadBalancer constructor call fixes #2932, because after #2854 the channel options get to the subchannel constructor through the LB policy, instead of getting merged with the channel options in channelControlHelper.createSubchannel, and the options variable didn't contain the proxy information that the subchannel would use to connect through a proxy.

@murgatroid99 murgatroid99 merged commit 9652680 into grpc:@grpc/grpc-js@1.13.x Mar 26, 2025
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.

1 participant