pull/35270/head
Craig Tiller 12 months ago
parent a6b70cfe37
commit d2af3fee63
  1. 7
      src/core/ext/filters/channel_idle/channel_idle_filter.cc
  2. 2
      src/core/ext/filters/channel_idle/legacy_channel_idle_filter.cc
  3. 3
      src/core/plugin_registry/grpc_plugin_registry.cc

@ -56,6 +56,13 @@
namespace grpc_core {
const NoInterceptor ChannelIdleFilter::Call::OnClientInitialMetadata;
const NoInterceptor ChannelIdleFilter::Call::OnServerInitialMetadata;
const NoInterceptor ChannelIdleFilter::Call::OnServerTrailingMetadata;
const NoInterceptor ChannelIdleFilter::Call::OnClientToServerMessage;
const NoInterceptor ChannelIdleFilter::Call::OnServerToClientMessage;
const NoInterceptor ChannelIdleFilter::Call::OnFinalize;
namespace {
// TODO(roth): This can go back to being a constant when the experiment

@ -299,7 +299,7 @@ const grpc_channel_filter LegacyMaxAgeFilter::kFilter =
MakePromiseBasedFilter<LegacyMaxAgeFilter, FilterEndpoint::kServer>(
"max_age");
void RegisterChannelIdleFilters(CoreConfiguration::Builder* builder) {
void RegisterLegacyChannelIdleFilters(CoreConfiguration::Builder* builder) {
if (IsV3ChannelIdleFiltersEnabled()) return;
builder->channel_init()
->RegisterFilter(GRPC_CLIENT_CHANNEL, &LegacyClientIdleFilter::kFilter)

@ -40,6 +40,8 @@ extern void SecurityRegisterHandshakerFactories(
CoreConfiguration::Builder* builder);
extern void RegisterClientAuthorityFilter(CoreConfiguration::Builder* builder);
extern void RegisterChannelIdleFilters(CoreConfiguration::Builder* builder);
extern void RegisterLegacyChannelIdleFilters(
CoreConfiguration::Builder* builder);
extern void RegisterDeadlineFilter(CoreConfiguration::Builder* builder);
extern void RegisterGrpcLbPolicy(CoreConfiguration::Builder* builder);
extern void RegisterHttpFilters(CoreConfiguration::Builder* builder);
@ -89,6 +91,7 @@ void BuildCoreConfiguration(CoreConfiguration::Builder* builder) {
SecurityRegisterHandshakerFactories(builder);
RegisterClientAuthorityFilter(builder);
RegisterChannelIdleFilters(builder);
RegisterLegacyChannelIdleFilters(builder);
RegisterConnectedChannel(builder);
RegisterGrpcLbPolicy(builder);
RegisterHttpFilters(builder);

Loading…
Cancel
Save