Skip to content

Commit

Permalink
grpc: use local subchannel pool
Browse files Browse the repository at this point in the history
Signed-off-by: Attila Szakacs <[email protected]>
  • Loading branch information
alltilla committed Oct 11, 2024
1 parent 546d4cc commit 618c0c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/grpc/common/grpc-dest-worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ DestWorker::create_channel_args()
args.SetCompressionAlgorithm(GRPC_COMPRESS_GZIP);

args.SetInt(GRPC_ARG_KEEPALIVE_PERMIT_WITHOUT_CALLS, 1);
args.SetInt(GRPC_ARG_USE_LOCAL_SUBCHANNEL_POOL, 1);

for (auto nv : this->owner.int_extra_channel_args)
args.SetInt(nv.first, nv.second);
Expand Down
2 changes: 2 additions & 0 deletions modules/grpc/common/grpc-source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ SourceDriver::prepare_server_builder(::grpc::ServerBuilder &builder)

builder.AddListeningPort(address, credentials_builder.build());

builder.AddChannelArgument(GRPC_ARG_USE_LOCAL_SUBCHANNEL_POOL, 1);

for (auto nv : int_extra_channel_args)
builder.AddChannelArgument(nv.first, nv.second);
for (auto nv : string_extra_channel_args)
Expand Down

0 comments on commit 618c0c3

Please sign in to comment.