Skip to content

Emulate AbstractManagedChannelImplBuilder maxInboundMessageSize(int)#8597

Closed
ejona86 wants to merge 1 commit intogrpc:masterfrom
ejona86:internal-maxinboundmessagesize
Closed

Emulate AbstractManagedChannelImplBuilder maxInboundMessageSize(int)#8597
ejona86 wants to merge 1 commit intogrpc:masterfrom
ejona86:internal-maxinboundmessagesize

Conversation

@ejona86
Copy link
Member

@ejona86 ejona86 commented Oct 13, 2021

In dbd903c we started generatating AbstractManagedChannelImplBuilder
methods in a way that they are present for ABI but on recompilation only
public ManagedChannelBuilder-returning methods would be used. However,
this sorta missed maxInboundMessageSize which is now being handled by
the concrete classes (e.g, NettyChannelBuilder) instead of
ManagedChannelImplBuilder. Users on the old ABI will end up getting
ManagedChannelImplBuilder.maxInboundMessageSize() which does nothing.

So, let's just implement the method and have it jump back up to the
concrete class. Hacky, but easy and predictable and will go away once we
remove the rest of the AbstractManagedChannelImplBuilder compatibility
hacks.

Fixes #8313

In dbd903c we started generatating AbstractManagedChannelImplBuilder
methods in a way that they are present for ABI but on recompilation only
public ManagedChannelBuilder-returning methods would be used. However,
this sorta missed maxInboundMessageSize which is now being handled by
the concrete classes (e.g, NettyChannelBuilder) instead of
ManagedChannelImplBuilder. Users on the old ABI will end up getting
ManagedChannelImplBuilder.maxInboundMessageSize() which does nothing.

So, let's just implement the method and have it jump back up to the
concrete class. Hacky, but easy and predictable and will go away once we
remove the rest of the AbstractManagedChannelImplBuilder compatibility
hacks.

Fixes grpc#8313
@ejona86
Copy link
Member Author

ejona86 commented Oct 15, 2021

Closing in favor of #8607

@ejona86 ejona86 closed this Oct 15, 2021
@ejona86 ejona86 deleted the internal-maxinboundmessagesize branch October 15, 2021 00:13
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

maxInboundMessageSize is not applied when app code has newer gRPC version than used in library

1 participant