grpc 1.64.0 → 1.68.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Makefile +127 -99
- data/include/grpc/compression.h +1 -2
- data/include/grpc/credentials.h +2 -3
- data/include/grpc/event_engine/README.md +1 -1
- data/include/grpc/event_engine/endpoint_config.h +2 -2
- data/include/grpc/event_engine/event_engine.h +33 -12
- data/include/grpc/event_engine/extensible.h +5 -2
- data/include/grpc/event_engine/internal/memory_allocator_impl.h +4 -4
- data/include/grpc/event_engine/internal/slice_cast.h +1 -1
- data/include/grpc/event_engine/memory_allocator.h +3 -4
- data/include/grpc/event_engine/memory_request.h +19 -2
- data/include/grpc/event_engine/slice.h +3 -5
- data/include/grpc/event_engine/slice_buffer.h +6 -8
- data/include/grpc/grpc.h +1 -2
- data/include/grpc/grpc_audit_logging.h +3 -3
- data/include/grpc/grpc_crl_provider.h +5 -5
- data/include/grpc/grpc_posix.h +1 -2
- data/include/grpc/grpc_security.h +1 -2
- data/include/grpc/impl/call.h +2 -2
- data/include/grpc/impl/channel_arg_names.h +8 -4
- data/include/grpc/impl/grpc_types.h +1 -2
- data/include/grpc/impl/slice_type.h +1 -2
- data/include/grpc/module.modulemap +1 -0
- data/include/grpc/passive_listener.h +62 -0
- data/include/grpc/support/alloc.h +1 -2
- data/include/grpc/support/json.h +1 -2
- data/include/grpc/support/log.h +37 -64
- data/include/grpc/support/metrics.h +21 -6
- data/include/grpc/support/port_platform.h +31 -1
- data/include/grpc/support/sync_generic.h +2 -4
- data/include/grpc/support/sync_posix.h +1 -2
- data/include/grpc/support/time.h +1 -2
- data/src/core/channelz/channel_trace.cc +6 -7
- data/src/core/channelz/channel_trace.h +6 -8
- data/src/core/channelz/channelz.cc +8 -10
- data/src/core/channelz/channelz.h +15 -17
- data/src/core/channelz/channelz_registry.cc +10 -11
- data/src/core/channelz/channelz_registry.h +4 -5
- data/src/core/client_channel/backup_poller.cc +24 -15
- data/src/core/client_channel/client_channel.cc +1426 -0
- data/src/core/client_channel/client_channel.h +245 -0
- data/src/core/client_channel/client_channel_factory.cc +2 -2
- data/src/core/client_channel/client_channel_factory.h +1 -2
- data/src/core/client_channel/client_channel_filter.cc +348 -861
- data/src/core/client_channel/client_channel_filter.h +23 -76
- data/src/core/client_channel/client_channel_internal.h +23 -9
- data/src/core/client_channel/client_channel_plugin.cc +2 -17
- data/src/core/client_channel/client_channel_service_config.cc +2 -3
- data/src/core/client_channel/client_channel_service_config.h +6 -8
- data/src/core/client_channel/config_selector.h +21 -22
- data/src/core/client_channel/connector.h +3 -3
- data/src/core/client_channel/direct_channel.cc +83 -0
- data/src/core/client_channel/direct_channel.h +101 -0
- data/src/core/client_channel/dynamic_filters.cc +16 -14
- data/src/core/client_channel/dynamic_filters.h +9 -10
- data/src/core/client_channel/global_subchannel_pool.cc +2 -2
- data/src/core/client_channel/global_subchannel_pool.h +2 -3
- data/src/core/client_channel/lb_metadata.cc +120 -0
- data/src/core/client_channel/lb_metadata.h +55 -0
- data/src/core/client_channel/load_balanced_call_destination.cc +273 -0
- data/src/core/client_channel/load_balanced_call_destination.h +48 -0
- data/src/core/client_channel/local_subchannel_pool.cc +2 -5
- data/src/core/client_channel/local_subchannel_pool.h +1 -1
- data/src/core/client_channel/retry_filter.cc +8 -17
- data/src/core/client_channel/retry_filter.h +6 -15
- data/src/core/client_channel/retry_filter_legacy_call_data.cc +206 -318
- data/src/core/client_channel/retry_filter_legacy_call_data.h +9 -14
- data/src/core/client_channel/retry_service_config.cc +9 -12
- data/src/core/client_channel/retry_service_config.h +5 -7
- data/src/core/client_channel/retry_throttle.cc +3 -4
- data/src/core/client_channel/retry_throttle.h +4 -7
- data/src/core/client_channel/subchannel.cc +282 -164
- data/src/core/client_channel/subchannel.h +48 -40
- data/src/core/client_channel/subchannel_interface_internal.h +1 -1
- data/src/core/client_channel/subchannel_pool_interface.cc +1 -5
- data/src/core/client_channel/subchannel_pool_interface.h +4 -7
- data/src/core/client_channel/subchannel_stream_client.cc +43 -59
- data/src/core/client_channel/subchannel_stream_client.h +10 -14
- data/src/core/ext/filters/backend_metrics/backend_metric_filter.cc +22 -27
- data/src/core/ext/filters/backend_metrics/backend_metric_filter.h +3 -1
- data/src/core/ext/filters/backend_metrics/backend_metric_provider.h +7 -0
- data/src/core/ext/filters/census/grpc_context.cc +7 -10
- data/src/core/ext/filters/channel_idle/idle_filter_state.cc +1 -2
- data/src/core/ext/filters/channel_idle/idle_filter_state.h +0 -1
- data/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.cc +34 -45
- data/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.h +12 -8
- data/src/core/ext/filters/fault_injection/fault_injection_filter.cc +16 -19
- data/src/core/ext/filters/fault_injection/fault_injection_filter.h +4 -3
- data/src/core/ext/filters/fault_injection/fault_injection_service_config_parser.cc +2 -3
- data/src/core/ext/filters/fault_injection/fault_injection_service_config_parser.h +6 -9
- data/src/core/ext/filters/gcp_authentication/gcp_authentication_filter.cc +205 -0
- data/src/core/ext/filters/gcp_authentication/gcp_authentication_filter.h +97 -0
- data/src/core/ext/filters/gcp_authentication/gcp_authentication_service_config_parser.cc +80 -0
- data/src/core/ext/filters/gcp_authentication/gcp_authentication_service_config_parser.h +86 -0
- data/src/core/ext/filters/http/client/http_client_filter.cc +14 -8
- data/src/core/ext/filters/http/client/http_client_filter.h +3 -1
- data/src/core/ext/filters/http/client_authority_filter.cc +8 -7
- data/src/core/ext/filters/http/client_authority_filter.h +3 -1
- data/src/core/ext/filters/http/http_filters_plugin.cc +0 -1
- data/src/core/ext/filters/http/message_compress/compression_filter.cc +48 -44
- data/src/core/ext/filters/http/message_compress/compression_filter.h +8 -4
- data/src/core/ext/filters/http/server/http_server_filter.cc +16 -13
- data/src/core/ext/filters/http/server/http_server_filter.h +3 -1
- data/src/core/ext/filters/message_size/message_size_filter.cc +32 -32
- data/src/core/ext/filters/message_size/message_size_filter.h +11 -9
- data/src/core/ext/filters/rbac/rbac_filter.cc +8 -11
- data/src/core/ext/filters/rbac/rbac_filter.h +3 -2
- data/src/core/ext/filters/rbac/rbac_service_config_parser.cc +16 -10
- data/src/core/ext/filters/rbac/rbac_service_config_parser.h +2 -4
- data/src/core/ext/filters/stateful_session/stateful_session_filter.cc +13 -15
- data/src/core/ext/filters/stateful_session/stateful_session_filter.h +5 -4
- data/src/core/ext/filters/stateful_session/stateful_session_service_config_parser.cc +2 -3
- data/src/core/ext/filters/stateful_session/stateful_session_service_config_parser.h +5 -7
- data/src/core/ext/transport/chttp2/alpn/alpn.cc +2 -4
- data/src/core/ext/transport/chttp2/alpn/alpn.h +1 -2
- data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +71 -101
- data/src/core/ext/transport/chttp2/client/chttp2_connector.h +5 -11
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +426 -314
- data/src/core/ext/transport/chttp2/server/chttp2_server.h +35 -2
- data/src/core/ext/transport/chttp2/transport/bin_decoder.cc +19 -32
- data/src/core/ext/transport/chttp2/transport/bin_decoder.h +2 -3
- data/src/core/ext/transport/chttp2/transport/bin_encoder.cc +1 -4
- data/src/core/ext/transport/chttp2/transport/bin_encoder.h +1 -2
- data/src/core/ext/transport/chttp2/transport/call_tracer_wrapper.cc +53 -0
- data/src/core/ext/transport/chttp2/transport/call_tracer_wrapper.h +72 -0
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +562 -516
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +15 -16
- data/src/core/ext/transport/chttp2/transport/context_list_entry.h +2 -3
- data/src/core/ext/transport/chttp2/transport/decode_huff.h +2 -2
- data/src/core/ext/transport/chttp2/transport/flow_control.cc +6 -11
- data/src/core/ext/transport/chttp2/transport/flow_control.h +2 -7
- data/src/core/ext/transport/chttp2/transport/frame.cc +2 -5
- data/src/core/ext/transport/chttp2/transport/frame.h +2 -3
- data/src/core/ext/transport/chttp2/transport/frame_data.cc +7 -13
- data/src/core/ext/transport/chttp2/transport/frame_data.h +4 -5
- data/src/core/ext/transport/chttp2/transport/frame_goaway.cc +3 -6
- data/src/core/ext/transport/chttp2/transport/frame_goaway.h +1 -2
- data/src/core/ext/transport/chttp2/transport/frame_ping.cc +14 -19
- data/src/core/ext/transport/chttp2/transport/frame_ping.h +1 -2
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc +17 -18
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.h +6 -5
- data/src/core/ext/transport/chttp2/transport/frame_settings.cc +20 -20
- data/src/core/ext/transport/chttp2/transport/frame_settings.h +3 -4
- data/src/core/ext/transport/chttp2/transport/frame_window_update.cc +10 -7
- data/src/core/ext/transport/chttp2/transport/frame_window_update.h +4 -3
- data/src/core/ext/transport/chttp2/transport/hpack_constants.h +2 -2
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +14 -16
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.h +16 -12
- data/src/core/ext/transport/chttp2/transport/hpack_encoder_table.cc +2 -3
- data/src/core/ext/transport/chttp2/transport/hpack_encoder_table.h +1 -2
- data/src/core/ext/transport/chttp2/transport/hpack_parse_result.cc +2 -4
- data/src/core/ext/transport/chttp2/transport/hpack_parse_result.h +4 -7
- data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +56 -51
- data/src/core/ext/transport/chttp2/transport/hpack_parser.h +6 -6
- data/src/core/ext/transport/chttp2/transport/hpack_parser_table.cc +41 -16
- data/src/core/ext/transport/chttp2/transport/hpack_parser_table.h +29 -10
- data/src/core/ext/transport/chttp2/transport/http2_settings.cc +2 -3
- data/src/core/ext/transport/chttp2/transport/http2_settings.h +2 -4
- data/src/core/ext/transport/chttp2/transport/internal.h +46 -79
- data/src/core/ext/transport/chttp2/transport/parsing.cc +101 -109
- data/src/core/ext/transport/chttp2/transport/ping_abuse_policy.cc +3 -3
- data/src/core/ext/transport/chttp2/transport/ping_abuse_policy.h +3 -3
- data/src/core/ext/transport/chttp2/transport/ping_callbacks.cc +2 -5
- data/src/core/ext/transport/chttp2/transport/ping_callbacks.h +3 -7
- data/src/core/ext/transport/chttp2/transport/ping_rate_policy.cc +33 -18
- data/src/core/ext/transport/chttp2/transport/ping_rate_policy.h +7 -8
- data/src/core/ext/transport/chttp2/transport/stream_lists.cc +13 -16
- data/src/core/ext/transport/chttp2/transport/stream_lists.h +65 -0
- data/src/core/ext/transport/chttp2/transport/varint.cc +2 -2
- data/src/core/ext/transport/chttp2/transport/varint.h +1 -3
- data/src/core/ext/transport/chttp2/transport/write_size_policy.cc +2 -3
- data/src/core/ext/transport/chttp2/transport/write_size_policy.h +2 -3
- data/src/core/ext/transport/chttp2/transport/writing.cc +145 -120
- data/src/core/ext/transport/inproc/inproc_transport.cc +149 -67
- data/src/core/ext/transport/inproc/inproc_transport.h +1 -3
- data/src/core/ext/transport/inproc/legacy_inproc_transport.cc +120 -121
- data/src/core/ext/transport/inproc/legacy_inproc_transport.h +0 -2
- data/src/core/ext/upb-gen/envoy/admin/v3/certs.upb.h +43 -12
- data/src/core/ext/upb-gen/envoy/admin/v3/certs.upb_minitable.c +36 -14
- data/src/core/ext/upb-gen/envoy/admin/v3/certs.upb_minitable.h +7 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb.h +56 -24
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb_minitable.c +33 -15
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb_minitable.h +6 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump.upb.h +47 -12
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump.upb_minitable.c +39 -17
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump.upb_minitable.h +7 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump_shared.upb.h +184 -51
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump_shared.upb_minitable.c +143 -65
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump_shared.upb_minitable.h +21 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/init_dump.upb.h +8 -2
- data/src/core/ext/upb-gen/envoy/admin/v3/init_dump.upb_minitable.c +13 -3
- data/src/core/ext/upb-gen/envoy/admin/v3/init_dump.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/listeners.upb.h +16 -3
- data/src/core/ext/upb-gen/envoy/admin/v3/listeners.upb_minitable.c +16 -6
- data/src/core/ext/upb-gen/envoy/admin/v3/listeners.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/memory.upb.h +8 -7
- data/src/core/ext/upb-gen/envoy/admin/v3/memory.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/memory.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/metrics.upb.h +5 -4
- data/src/core/ext/upb-gen/envoy/admin/v3/metrics.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/metrics.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/mutex_stats.upb.h +5 -4
- data/src/core/ext/upb-gen/envoy/admin/v3/mutex_stats.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/mutex_stats.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb.h +126 -79
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb_minitable.c +37 -25
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/tap.upb.h +6 -3
- data/src/core/ext/upb-gen/envoy/admin/v3/tap.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/admin/v3/tap.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/annotations/deprecation.upb.h +6 -5
- data/src/core/ext/upb-gen/envoy/annotations/deprecation.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/envoy/annotations/deprecation.upb_minitable.h +2 -1
- data/src/core/ext/upb-gen/envoy/annotations/resource.upb.h +13 -3
- data/src/core/ext/upb-gen/envoy/annotations/resource.upb_minitable.c +12 -5
- data/src/core/ext/upb-gen/envoy/annotations/resource.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/accesslog/v3/accesslog.upb.h +88 -31
- data/src/core/ext/upb-gen/envoy/config/accesslog/v3/accesslog.upb_minitable.c +103 -37
- data/src/core/ext/upb-gen/envoy/config/accesslog/v3/accesslog.upb_minitable.h +18 -1
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb.h +541 -251
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb_minitable.c +247 -131
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb_minitable.h +26 -1
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb.h +38 -11
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb_minitable.c +28 -14
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb.h +496 -138
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb_minitable.c +247 -122
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb_minitable.h +28 -1
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/filter.upb.h +9 -4
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/filter.upb_minitable.c +10 -4
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/filter.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb.h +168 -24
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb_minitable.c +53 -26
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/common/matcher/v3/matcher.upb.h +124 -32
- data/src/core/ext/upb-gen/envoy/config/common/matcher/v3/matcher.upb_minitable.c +111 -49
- data/src/core/ext/upb-gen/envoy/config/common/matcher/v3/matcher.upb_minitable.h +17 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb.h +64 -24
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb_minitable.c +55 -21
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb_minitable.h +10 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/backoff.upb.h +8 -3
- data/src/core/ext/upb-gen/envoy/config/core/v3/backoff.upb_minitable.c +10 -4
- data/src/core/ext/upb-gen/envoy/config/core/v3/backoff.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb.h +752 -69
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb_minitable.c +304 -59
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb_minitable.h +36 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/config_source.upb.h +64 -22
- data/src/core/ext/upb-gen/envoy/config/core/v3/config_source.upb_minitable.c +52 -22
- data/src/core/ext/upb-gen/envoy/config/core/v3/config_source.upb_minitable.h +9 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/event_service_config.upb.h +5 -2
- data/src/core/ext/upb-gen/envoy/config/core/v3/event_service_config.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/config/core/v3/event_service_config.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/extension.upb.h +6 -3
- data/src/core/ext/upb-gen/envoy/config/core/v3/extension.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/config/core/v3/extension.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_method_list.upb.h +8 -2
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_method_list.upb_minitable.c +13 -3
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_method_list.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_service.upb.h +198 -59
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_service.upb_minitable.c +111 -44
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_service.upb_minitable.h +16 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/health_check.upb.h +193 -59
- data/src/core/ext/upb-gen/envoy/config/core/v3/health_check.upb_minitable.c +90 -48
- data/src/core/ext/upb-gen/envoy/config/core/v3/health_check.upb_minitable.h +11 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb.h +10 -2
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb_minitable.c +10 -4
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_uri.upb.h +7 -4
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_uri.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_uri.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb.h +228 -73
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb_minitable.c +139 -67
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb_minitable.h +18 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb.h +7 -4
- data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb_minitable.c +13 -3
- data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/resolver.upb.h +12 -4
- data/src/core/ext/upb-gen/envoy/config/core/v3/resolver.upb_minitable.c +14 -4
- data/src/core/ext/upb-gen/envoy/config/core/v3/resolver.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb.h +13 -7
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb_minitable.c +13 -3
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/substitution_format_string.upb.h +20 -8
- data/src/core/ext/upb-gen/envoy/config/core/v3/substitution_format_string.upb_minitable.c +16 -6
- data/src/core/ext/upb-gen/envoy/config/core/v3/substitution_format_string.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/udp_socket_config.upb.h +8 -3
- data/src/core/ext/upb-gen/envoy/config/core/v3/udp_socket_config.upb_minitable.c +10 -4
- data/src/core/ext/upb-gen/envoy/config/core/v3/udp_socket_config.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint.upb.h +39 -8
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint.upb_minitable.c +31 -13
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint.upb_minitable.h +6 -1
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb.h +103 -31
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb_minitable.c +62 -30
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb_minitable.h +9 -1
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/load_report.upb.h +278 -34
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/load_report.upb_minitable.c +78 -24
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/load_report.upb_minitable.h +9 -1
- data/src/core/ext/upb-gen/envoy/config/listener/v3/api_listener.upb.h +5 -2
- data/src/core/ext/upb-gen/envoy/config/listener/v3/api_listener.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/config/listener/v3/api_listener.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb.h +139 -44
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.c +85 -42
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.h +12 -1
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener_components.upb.h +88 -26
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener_components.upb_minitable.c +61 -31
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener_components.upb_minitable.h +9 -1
- data/src/core/ext/upb-gen/envoy/config/listener/v3/quic_config.upb.h +90 -10
- data/src/core/ext/upb-gen/envoy/config/listener/v3/quic_config.upb_minitable.c +23 -13
- data/src/core/ext/upb-gen/envoy/config/listener/v3/quic_config.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/listener/v3/udp_listener_config.upb.h +11 -4
- data/src/core/ext/upb-gen/envoy/config/listener/v3/udp_listener_config.upb_minitable.c +15 -5
- data/src/core/ext/upb-gen/envoy/config/listener/v3/udp_listener_config.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/metrics_service.upb.h +11 -6
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/metrics_service.upb_minitable.c +10 -4
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/metrics_service.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb.h +48 -19
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb_minitable.c +52 -18
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb_minitable.h +10 -1
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb.h +65 -18
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb_minitable.c +64 -22
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb_minitable.h +12 -1
- data/src/core/ext/upb-gen/envoy/config/rbac/v3/rbac.upb.h +156 -35
- data/src/core/ext/upb-gen/envoy/config/rbac/v3/rbac.upb_minitable.c +95 -47
- data/src/core/ext/upb-gen/envoy/config/rbac/v3/rbac.upb_minitable.h +13 -1
- data/src/core/ext/upb-gen/envoy/config/route/v3/route.upb.h +58 -10
- data/src/core/ext/upb-gen/envoy/config/route/v3/route.upb_minitable.c +30 -16
- data/src/core/ext/upb-gen/envoy/config/route/v3/route.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb.h +705 -230
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb_minitable.c +454 -217
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb_minitable.h +60 -1
- data/src/core/ext/upb-gen/envoy/config/route/v3/scoped_route.upb.h +17 -7
- data/src/core/ext/upb-gen/envoy/config/route/v3/scoped_route.upb_minitable.c +20 -6
- data/src/core/ext/upb-gen/envoy/config/route/v3/scoped_route.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/envoy/config/tap/v3/common.upb.h +97 -32
- data/src/core/ext/upb-gen/envoy/config/tap/v3/common.upb_minitable.c +86 -36
- data/src/core/ext/upb-gen/envoy/config/tap/v3/common.upb_minitable.h +14 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/datadog.upb.h +115 -13
- data/src/core/ext/upb-gen/envoy/config/trace/v3/datadog.upb_minitable.c +43 -12
- data/src/core/ext/upb-gen/envoy/config/trace/v3/datadog.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/dynamic_ot.upb.h +6 -3
- data/src/core/ext/upb-gen/envoy/config/trace/v3/dynamic_ot.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/config/trace/v3/dynamic_ot.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/http_tracer.upb.h +9 -4
- data/src/core/ext/upb-gen/envoy/config/trace/v3/http_tracer.upb_minitable.c +15 -5
- data/src/core/ext/upb-gen/envoy/config/trace/v3/http_tracer.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/lightstep.upb.h +7 -4
- data/src/core/ext/upb-gen/envoy/config/trace/v3/lightstep.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/config/trace/v3/lightstep.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opencensus.upb.h +19 -12
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opencensus.upb_minitable.c +11 -5
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opencensus.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb.h +17 -5
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb_minitable.c +12 -6
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/service.upb.h +5 -2
- data/src/core/ext/upb-gen/envoy/config/trace/v3/service.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/config/trace/v3/service.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/skywalking.upb.h +14 -7
- data/src/core/ext/upb-gen/envoy/config/trace/v3/skywalking.upb_minitable.c +16 -6
- data/src/core/ext/upb-gen/envoy/config/trace/v3/skywalking.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/trace.upb.h +2 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/trace.upb_minitable.c +3 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/trace.upb_minitable.h +2 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/xray.upb.h +16 -7
- data/src/core/ext/upb-gen/envoy/config/trace/v3/xray.upb_minitable.c +17 -7
- data/src/core/ext/upb-gen/envoy/config/trace/v3/xray.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb.h +11 -8
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb.h +213 -99
- data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb_minitable.c +115 -48
- data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb_minitable.h +18 -1
- data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +2 -1
- data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/extensions/filters/common/fault/v3/fault.upb.h +21 -8
- data/src/core/ext/upb-gen/envoy/extensions/filters/common/fault/v3/fault.upb_minitable.c +31 -9
- data/src/core/ext/upb-gen/envoy/extensions/filters/common/fault/v3/fault.upb_minitable.h +7 -1
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb.h +39 -19
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb_minitable.c +25 -11
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upb.h +444 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upb_minitable.c +135 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upb_minitable.h +38 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +53 -10
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/rbac/v3/rbac.upb_minitable.c +27 -11
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/rbac/v3/rbac.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb.h +26 -9
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb_minitable.c +18 -8
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +10 -5
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb_minitable.c +15 -5
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +324 -131
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.c +189 -102
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.h +23 -1
- data/src/core/ext/upb-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.h +5 -2
- data/src/core/ext/upb-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +20 -7
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb_minitable.c +14 -8
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +28 -11
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.c +35 -13
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.h +7 -1
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.h +3 -2
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.h +19 -8
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb_minitable.c +13 -7
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.h +5 -2
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upb.h +106 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upb_minitable.c +52 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/cert.upb.h +2 -1
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/cert.upb_minitable.c +3 -1
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/cert.upb_minitable.h +2 -1
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb.h +167 -28
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb_minitable.c +78 -32
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb_minitable.h +11 -1
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +22 -9
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb_minitable.c +24 -10
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +109 -36
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls.upb_minitable.c +67 -37
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls.upb_minitable.h +9 -1
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +11 -3
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb_minitable.c +15 -5
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb.h +55 -17
- data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb_minitable.c +40 -22
- data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb_minitable.h +6 -1
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/ads.upb.h +2 -1
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/ads.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/ads.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/discovery.upb.h +119 -37
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/discovery.upb_minitable.c +95 -37
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/discovery.upb_minitable.h +16 -1
- data/src/core/ext/upb-gen/envoy/service/load_stats/v3/lrs.upb.h +15 -5
- data/src/core/ext/upb-gen/envoy/service/load_stats/v3/lrs.upb_minitable.c +16 -6
- data/src/core/ext/upb-gen/envoy/service/load_stats/v3/lrs.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/service/status/v3/csds.upb.h +62 -21
- data/src/core/ext/upb-gen/envoy/service/status/v3/csds.upb_minitable.c +42 -20
- data/src/core/ext/upb-gen/envoy/service/status/v3/csds.upb_minitable.h +7 -1
- data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb.h +7 -4
- data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/type/http/v3/path_transformation.upb.h +13 -3
- data/src/core/ext/upb-gen/envoy/type/http/v3/path_transformation.upb_minitable.c +24 -6
- data/src/core/ext/upb-gen/envoy/type/http/v3/path_transformation.upb_minitable.h +6 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/filter_state.upb.h +6 -3
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/filter_state.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/filter_state.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/http_inputs.upb.h +7 -6
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/http_inputs.upb_minitable.c +23 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/http_inputs.upb_minitable.h +7 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/metadata.upb.h +13 -5
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/metadata.upb_minitable.c +14 -4
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/metadata.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/node.upb.h +10 -2
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/node.upb_minitable.c +10 -4
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/node.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/number.upb.h +6 -3
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/number.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/number.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/path.upb.h +5 -2
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/path.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/path.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/regex.upb.h +13 -6
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/regex.upb_minitable.c +21 -7
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/regex.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb.h +2 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb_minitable.c +11 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/string.upb.h +48 -7
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/string.upb_minitable.c +28 -7
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/string.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/struct.upb.h +11 -3
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/struct.upb_minitable.c +14 -4
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/struct.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/value.upb.h +27 -9
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/value.upb_minitable.c +29 -11
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/value.upb_minitable.h +6 -1
- data/src/core/ext/upb-gen/envoy/type/metadata/v3/metadata.upb.h +21 -7
- data/src/core/ext/upb-gen/envoy/type/metadata/v3/metadata.upb_minitable.c +38 -8
- data/src/core/ext/upb-gen/envoy/type/metadata/v3/metadata.upb_minitable.h +9 -1
- data/src/core/ext/upb-gen/envoy/type/tracing/v3/custom_tag.upb.h +27 -14
- data/src/core/ext/upb-gen/envoy/type/tracing/v3/custom_tag.upb_minitable.c +31 -9
- data/src/core/ext/upb-gen/envoy/type/tracing/v3/custom_tag.upb_minitable.h +7 -1
- data/src/core/ext/upb-gen/envoy/type/v3/hash_policy.upb.h +9 -4
- data/src/core/ext/upb-gen/envoy/type/v3/hash_policy.upb_minitable.c +18 -4
- data/src/core/ext/upb-gen/envoy/type/v3/hash_policy.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/envoy/type/v3/http.upb.h +2 -1
- data/src/core/ext/upb-gen/envoy/type/v3/http.upb_minitable.c +3 -1
- data/src/core/ext/upb-gen/envoy/type/v3/http.upb_minitable.h +2 -1
- data/src/core/ext/upb-gen/envoy/type/v3/http_status.upb.h +3 -2
- data/src/core/ext/upb-gen/envoy/type/v3/http_status.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/envoy/type/v3/http_status.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/type/v3/percent.upb.h +5 -4
- data/src/core/ext/upb-gen/envoy/type/v3/percent.upb_minitable.c +11 -1
- data/src/core/ext/upb-gen/envoy/type/v3/percent.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/type/v3/range.upb.h +8 -7
- data/src/core/ext/upb-gen/envoy/type/v3/range.upb_minitable.c +15 -1
- data/src/core/ext/upb-gen/envoy/type/v3/range.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_strategy.upb.h +11 -6
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_strategy.upb_minitable.c +14 -4
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_strategy.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_unit.upb.h +2 -1
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_unit.upb_minitable.c +3 -1
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_unit.upb_minitable.h +2 -1
- data/src/core/ext/upb-gen/envoy/type/v3/semantic_version.upb.h +5 -4
- data/src/core/ext/upb-gen/envoy/type/v3/semantic_version.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/envoy/type/v3/semantic_version.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/type/v3/token_bucket.upb.h +9 -4
- data/src/core/ext/upb-gen/envoy/type/v3/token_bucket.upb_minitable.c +10 -4
- data/src/core/ext/upb-gen/envoy/type/v3/token_bucket.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/google/api/annotations.upb.h +12 -2
- data/src/core/ext/upb-gen/google/api/annotations.upb_minitable.c +4 -1
- data/src/core/ext/upb-gen/google/api/annotations.upb_minitable.h +2 -1
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/checked.upb.h +132 -33
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/checked.upb_minitable.c +108 -43
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/checked.upb_minitable.h +15 -1
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/syntax.upb.h +522 -66
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/syntax.upb_minitable.c +191 -57
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/syntax.upb_minitable.h +20 -1
- data/src/core/ext/upb-gen/google/api/http.upb.h +26 -13
- data/src/core/ext/upb-gen/google/api/http.upb_minitable.c +20 -6
- data/src/core/ext/upb-gen/google/api/http.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/google/api/httpbody.upb.h +9 -3
- data/src/core/ext/upb-gen/google/api/httpbody.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/google/api/httpbody.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/google/protobuf/any.upb.h +4 -3
- data/src/core/ext/upb-gen/google/protobuf/any.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/google/protobuf/any.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/google/protobuf/descriptor.upb.h +579 -178
- data/src/core/ext/upb-gen/google/protobuf/descriptor.upb_minitable.c +292 -131
- data/src/core/ext/upb-gen/google/protobuf/descriptor.upb_minitable.h +36 -1
- data/src/core/ext/upb-gen/google/protobuf/duration.upb.h +4 -3
- data/src/core/ext/upb-gen/google/protobuf/duration.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/google/protobuf/duration.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/google/protobuf/empty.upb.h +2 -1
- data/src/core/ext/upb-gen/google/protobuf/empty.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/google/protobuf/empty.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/google/protobuf/struct.upb.h +29 -7
- data/src/core/ext/upb-gen/google/protobuf/struct.upb_minitable.c +28 -10
- data/src/core/ext/upb-gen/google/protobuf/struct.upb_minitable.h +6 -1
- data/src/core/ext/upb-gen/google/protobuf/timestamp.upb.h +4 -3
- data/src/core/ext/upb-gen/google/protobuf/timestamp.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/google/protobuf/timestamp.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/google/protobuf/wrappers.upb.h +11 -10
- data/src/core/ext/upb-gen/google/protobuf/wrappers.upb_minitable.c +39 -1
- data/src/core/ext/upb-gen/google/protobuf/wrappers.upb_minitable.h +11 -1
- data/src/core/ext/upb-gen/google/rpc/status.upb.h +9 -3
- data/src/core/ext/upb-gen/google/rpc/status.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/google/rpc/status.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/opencensus/proto/trace/v1/trace_config.upb.h +18 -11
- data/src/core/ext/upb-gen/opencensus/proto/trace/v1/trace_config.upb_minitable.c +23 -5
- data/src/core/ext/upb-gen/opencensus/proto/trace/v1/trace_config.upb_minitable.h +6 -1
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/altscontext.upb.h +16 -7
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/altscontext.upb_minitable.c +14 -4
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/altscontext.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/handshaker.upb.h +95 -36
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/handshaker.upb_minitable.c +79 -29
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/handshaker.upb_minitable.h +14 -1
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/transport_security_common.upb.h +10 -5
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/transport_security_common.upb_minitable.c +14 -4
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/transport_security_common.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/src/proto/grpc/health/v1/health.upb.h +4 -3
- data/src/core/ext/upb-gen/src/proto/grpc/health/v1/health.upb_minitable.c +11 -1
- data/src/core/ext/upb-gen/src/proto/grpc/health/v1/health.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/src/proto/grpc/lb/v1/load_balancer.upb.h +44 -19
- data/src/core/ext/upb-gen/src/proto/grpc/lb/v1/load_balancer.upb_minitable.c +53 -15
- data/src/core/ext/upb-gen/src/proto/grpc/lb/v1/load_balancer.upb_minitable.h +11 -1
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls.upb.h +12 -5
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls.upb_minitable.c +17 -3
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls_config.upb.h +69 -16
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls_config.upb_minitable.c +56 -18
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls_config.upb_minitable.h +11 -1
- data/src/core/ext/upb-gen/udpa/annotations/migrate.upb.h +56 -10
- data/src/core/ext/upb-gen/udpa/annotations/migrate.upb_minitable.c +26 -7
- data/src/core/ext/upb-gen/udpa/annotations/migrate.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/udpa/annotations/security.upb.h +14 -4
- data/src/core/ext/upb-gen/udpa/annotations/security.upb_minitable.c +12 -5
- data/src/core/ext/upb-gen/udpa/annotations/security.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/udpa/annotations/sensitive.upb.h +3 -2
- data/src/core/ext/upb-gen/udpa/annotations/sensitive.upb_minitable.c +4 -1
- data/src/core/ext/upb-gen/udpa/annotations/sensitive.upb_minitable.h +2 -1
- data/src/core/ext/upb-gen/udpa/annotations/status.upb.h +14 -4
- data/src/core/ext/upb-gen/udpa/annotations/status.upb_minitable.c +12 -5
- data/src/core/ext/upb-gen/udpa/annotations/status.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/udpa/annotations/versioning.upb.h +13 -3
- data/src/core/ext/upb-gen/udpa/annotations/versioning.upb_minitable.c +12 -5
- data/src/core/ext/upb-gen/udpa/annotations/versioning.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/validate/validate.upb.h +259 -167
- data/src/core/ext/upb-gen/validate/validate.upb_minitable.c +178 -80
- data/src/core/ext/upb-gen/validate/validate.upb_minitable.h +25 -1
- data/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb.h +56 -10
- data/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb_minitable.c +26 -7
- data/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/xds/annotations/v3/security.upb.h +14 -4
- data/src/core/ext/upb-gen/xds/annotations/v3/security.upb_minitable.c +12 -5
- data/src/core/ext/upb-gen/xds/annotations/v3/security.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb.h +3 -2
- data/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb_minitable.c +4 -1
- data/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb_minitable.h +2 -1
- data/src/core/ext/upb-gen/xds/annotations/v3/status.upb.h +37 -9
- data/src/core/ext/upb-gen/xds/annotations/v3/status.upb_minitable.c +29 -8
- data/src/core/ext/upb-gen/xds/annotations/v3/status.upb_minitable.h +6 -1
- data/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb.h +13 -3
- data/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb_minitable.c +12 -5
- data/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/xds/core/v3/authority.upb.h +3 -2
- data/src/core/ext/upb-gen/xds/core/v3/authority.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/xds/core/v3/authority.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/xds/core/v3/cidr.upb.h +6 -3
- data/src/core/ext/upb-gen/xds/core/v3/cidr.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/xds/core/v3/cidr.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/xds/core/v3/collection_entry.upb.h +13 -6
- data/src/core/ext/upb-gen/xds/core/v3/collection_entry.upb_minitable.c +16 -6
- data/src/core/ext/upb-gen/xds/core/v3/collection_entry.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/xds/core/v3/context_params.upb.h +8 -1
- data/src/core/ext/upb-gen/xds/core/v3/context_params.upb_minitable.c +13 -3
- data/src/core/ext/upb-gen/xds/core/v3/context_params.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/xds/core/v3/extension.upb.h +6 -3
- data/src/core/ext/upb-gen/xds/core/v3/extension.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/xds/core/v3/extension.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/xds/core/v3/resource.upb.h +9 -4
- data/src/core/ext/upb-gen/xds/core/v3/resource.upb_minitable.c +10 -4
- data/src/core/ext/upb-gen/xds/core/v3/resource.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/xds/core/v3/resource_locator.upb.h +18 -8
- data/src/core/ext/upb-gen/xds/core/v3/resource_locator.upb_minitable.c +16 -6
- data/src/core/ext/upb-gen/xds/core/v3/resource_locator.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/xds/core/v3/resource_name.upb.h +8 -5
- data/src/core/ext/upb-gen/xds/core/v3/resource_name.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/xds/core/v3/resource_name.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/xds/data/orca/v3/orca_load_report.upb.h +26 -7
- data/src/core/ext/upb-gen/xds/data/orca/v3/orca_load_report.upb_minitable.c +23 -5
- data/src/core/ext/upb-gen/xds/data/orca/v3/orca_load_report.upb_minitable.h +6 -1
- data/src/core/ext/upb-gen/xds/service/orca/v3/orca.upb.h +5 -2
- data/src/core/ext/upb-gen/xds/service/orca/v3/orca.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/xds/service/orca/v3/orca.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb.h +6 -3
- data/src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/domain.upb.h +10 -2
- data/src/core/ext/upb-gen/xds/type/matcher/v3/domain.upb_minitable.c +15 -5
- data/src/core/ext/upb-gen/xds/type/matcher/v3/domain.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/http_inputs.upb.h +2 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/http_inputs.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/http_inputs.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/ip.upb.h +16 -3
- data/src/core/ext/upb-gen/xds/type/matcher/v3/ip.upb_minitable.c +16 -6
- data/src/core/ext/upb-gen/xds/type/matcher/v3/ip.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/matcher.upb.h +78 -19
- data/src/core/ext/upb-gen/xds/type/matcher/v3/matcher.upb_minitable.c +75 -33
- data/src/core/ext/upb-gen/xds/type/matcher/v3/matcher.upb_minitable.h +12 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/range.upb.h +41 -4
- data/src/core/ext/upb-gen/xds/type/matcher/v3/range.upb_minitable.c +42 -16
- data/src/core/ext/upb-gen/xds/type/matcher/v3/range.upb_minitable.h +8 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/regex.upb.h +6 -3
- data/src/core/ext/upb-gen/xds/type/matcher/v3/regex.upb_minitable.c +13 -3
- data/src/core/ext/upb-gen/xds/type/matcher/v3/regex.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/string.upb.h +15 -7
- data/src/core/ext/upb-gen/xds/type/matcher/v3/string.upb_minitable.c +15 -5
- data/src/core/ext/upb-gen/xds/type/matcher/v3/string.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/xds/type/v3/cel.upb.h +14 -5
- data/src/core/ext/upb-gen/xds/type/v3/cel.upb_minitable.c +17 -7
- data/src/core/ext/upb-gen/xds/type/v3/cel.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/xds/type/v3/range.upb.h +8 -7
- data/src/core/ext/upb-gen/xds/type/v3/range.upb_minitable.c +15 -1
- data/src/core/ext/upb-gen/xds/type/v3/range.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/xds/type/v3/typed_struct.upb.h +6 -3
- data/src/core/ext/upb-gen/xds/type/v3/typed_struct.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/xds/type/v3/typed_struct.upb_minitable.h +3 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/certs.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/certs.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/clusters.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/clusters.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump_shared.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump_shared.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/init_dump.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/init_dump.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/listeners.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/listeners.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/memory.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/memory.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/metrics.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/metrics.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/mutex_stats.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/mutex_stats.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/server_info.upbdefs.c +88 -82
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/server_info.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/tap.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/tap.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/annotations/deprecation.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/annotations/deprecation.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/annotations/resource.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/annotations/resource.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/accesslog/v3/accesslog.upbdefs.c +63 -61
- data/src/core/ext/upbdefs-gen/envoy/config/accesslog/v3/accesslog.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +223 -211
- data/src/core/ext/upbdefs-gen/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +7 -1
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/circuit_breaker.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/circuit_breaker.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/cluster.upbdefs.c +319 -298
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/cluster.upbdefs.h +7 -1
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/filter.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/filter.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/outlier_detection.upbdefs.c +116 -106
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/outlier_detection.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/common/matcher/v3/matcher.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/common/matcher/v3/matcher.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/address.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/address.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/backoff.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/backoff.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/base.upbdefs.c +187 -141
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/base.upbdefs.h +27 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/config_source.upbdefs.c +12 -12
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/config_source.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/event_service_config.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/event_service_config.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/extension.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/extension.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_method_list.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_method_list.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_service.upbdefs.c +175 -165
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_service.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/health_check.upbdefs.c +199 -188
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/health_check.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_service.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_service.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_uri.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_uri.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/protocol.upbdefs.c +231 -223
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/protocol.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/proxy_protocol.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/proxy_protocol.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/resolver.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/resolver.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/socket_option.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/socket_option.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/substitution_format_string.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/substitution_format_string.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/udp_socket_config.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/udp_socket_config.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint_components.upbdefs.c +41 -37
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint_components.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/load_report.upbdefs.c +124 -94
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/load_report.upbdefs.h +7 -1
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/api_listener.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/api_listener.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.c +43 -40
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener_components.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener_components.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/quic_config.upbdefs.c +22 -13
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/quic_config.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/udp_listener_config.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/udp_listener_config.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/metrics_service.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/metrics_service.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/stats.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/stats.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/overload/v3/overload.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/overload/v3/overload.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/rbac/v3/rbac.upbdefs.c +71 -66
- data/src/core/ext/upbdefs-gen/envoy/config/rbac/v3/rbac.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route_components.upbdefs.c +613 -605
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route_components.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/scoped_route.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/scoped_route.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/tap/v3/common.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/tap/v3/common.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/datadog.upbdefs.c +32 -21
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/datadog.upbdefs.h +7 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/dynamic_ot.upbdefs.c +20 -18
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/dynamic_ot.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/http_tracer.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/http_tracer.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/lightstep.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/lightstep.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opencensus.upbdefs.c +64 -60
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opencensus.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opentelemetry.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opentelemetry.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/service.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/service.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/skywalking.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/skywalking.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/trace.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/trace.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/xray.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/xray.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/zipkin.upbdefs.c +23 -21
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/zipkin.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/data/accesslog/v3/accesslog.upbdefs.c +147 -143
- data/src/core/ext/upbdefs-gen/envoy/data/accesslog/v3/accesslog.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/common/fault/v3/fault.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/common/fault/v3/fault.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/fault/v3/fault.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upbdefs.c +87 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upbdefs.h +48 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.c +38 -34
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/router/v3/router.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/router/v3/router.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +292 -289
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upbdefs.h +33 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +84 -76
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.h +7 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/ads.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/ads.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/discovery.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/discovery.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/service/load_stats/v3/lrs.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/service/load_stats/v3/lrs.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/service/status/v3/csds.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/service/status/v3/csds.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/cookie.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/cookie.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/path_transformation.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/path_transformation.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/filter_state.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/filter_state.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/http_inputs.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/http_inputs.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/metadata.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/metadata.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/node.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/node.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/number.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/number.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/path.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/path.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/regex.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/regex.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/status_code_input.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/status_code_input.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/string.upbdefs.c +41 -34
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/string.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/struct.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/struct.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/value.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/value.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/metadata/v3/metadata.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/metadata/v3/metadata.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/tracing/v3/custom_tag.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/tracing/v3/custom_tag.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/hash_policy.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/hash_policy.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/http.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/http.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/http_status.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/http_status.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/percent.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/percent.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/range.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/range.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_strategy.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_strategy.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_unit.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_unit.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/semantic_version.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/semantic_version.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/token_bucket.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/token_bucket.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/google/api/annotations.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/google/api/annotations.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/checked.upbdefs.c +110 -108
- data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/checked.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/syntax.upbdefs.c +103 -79
- data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/syntax.upbdefs.h +12 -1
- data/src/core/ext/upbdefs-gen/google/api/http.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/google/api/http.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/google/api/httpbody.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/google/api/httpbody.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/any.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/any.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/descriptor.upbdefs.c +283 -257
- data/src/core/ext/upbdefs-gen/google/protobuf/descriptor.upbdefs.h +7 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/duration.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/duration.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/empty.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/empty.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/struct.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/struct.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/timestamp.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/timestamp.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/wrappers.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/wrappers.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/google/rpc/status.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/google/rpc/status.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/opencensus/proto/trace/v1/trace_config.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/opencensus/proto/trace/v1/trace_config.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/src/proto/grpc/lookup/v1/rls_config.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/src/proto/grpc/lookup/v1/rls_config.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/udpa/annotations/migrate.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/udpa/annotations/migrate.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/udpa/annotations/security.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/udpa/annotations/security.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/udpa/annotations/sensitive.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/udpa/annotations/sensitive.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/udpa/annotations/status.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/udpa/annotations/status.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/udpa/annotations/versioning.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/udpa/annotations/versioning.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/validate/validate.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/validate/validate.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/migrate.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/migrate.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/security.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/security.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/sensitive.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/sensitive.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/status.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/status.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/versioning.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/versioning.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/authority.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/authority.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/cidr.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/cidr.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/collection_entry.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/collection_entry.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/context_params.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/context_params.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/extension.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/extension.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource_locator.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource_locator.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource_name.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource_name.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/cel.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/cel.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/domain.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/domain.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/http_inputs.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/http_inputs.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/ip.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/ip.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/matcher.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/matcher.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/range.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/range.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/regex.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/regex.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/string.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/string.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.h +2 -1
- data/src/core/filter/blackboard.cc +33 -0
- data/src/core/filter/blackboard.h +70 -0
- data/src/core/handshaker/endpoint_info/endpoint_info_handshaker.cc +13 -12
- data/src/core/handshaker/handshaker.cc +127 -159
- data/src/core/handshaker/handshaker.h +58 -52
- data/src/core/handshaker/handshaker_registry.cc +1 -2
- data/src/core/handshaker/handshaker_registry.h +2 -2
- data/src/core/handshaker/http_connect/http_connect_handshaker.cc +113 -159
- data/src/core/handshaker/http_connect/http_proxy_mapper.cc +30 -37
- data/src/core/handshaker/http_connect/http_proxy_mapper.h +2 -3
- data/src/core/handshaker/http_connect/xds_http_proxy_mapper.cc +57 -0
- data/src/core/handshaker/http_connect/xds_http_proxy_mapper.h +46 -0
- data/src/core/handshaker/proxy_mapper.h +2 -3
- data/src/core/handshaker/proxy_mapper_registry.cc +2 -2
- data/src/core/handshaker/proxy_mapper_registry.h +2 -3
- data/src/core/handshaker/security/secure_endpoint.cc +95 -82
- data/src/core/handshaker/security/secure_endpoint.h +6 -7
- data/src/core/handshaker/security/security_handshaker.cc +166 -220
- data/src/core/handshaker/security/security_handshaker.h +2 -3
- data/src/core/handshaker/tcp_connect/tcp_connect_handshaker.cc +47 -61
- data/src/core/lib/address_utils/parse_address.cc +30 -43
- data/src/core/lib/address_utils/parse_address.h +2 -4
- data/src/core/lib/address_utils/sockaddr_utils.cc +9 -12
- data/src/core/lib/address_utils/sockaddr_utils.h +1 -3
- data/src/core/lib/channel/call_finalization.h +2 -2
- data/src/core/lib/channel/channel_args.cc +17 -23
- data/src/core/lib/channel/channel_args.h +34 -20
- data/src/core/lib/channel/channel_args_preconditioning.cc +2 -2
- data/src/core/lib/channel/channel_args_preconditioning.h +3 -3
- data/src/core/lib/channel/channel_stack.cc +13 -76
- data/src/core/lib/channel/channel_stack.h +26 -61
- data/src/core/lib/channel/channel_stack_builder.cc +2 -2
- data/src/core/lib/channel/channel_stack_builder.h +3 -9
- data/src/core/lib/channel/channel_stack_builder_impl.cc +5 -150
- data/src/core/lib/channel/channel_stack_builder_impl.h +14 -4
- data/src/core/lib/channel/connected_channel.cc +46 -688
- data/src/core/lib/channel/promise_based_filter.cc +180 -250
- data/src/core/lib/channel/promise_based_filter.h +173 -509
- data/src/core/lib/channel/status_util.cc +2 -4
- data/src/core/lib/channel/status_util.h +3 -3
- data/src/core/lib/compression/compression.cc +7 -9
- data/src/core/lib/compression/compression_internal.cc +5 -8
- data/src/core/lib/compression/compression_internal.h +3 -5
- data/src/core/lib/compression/message_compress.cc +9 -12
- data/src/core/lib/config/config_vars.cc +15 -18
- data/src/core/lib/config/config_vars.h +10 -13
- data/src/core/lib/config/config_vars_non_generated.cc +2 -2
- data/src/core/lib/config/core_configuration.cc +2 -3
- data/src/core/lib/config/core_configuration.h +2 -4
- data/src/core/lib/config/load_config.cc +2 -4
- data/src/core/lib/config/load_config.h +1 -2
- data/src/core/lib/debug/trace.cc +47 -65
- data/src/core/lib/debug/trace.h +2 -97
- data/src/core/lib/debug/trace_flags.cc +242 -0
- data/src/core/lib/debug/trace_flags.h +131 -0
- data/src/core/lib/debug/trace_impl.h +125 -0
- data/src/core/lib/event_engine/ares_resolver.cc +151 -75
- data/src/core/lib/event_engine/ares_resolver.h +13 -20
- data/src/core/lib/event_engine/cf_engine/cf_engine.cc +13 -16
- data/src/core/lib/event_engine/cf_engine/cf_engine.h +1 -1
- data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc +44 -31
- data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.h +4 -6
- data/src/core/lib/event_engine/cf_engine/cftype_unique_ref.h +1 -1
- data/src/core/lib/event_engine/cf_engine/dns_service_resolver.cc +19 -26
- data/src/core/lib/event_engine/cf_engine/dns_service_resolver.h +3 -5
- data/src/core/lib/event_engine/channel_args_endpoint_config.cc +3 -4
- data/src/core/lib/event_engine/channel_args_endpoint_config.h +2 -3
- data/src/core/lib/event_engine/common_closures.h +3 -3
- data/src/core/lib/event_engine/default_event_engine.cc +12 -14
- data/src/core/lib/event_engine/default_event_engine.h +3 -3
- data/src/core/lib/event_engine/default_event_engine_factory.cc +2 -2
- data/src/core/lib/event_engine/default_event_engine_factory.h +2 -2
- data/src/core/lib/event_engine/event_engine.cc +35 -4
- data/src/core/lib/event_engine/event_engine_context.h +4 -2
- data/src/core/lib/event_engine/extensions/can_track_errors.h +2 -2
- data/src/core/lib/event_engine/extensions/chaotic_good_extension.h +1 -2
- data/src/core/lib/event_engine/extensions/supports_fd.h +27 -3
- data/src/core/lib/event_engine/extensions/tcp_trace.h +42 -0
- data/src/core/lib/event_engine/forkable.cc +6 -8
- data/src/core/lib/event_engine/forkable.h +2 -14
- data/src/core/lib/event_engine/grpc_polled_fd.h +3 -4
- data/src/core/lib/event_engine/handle_containers.h +2 -3
- data/src/core/lib/event_engine/memory_allocator_factory.h +3 -4
- data/src/core/lib/event_engine/poller.h +2 -2
- data/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.cc +21 -23
- data/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.h +8 -9
- data/src/core/lib/event_engine/posix_engine/ev_poll_posix.cc +13 -17
- data/src/core/lib/event_engine/posix_engine/ev_poll_posix.h +4 -5
- data/src/core/lib/event_engine/posix_engine/event_poller.h +3 -4
- data/src/core/lib/event_engine/posix_engine/event_poller_posix_default.cc +3 -4
- data/src/core/lib/event_engine/posix_engine/event_poller_posix_default.h +2 -2
- data/src/core/lib/event_engine/posix_engine/grpc_polled_fd_posix.h +4 -6
- data/src/core/lib/event_engine/posix_engine/internal_errqueue.cc +4 -4
- data/src/core/lib/event_engine/posix_engine/internal_errqueue.h +1 -2
- data/src/core/lib/event_engine/posix_engine/lockfree_event.cc +5 -7
- data/src/core/lib/event_engine/posix_engine/lockfree_event.h +2 -3
- data/src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.cc +3 -4
- data/src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.h +2 -3
- data/src/core/lib/event_engine/posix_engine/posix_endpoint.cc +73 -79
- data/src/core/lib/event_engine/posix_engine/posix_endpoint.h +11 -12
- data/src/core/lib/event_engine/posix_engine/posix_engine.cc +74 -55
- data/src/core/lib/event_engine/posix_engine/posix_engine.h +18 -14
- data/src/core/lib/event_engine/posix_engine/posix_engine_closure.h +3 -3
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener.cc +23 -27
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener.h +14 -13
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.cc +22 -28
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.h +1 -2
- data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.cc +44 -38
- data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.h +10 -10
- data/src/core/lib/event_engine/posix_engine/timer.cc +5 -5
- data/src/core/lib/event_engine/posix_engine/timer.h +5 -7
- data/src/core/lib/event_engine/posix_engine/timer_heap.cc +1 -2
- data/src/core/lib/event_engine/posix_engine/timer_heap.h +2 -2
- data/src/core/lib/event_engine/posix_engine/timer_manager.cc +12 -21
- data/src/core/lib/event_engine/posix_engine/timer_manager.h +5 -7
- data/src/core/lib/event_engine/posix_engine/traced_buffer_list.cc +6 -8
- data/src/core/lib/event_engine/posix_engine/traced_buffer_list.h +3 -5
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_eventfd.cc +5 -6
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_eventfd.h +2 -3
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_pipe.cc +4 -5
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_pipe.h +2 -3
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_posix.h +2 -2
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_posix_default.cc +2 -3
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_posix_default.h +2 -2
- data/src/core/lib/event_engine/query_extensions.h +2 -2
- data/src/core/lib/event_engine/ref_counted_dns_resolver_interface.h +3 -5
- data/src/core/lib/event_engine/resolved_address.cc +5 -5
- data/src/core/lib/event_engine/shim.cc +1 -1
- data/src/core/lib/event_engine/slice.cc +3 -6
- data/src/core/lib/event_engine/slice_buffer.cc +1 -2
- data/src/core/lib/event_engine/tcp_socket_utils.cc +9 -12
- data/src/core/lib/event_engine/tcp_socket_utils.h +3 -3
- data/src/core/lib/event_engine/thread_local.h +1 -1
- data/src/core/lib/event_engine/thread_pool/thread_count.cc +5 -7
- data/src/core/lib/event_engine/thread_pool/thread_count.h +6 -7
- data/src/core/lib/event_engine/thread_pool/thread_pool.h +2 -4
- data/src/core/lib/event_engine/thread_pool/thread_pool_factory.cc +2 -3
- data/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.cc +39 -46
- data/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.h +10 -15
- data/src/core/lib/event_engine/thready_event_engine/thready_event_engine.cc +50 -23
- data/src/core/lib/event_engine/thready_event_engine/thready_event_engine.h +9 -8
- data/src/core/lib/event_engine/time_util.cc +2 -2
- data/src/core/lib/event_engine/time_util.h +1 -2
- data/src/core/lib/event_engine/utils.cc +19 -5
- data/src/core/lib/event_engine/utils.h +10 -4
- data/src/core/lib/event_engine/windows/grpc_polled_fd_windows.cc +125 -100
- data/src/core/lib/event_engine/windows/grpc_polled_fd_windows.h +4 -6
- data/src/core/lib/event_engine/windows/iocp.cc +14 -14
- data/src/core/lib/event_engine/windows/iocp.h +2 -3
- data/src/core/lib/event_engine/windows/native_windows_dns_resolver.cc +4 -6
- data/src/core/lib/event_engine/windows/win_socket.cc +42 -33
- data/src/core/lib/event_engine/windows/win_socket.h +8 -10
- data/src/core/lib/event_engine/windows/windows_endpoint.cc +26 -27
- data/src/core/lib/event_engine/windows/windows_engine.cc +242 -134
- data/src/core/lib/event_engine/windows/windows_engine.h +143 -33
- data/src/core/lib/event_engine/windows/windows_listener.cc +22 -37
- data/src/core/lib/event_engine/windows/windows_listener.h +4 -5
- data/src/core/lib/event_engine/work_queue/basic_work_queue.cc +3 -3
- data/src/core/lib/event_engine/work_queue/basic_work_queue.h +3 -5
- data/src/core/lib/event_engine/work_queue/work_queue.h +2 -3
- data/src/core/lib/experiments/config.cc +54 -27
- data/src/core/lib/experiments/config.h +56 -3
- data/src/core/lib/experiments/experiments.cc +159 -293
- data/src/core/lib/experiments/experiments.h +84 -124
- data/src/core/lib/iomgr/buffer_list.cc +5 -5
- data/src/core/lib/iomgr/buffer_list.h +2 -3
- data/src/core/lib/iomgr/call_combiner.cc +39 -66
- data/src/core/lib/iomgr/call_combiner.h +12 -16
- data/src/core/lib/iomgr/cfstream_handle.cc +14 -20
- data/src/core/lib/iomgr/cfstream_handle.h +1 -1
- data/src/core/lib/iomgr/closure.cc +2 -2
- data/src/core/lib/iomgr/closure.h +12 -19
- data/src/core/lib/iomgr/combiner.cc +33 -48
- data/src/core/lib/iomgr/combiner.h +1 -4
- data/src/core/lib/iomgr/endpoint.cc +0 -6
- data/src/core/lib/iomgr/endpoint.h +3 -4
- data/src/core/lib/iomgr/endpoint_cfstream.cc +40 -73
- data/src/core/lib/iomgr/endpoint_pair_posix.cc +3 -6
- data/src/core/lib/iomgr/endpoint_pair_windows.cc +6 -8
- data/src/core/lib/iomgr/error.cc +22 -32
- data/src/core/lib/iomgr/error.h +7 -10
- data/src/core/lib/iomgr/error_cfstream.cc +1 -3
- data/src/core/lib/iomgr/ev_apple.cc +15 -23
- data/src/core/lib/iomgr/ev_epoll1_linux.cc +67 -113
- data/src/core/lib/iomgr/ev_poll_posix.cc +53 -53
- data/src/core/lib/iomgr/ev_posix.cc +66 -57
- data/src/core/lib/iomgr/ev_posix.h +9 -12
- data/src/core/lib/iomgr/event_engine_shims/closure.cc +10 -13
- data/src/core/lib/iomgr/event_engine_shims/closure.h +1 -2
- data/src/core/lib/iomgr/event_engine_shims/endpoint.cc +33 -51
- data/src/core/lib/iomgr/event_engine_shims/endpoint.h +2 -2
- data/src/core/lib/iomgr/event_engine_shims/tcp_client.cc +9 -13
- data/src/core/lib/iomgr/exec_ctx.cc +10 -14
- data/src/core/lib/iomgr/exec_ctx.h +33 -25
- data/src/core/lib/iomgr/executor.cc +55 -53
- data/src/core/lib/iomgr/executor.h +2 -2
- data/src/core/lib/iomgr/fork_posix.cc +11 -15
- data/src/core/lib/iomgr/fork_windows.cc +3 -2
- data/src/core/lib/iomgr/internal_errqueue.cc +4 -4
- data/src/core/lib/iomgr/iocp_windows.cc +8 -10
- data/src/core/lib/iomgr/iomgr.cc +17 -23
- data/src/core/lib/iomgr/iomgr.h +1 -2
- data/src/core/lib/iomgr/iomgr_internal.cc +1 -2
- data/src/core/lib/iomgr/iomgr_internal.h +1 -2
- data/src/core/lib/iomgr/iomgr_windows.cc +1 -4
- data/src/core/lib/iomgr/lockfree_event.cc +10 -20
- data/src/core/lib/iomgr/polling_entity.cc +13 -7
- data/src/core/lib/iomgr/pollset.h +0 -2
- data/src/core/lib/iomgr/pollset_set_windows.cc +1 -2
- data/src/core/lib/iomgr/pollset_windows.cc +2 -6
- data/src/core/lib/iomgr/port.h +2 -2
- data/src/core/lib/iomgr/resolve_address.cc +3 -5
- data/src/core/lib/iomgr/resolve_address.h +4 -6
- data/src/core/lib/iomgr/resolve_address_impl.h +1 -2
- data/src/core/lib/iomgr/resolve_address_posix.cc +12 -21
- data/src/core/lib/iomgr/resolve_address_posix.h +2 -2
- data/src/core/lib/iomgr/resolve_address_windows.cc +9 -12
- data/src/core/lib/iomgr/resolve_address_windows.h +2 -2
- data/src/core/lib/iomgr/resolved_address.h +1 -2
- data/src/core/lib/iomgr/sockaddr_utils_posix.cc +3 -6
- data/src/core/lib/iomgr/socket_factory_posix.cc +1 -1
- data/src/core/lib/iomgr/socket_mutator.cc +2 -3
- data/src/core/lib/iomgr/socket_mutator.h +1 -2
- data/src/core/lib/iomgr/socket_utils.h +1 -2
- data/src/core/lib/iomgr/socket_utils_common_posix.cc +43 -52
- data/src/core/lib/iomgr/socket_utils_linux.cc +1 -3
- data/src/core/lib/iomgr/socket_utils_posix.cc +4 -7
- data/src/core/lib/iomgr/socket_utils_windows.cc +1 -3
- data/src/core/lib/iomgr/socket_windows.cc +7 -11
- data/src/core/lib/iomgr/socket_windows.h +1 -2
- data/src/core/lib/iomgr/tcp_client_cfstream.cc +12 -20
- data/src/core/lib/iomgr/tcp_client_posix.cc +17 -30
- data/src/core/lib/iomgr/tcp_client_windows.cc +5 -10
- data/src/core/lib/iomgr/tcp_posix.cc +85 -155
- data/src/core/lib/iomgr/tcp_posix.h +0 -2
- data/src/core/lib/iomgr/tcp_server.h +2 -2
- data/src/core/lib/iomgr/tcp_server_posix.cc +40 -58
- data/src/core/lib/iomgr/tcp_server_utils_posix.h +2 -3
- data/src/core/lib/iomgr/tcp_server_utils_posix_common.cc +7 -11
- data/src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc +9 -11
- data/src/core/lib/iomgr/tcp_server_windows.cc +17 -25
- data/src/core/lib/iomgr/tcp_windows.cc +32 -62
- data/src/core/lib/iomgr/timer.h +2 -2
- data/src/core/lib/iomgr/timer_generic.cc +71 -104
- data/src/core/lib/iomgr/timer_heap.cc +2 -3
- data/src/core/lib/iomgr/timer_manager.cc +25 -43
- data/src/core/lib/iomgr/timer_manager.h +1 -2
- data/src/core/lib/iomgr/unix_sockets_posix.cc +4 -6
- data/src/core/lib/iomgr/unix_sockets_posix.h +3 -4
- data/src/core/lib/iomgr/unix_sockets_posix_noop.cc +0 -4
- data/src/core/lib/iomgr/vsock.cc +3 -6
- data/src/core/lib/iomgr/vsock.h +3 -4
- data/src/core/lib/iomgr/wakeup_fd_eventfd.cc +2 -4
- data/src/core/lib/iomgr/wakeup_fd_pipe.cc +5 -6
- data/src/core/lib/promise/activity.cc +2 -4
- data/src/core/lib/promise/activity.h +48 -17
- data/src/core/lib/promise/all_ok.h +17 -11
- data/src/core/lib/promise/arena_promise.h +2 -4
- data/src/core/lib/promise/cancel_callback.h +34 -6
- data/src/core/lib/promise/context.h +19 -10
- data/src/core/lib/promise/detail/basic_seq.h +2 -3
- data/src/core/lib/promise/detail/join_state.h +556 -762
- data/src/core/lib/promise/detail/promise_factory.h +46 -30
- data/src/core/lib/promise/detail/promise_like.h +29 -14
- data/src/core/lib/promise/detail/seq_state.h +1314 -1977
- data/src/core/lib/promise/detail/status.h +36 -15
- data/src/core/lib/promise/exec_ctx_wakeup_scheduler.h +2 -3
- data/src/core/lib/promise/for_each.h +34 -37
- data/src/core/lib/promise/if.h +23 -19
- data/src/core/lib/promise/interceptor_list.h +21 -35
- data/src/core/lib/promise/latch.h +19 -34
- data/src/core/lib/promise/loop.h +16 -12
- data/src/core/lib/promise/map.h +26 -9
- data/src/core/lib/promise/observable.h +181 -0
- data/src/core/lib/promise/party.cc +297 -147
- data/src/core/lib/promise/party.h +139 -361
- data/src/core/lib/promise/pipe.h +21 -44
- data/src/core/lib/promise/poll.h +102 -38
- data/src/core/lib/promise/prioritized_race.h +2 -2
- data/src/core/lib/promise/promise.h +14 -8
- data/src/core/lib/promise/race.h +12 -7
- data/src/core/lib/promise/seq.h +55 -39
- data/src/core/lib/promise/sleep.cc +3 -3
- data/src/core/lib/promise/sleep.h +4 -5
- data/src/core/lib/promise/status_flag.h +148 -49
- data/src/core/lib/promise/try_join.h +37 -21
- data/src/core/lib/promise/try_seq.h +86 -49
- data/src/core/lib/resource_quota/api.cc +4 -6
- data/src/core/lib/resource_quota/api.h +1 -2
- data/src/core/lib/resource_quota/arena.cc +64 -86
- data/src/core/lib/resource_quota/arena.h +143 -215
- data/src/core/lib/resource_quota/connection_quota.cc +2 -3
- data/src/core/lib/resource_quota/connection_quota.h +5 -6
- data/src/core/lib/resource_quota/memory_quota.cc +28 -40
- data/src/core/lib/resource_quota/memory_quota.h +20 -18
- data/src/core/lib/resource_quota/periodic_update.cc +4 -4
- data/src/core/lib/resource_quota/periodic_update.h +2 -4
- data/src/core/lib/resource_quota/resource_quota.h +8 -9
- data/src/core/lib/resource_quota/thread_quota.cc +2 -3
- data/src/core/lib/resource_quota/thread_quota.h +5 -6
- data/src/core/lib/security/authorization/audit_logging.cc +5 -7
- data/src/core/lib/security/authorization/audit_logging.h +5 -6
- data/src/core/lib/security/authorization/authorization_engine.h +3 -3
- data/src/core/lib/security/authorization/authorization_policy_provider.h +4 -5
- data/src/core/lib/security/authorization/authorization_policy_provider_vtable.cc +2 -2
- data/src/core/lib/security/authorization/evaluate_args.cc +10 -14
- data/src/core/lib/security/authorization/evaluate_args.h +3 -4
- data/src/core/lib/security/authorization/grpc_authorization_engine.cc +2 -4
- data/src/core/lib/security/authorization/grpc_authorization_engine.h +2 -3
- data/src/core/lib/security/authorization/grpc_server_authz_filter.cc +22 -30
- data/src/core/lib/security/authorization/grpc_server_authz_filter.h +5 -3
- data/src/core/lib/security/authorization/matchers.cc +5 -7
- data/src/core/lib/security/authorization/matchers.h +2 -4
- data/src/core/lib/security/authorization/rbac_policy.cc +2 -2
- data/src/core/lib/security/authorization/rbac_policy.h +3 -5
- data/src/core/lib/security/authorization/stdout_logger.cc +4 -5
- data/src/core/lib/security/authorization/stdout_logger.h +4 -4
- data/src/core/lib/security/certificate_provider/certificate_provider_factory.h +8 -9
- data/src/core/lib/security/certificate_provider/certificate_provider_registry.cc +4 -5
- data/src/core/lib/security/certificate_provider/certificate_provider_registry.h +2 -3
- data/src/core/lib/security/context/security_context.cc +48 -48
- data/src/core/lib/security/context/security_context.h +39 -18
- data/src/core/lib/security/credentials/alts/alts_credentials.cc +5 -5
- data/src/core/lib/security/credentials/alts/alts_credentials.h +9 -5
- data/src/core/lib/security/credentials/alts/check_gcp_environment.cc +4 -4
- data/src/core/lib/security/credentials/alts/check_gcp_environment_linux.cc +1 -2
- data/src/core/lib/security/credentials/alts/check_gcp_environment_no_op.cc +3 -5
- data/src/core/lib/security/credentials/alts/check_gcp_environment_windows.cc +3 -5
- data/src/core/lib/security/credentials/alts/grpc_alts_credentials_client_options.cc +4 -5
- data/src/core/lib/security/credentials/alts/grpc_alts_credentials_options.cc +3 -3
- data/src/core/lib/security/credentials/call_creds_util.cc +8 -7
- data/src/core/lib/security/credentials/call_creds_util.h +2 -2
- data/src/core/lib/security/credentials/channel_creds_registry.h +7 -8
- data/src/core/lib/security/credentials/channel_creds_registry_init.cc +14 -13
- data/src/core/lib/security/credentials/composite/composite_credentials.cc +10 -14
- data/src/core/lib/security/credentials/composite/composite_credentials.h +11 -10
- data/src/core/lib/security/credentials/credentials.cc +18 -19
- data/src/core/lib/security/credentials/credentials.h +12 -14
- data/src/core/lib/security/credentials/external/aws_external_account_credentials.cc +335 -339
- data/src/core/lib/security/credentials/external/aws_external_account_credentials.h +60 -48
- data/src/core/lib/security/credentials/external/aws_request_signer.cc +4 -5
- data/src/core/lib/security/credentials/external/aws_request_signer.h +3 -3
- data/src/core/lib/security/credentials/external/external_account_credentials.cc +408 -374
- data/src/core/lib/security/credentials/external/external_account_credentials.h +128 -60
- data/src/core/lib/security/credentials/external/file_external_account_credentials.cc +90 -52
- data/src/core/lib/security/credentials/external/file_external_account_credentials.h +32 -11
- data/src/core/lib/security/credentials/external/url_external_account_credentials.cc +102 -129
- data/src/core/lib/security/credentials/external/url_external_account_credentials.h +22 -24
- data/src/core/lib/security/credentials/fake/fake_credentials.cc +2 -4
- data/src/core/lib/security/credentials/fake/fake_credentials.h +8 -7
- data/src/core/lib/security/credentials/gcp_service_account_identity/gcp_service_account_identity_credentials.cc +195 -0
- data/src/core/lib/security/credentials/gcp_service_account_identity/gcp_service_account_identity_credentials.h +90 -0
- data/src/core/lib/security/credentials/google_default/credentials_generic.cc +6 -7
- data/src/core/lib/security/credentials/google_default/google_default_credentials.cc +55 -73
- data/src/core/lib/security/credentials/google_default/google_default_credentials.h +8 -6
- data/src/core/lib/security/credentials/iam/iam_credentials.cc +5 -10
- data/src/core/lib/security/credentials/iam/iam_credentials.h +8 -7
- data/src/core/lib/security/credentials/insecure/insecure_credentials.cc +2 -2
- data/src/core/lib/security/credentials/insecure/insecure_credentials.h +2 -2
- data/src/core/lib/security/credentials/jwt/json_token.cc +25 -29
- data/src/core/lib/security/credentials/jwt/json_token.h +2 -3
- data/src/core/lib/security/credentials/jwt/jwt_credentials.cc +22 -29
- data/src/core/lib/security/credentials/jwt/jwt_credentials.h +10 -10
- data/src/core/lib/security/credentials/jwt/jwt_verifier.cc +67 -74
- data/src/core/lib/security/credentials/jwt/jwt_verifier.h +3 -4
- data/src/core/lib/security/credentials/local/local_credentials.cc +2 -2
- data/src/core/lib/security/credentials/local/local_credentials.h +3 -3
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc +195 -296
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.h +50 -73
- data/src/core/lib/security/credentials/plugin/plugin_credentials.cc +20 -33
- data/src/core/lib/security/credentials/plugin/plugin_credentials.h +12 -14
- data/src/core/lib/security/credentials/ssl/ssl_credentials.cc +35 -47
- data/src/core/lib/security/credentials/ssl/ssl_credentials.h +5 -8
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_distributor.cc +3 -4
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_distributor.h +4 -5
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_match.cc +1 -3
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.cc +102 -42
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.h +14 -13
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_verifier.cc +6 -10
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_verifier.h +9 -11
- data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.cc +10 -13
- data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h +1 -1
- data/src/core/lib/security/credentials/tls/grpc_tls_crl_provider.cc +6 -10
- data/src/core/lib/security/credentials/tls/grpc_tls_crl_provider.h +8 -10
- data/src/core/lib/security/credentials/tls/tls_credentials.cc +20 -23
- data/src/core/lib/security/credentials/tls/tls_credentials.h +5 -3
- data/src/core/lib/security/credentials/tls/tls_utils.cc +5 -6
- data/src/core/lib/security/credentials/tls/tls_utils.h +3 -3
- data/src/core/lib/security/credentials/token_fetcher/token_fetcher_credentials.cc +298 -0
- data/src/core/lib/security/credentials/token_fetcher/token_fetcher_credentials.h +175 -0
- data/src/core/lib/security/credentials/xds/xds_credentials.cc +15 -13
- data/src/core/lib/security/credentials/xds/xds_credentials.h +7 -9
- data/src/core/lib/security/security_connector/alts/alts_security_connector.cc +22 -27
- data/src/core/lib/security/security_connector/alts/alts_security_connector.h +1 -1
- data/src/core/lib/security/security_connector/fake/fake_security_connector.cc +24 -24
- data/src/core/lib/security/security_connector/fake/fake_security_connector.h +1 -1
- data/src/core/lib/security/security_connector/insecure/insecure_security_connector.cc +4 -7
- data/src/core/lib/security/security_connector/insecure/insecure_security_connector.h +5 -6
- data/src/core/lib/security/security_connector/load_system_roots_supported.cc +9 -11
- data/src/core/lib/security/security_connector/load_system_roots_windows.cc +4 -6
- data/src/core/lib/security/security_connector/local/local_security_connector.cc +25 -25
- data/src/core/lib/security/security_connector/local/local_security_connector.h +1 -1
- data/src/core/lib/security/security_connector/security_connector.cc +6 -11
- data/src/core/lib/security/security_connector/security_connector.h +8 -11
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.cc +23 -27
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.h +2 -3
- data/src/core/lib/security/security_connector/ssl_utils.cc +33 -34
- data/src/core/lib/security/security_connector/ssl_utils.h +6 -8
- data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +37 -50
- data/src/core/lib/security/security_connector/tls/tls_security_connector.h +7 -8
- data/src/core/lib/security/transport/auth_filters.h +7 -3
- data/src/core/lib/security/transport/client_auth_filter.cc +16 -25
- data/src/core/lib/security/transport/server_auth_filter.cc +20 -31
- data/src/core/lib/security/util/json_util.cc +4 -5
- data/src/core/lib/security/util/json_util.h +1 -1
- data/src/core/lib/slice/percent_encoding.cc +2 -5
- data/src/core/lib/slice/slice.cc +4 -7
- data/src/core/lib/slice/slice.h +6 -9
- data/src/core/lib/slice/slice_buffer.cc +4 -7
- data/src/core/lib/slice/slice_buffer.h +3 -4
- data/src/core/lib/slice/slice_internal.h +3 -6
- data/src/core/lib/slice/slice_refcount.h +8 -15
- data/src/core/lib/slice/slice_string_helpers.cc +1 -1
- data/src/core/lib/slice/slice_string_helpers.h +1 -2
- data/src/core/lib/surface/byte_buffer.cc +1 -2
- data/src/core/lib/surface/byte_buffer_reader.cc +3 -6
- data/src/core/lib/surface/call.cc +161 -3826
- data/src/core/lib/surface/call.h +63 -157
- data/src/core/lib/surface/call_details.cc +4 -3
- data/src/core/lib/surface/call_log_batch.cc +8 -11
- data/src/core/lib/surface/call_test_only.h +1 -2
- data/src/core/lib/surface/call_utils.cc +231 -0
- data/src/core/lib/surface/call_utils.h +482 -0
- data/src/core/lib/surface/channel.cc +41 -40
- data/src/core/lib/surface/channel.h +21 -19
- data/src/core/lib/surface/channel_create.cc +27 -12
- data/src/core/lib/surface/channel_create.h +5 -5
- data/src/core/lib/surface/channel_init.cc +269 -266
- data/src/core/lib/surface/channel_init.h +172 -118
- data/src/core/lib/surface/client_call.cc +427 -0
- data/src/core/lib/surface/client_call.h +179 -0
- data/src/core/lib/surface/completion_queue.cc +110 -106
- data/src/core/lib/surface/completion_queue.h +3 -12
- data/src/core/lib/surface/completion_queue_factory.cc +1 -3
- data/src/core/lib/surface/event_string.cc +2 -2
- data/src/core/lib/surface/event_string.h +2 -2
- data/src/core/lib/surface/filter_stack_call.cc +1156 -0
- data/src/core/lib/surface/filter_stack_call.h +366 -0
- data/src/core/lib/surface/init.cc +55 -18
- data/src/core/lib/surface/init.h +5 -0
- data/src/core/lib/surface/lame_client.cc +11 -14
- data/src/core/lib/surface/lame_client.h +6 -5
- data/src/core/lib/surface/legacy_channel.cc +60 -46
- data/src/core/lib/surface/legacy_channel.h +15 -25
- data/src/core/lib/surface/metadata_array.cc +5 -5
- data/src/core/lib/surface/server_call.cc +221 -0
- data/src/core/lib/surface/server_call.h +168 -0
- data/src/core/lib/surface/validate_metadata.cc +3 -4
- data/src/core/lib/surface/validate_metadata.h +2 -5
- data/src/core/lib/surface/version.cc +2 -2
- data/src/core/lib/transport/bdp_estimator.cc +11 -19
- data/src/core/lib/transport/bdp_estimator.h +10 -16
- data/src/core/lib/transport/call_arena_allocator.cc +4 -18
- data/src/core/lib/transport/call_arena_allocator.h +30 -12
- data/src/core/lib/transport/call_destination.h +76 -0
- data/src/core/lib/transport/call_filters.cc +61 -405
- data/src/core/lib/transport/call_filters.h +802 -752
- data/src/core/lib/transport/call_final_info.cc +2 -2
- data/src/core/lib/transport/call_final_info.h +2 -2
- data/src/core/lib/transport/call_spine.cc +98 -73
- data/src/core/lib/transport/call_spine.h +183 -380
- data/src/core/lib/transport/call_state.cc +39 -0
- data/src/core/lib/transport/call_state.h +1061 -0
- data/src/core/lib/transport/connectivity_state.cc +37 -45
- data/src/core/lib/transport/connectivity_state.h +5 -8
- data/src/core/lib/transport/error_utils.cc +3 -4
- data/src/core/lib/transport/error_utils.h +4 -5
- data/src/core/lib/transport/interception_chain.cc +147 -0
- data/src/core/lib/transport/interception_chain.h +253 -0
- data/src/core/lib/transport/message.cc +2 -2
- data/src/core/lib/transport/message.h +5 -0
- data/src/core/lib/transport/metadata.cc +27 -3
- data/src/core/lib/transport/metadata.h +37 -2
- data/src/core/lib/transport/metadata_batch.cc +1 -3
- data/src/core/lib/transport/metadata_batch.h +64 -12
- data/src/core/lib/transport/metadata_compression_traits.h +1 -2
- data/src/core/lib/transport/metadata_info.h +1 -1
- data/src/core/lib/transport/parsed_metadata.h +3 -5
- data/src/core/lib/transport/simple_slice_based_metadata.h +1 -2
- data/src/core/lib/transport/status_conversion.h +1 -1
- data/src/core/lib/transport/timeout_encoding.cc +3 -4
- data/src/core/lib/transport/timeout_encoding.h +2 -4
- data/src/core/lib/transport/transport.cc +7 -12
- data/src/core/lib/transport/transport.h +59 -56
- data/src/core/lib/transport/transport_op_string.cc +4 -6
- data/src/core/load_balancing/address_filtering.cc +2 -4
- data/src/core/load_balancing/address_filtering.h +4 -5
- data/src/core/load_balancing/backend_metric_data.h +2 -2
- data/src/core/load_balancing/backend_metric_parser.cc +1 -2
- data/src/core/load_balancing/backend_metric_parser.h +1 -3
- data/src/core/load_balancing/child_policy_handler.cc +36 -40
- data/src/core/load_balancing/child_policy_handler.h +4 -5
- data/src/core/load_balancing/delegating_helper.h +6 -7
- data/src/core/load_balancing/endpoint_list.cc +11 -13
- data/src/core/load_balancing/endpoint_list.h +7 -9
- data/src/core/load_balancing/grpclb/client_load_reporting_filter.cc +12 -6
- data/src/core/load_balancing/grpclb/client_load_reporting_filter.h +5 -2
- data/src/core/load_balancing/grpclb/grpclb.cc +153 -187
- data/src/core/load_balancing/grpclb/grpclb_balancer_addresses.cc +2 -3
- data/src/core/load_balancing/grpclb/grpclb_client_stats.cc +2 -3
- data/src/core/load_balancing/grpclb/grpclb_client_stats.h +5 -7
- data/src/core/load_balancing/grpclb/load_balancer_api.cc +7 -10
- data/src/core/load_balancing/grpclb/load_balancer_api.h +4 -6
- data/src/core/load_balancing/health_check_client.cc +60 -80
- data/src/core/load_balancing/health_check_client.h +3 -3
- data/src/core/load_balancing/health_check_client_internal.h +8 -9
- data/src/core/load_balancing/lb_policy.cc +5 -8
- data/src/core/load_balancing/lb_policy.h +72 -38
- data/src/core/load_balancing/lb_policy_factory.h +5 -6
- data/src/core/load_balancing/lb_policy_registry.cc +5 -7
- data/src/core/load_balancing/lb_policy_registry.h +5 -6
- data/src/core/load_balancing/oob_backend_metric.cc +19 -25
- data/src/core/load_balancing/oob_backend_metric.h +3 -3
- data/src/core/load_balancing/oob_backend_metric_internal.h +8 -9
- data/src/core/load_balancing/outlier_detection/outlier_detection.cc +139 -184
- data/src/core/load_balancing/outlier_detection/outlier_detection.h +6 -8
- data/src/core/load_balancing/pick_first/pick_first.cc +219 -303
- data/src/core/load_balancing/priority/priority.cc +93 -137
- data/src/core/load_balancing/ring_hash/ring_hash.cc +52 -76
- data/src/core/load_balancing/ring_hash/ring_hash.h +6 -7
- data/src/core/load_balancing/rls/rls.cc +340 -345
- data/src/core/load_balancing/round_robin/round_robin.cc +56 -83
- data/src/core/load_balancing/subchannel_interface.h +17 -6
- data/src/core/load_balancing/weighted_round_robin/static_stride_scheduler.cc +2 -3
- data/src/core/load_balancing/weighted_round_robin/static_stride_scheduler.h +1 -2
- data/src/core/load_balancing/weighted_round_robin/weighted_round_robin.cc +138 -155
- data/src/core/load_balancing/weighted_target/weighted_target.cc +71 -107
- data/src/core/load_balancing/xds/cds.cc +53 -69
- data/src/core/load_balancing/xds/xds_cluster_impl.cc +178 -155
- data/src/core/load_balancing/xds/xds_cluster_manager.cc +52 -84
- data/src/core/load_balancing/xds/xds_override_host.cc +117 -179
- data/src/core/load_balancing/xds/xds_override_host.h +6 -7
- data/src/core/load_balancing/xds/xds_wrr_locality.cc +38 -48
- data/src/core/plugin_registry/grpc_plugin_registry.cc +5 -7
- data/src/core/plugin_registry/grpc_plugin_registry_extra.cc +5 -0
- data/src/core/resolver/dns/c_ares/dns_resolver_ares.cc +85 -60
- data/src/core/resolver/dns/c_ares/dns_resolver_ares.h +1 -2
- data/src/core/resolver/dns/c_ares/grpc_ares_ev_driver.h +4 -6
- data/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +2 -6
- data/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +118 -100
- data/src/core/resolver/dns/c_ares/grpc_ares_wrapper.cc +166 -151
- data/src/core/resolver/dns/c_ares/grpc_ares_wrapper.h +4 -18
- data/src/core/resolver/dns/c_ares/grpc_ares_wrapper_windows.cc +1 -1
- data/src/core/resolver/dns/dns_resolver_plugin.cc +9 -10
- data/src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.cc +52 -59
- data/src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.h +3 -4
- data/src/core/resolver/dns/event_engine/service_config_helper.cc +8 -10
- data/src/core/resolver/dns/event_engine/service_config_helper.h +2 -2
- data/src/core/resolver/dns/native/dns_resolver.cc +21 -30
- data/src/core/resolver/endpoint_addresses.cc +2 -5
- data/src/core/resolver/endpoint_addresses.h +5 -3
- data/src/core/resolver/fake/fake_resolver.cc +7 -9
- data/src/core/resolver/fake/fake_resolver.h +8 -9
- data/src/core/resolver/google_c2p/google_c2p_resolver.cc +23 -25
- data/src/core/resolver/polling_resolver.cc +39 -55
- data/src/core/resolver/polling_resolver.h +8 -9
- data/src/core/resolver/resolver.cc +2 -6
- data/src/core/resolver/resolver.h +4 -10
- data/src/core/resolver/resolver_factory.h +4 -5
- data/src/core/resolver/resolver_registry.cc +8 -10
- data/src/core/resolver/resolver_registry.h +4 -5
- data/src/core/resolver/sockaddr/sockaddr_resolver.cc +7 -8
- data/src/core/resolver/xds/xds_config.cc +95 -0
- data/src/core/resolver/xds/xds_config.h +108 -0
- data/src/core/resolver/xds/xds_dependency_manager.cc +82 -171
- data/src/core/resolver/xds/xds_dependency_manager.h +6 -71
- data/src/core/resolver/xds/xds_resolver.cc +123 -104
- data/src/core/resolver/xds/xds_resolver_attributes.h +7 -4
- data/src/core/server/server.cc +382 -484
- data/src/core/server/server.h +48 -32
- data/src/core/server/server_call_tracer_filter.cc +20 -19
- data/src/core/server/server_config_selector.h +6 -7
- data/src/core/server/server_config_selector_filter.cc +17 -12
- data/src/core/server/server_interface.h +2 -0
- data/src/core/server/xds_channel_stack_modifier.cc +4 -4
- data/src/core/server/xds_channel_stack_modifier.h +6 -7
- data/src/core/server/xds_server_config_fetcher.cc +63 -73
- data/src/core/service_config/service_config.h +4 -6
- data/src/core/service_config/service_config_call_data.h +21 -20
- data/src/core/service_config/service_config_channel_arg_filter.cc +16 -12
- data/src/core/service_config/service_config_impl.cc +8 -10
- data/src/core/service_config/service_config_impl.h +5 -8
- data/src/core/service_config/service_config_parser.cc +4 -8
- data/src/core/service_config/service_config_parser.h +3 -5
- data/src/core/{lib/channel → telemetry}/call_tracer.cc +56 -34
- data/src/core/{lib/channel → telemetry}/call_tracer.h +51 -14
- data/src/core/{lib/debug → telemetry}/histogram_view.cc +1 -1
- data/src/core/{lib/debug → telemetry}/histogram_view.h +4 -5
- data/src/core/telemetry/metrics.cc +177 -0
- data/src/core/telemetry/metrics.h +565 -0
- data/src/core/{lib/debug → telemetry}/stats.cc +2 -3
- data/src/core/{lib/debug → telemetry}/stats.h +7 -9
- data/src/core/{lib/debug → telemetry}/stats_data.cc +88 -3
- data/src/core/{lib/debug → telemetry}/stats_data.h +73 -8
- data/src/core/{lib/channel → telemetry}/tcp_tracer.h +4 -5
- data/src/core/tsi/alts/crypt/aes_gcm.cc +5 -8
- data/src/core/tsi/alts/crypt/gsec.cc +2 -3
- data/src/core/tsi/alts/crypt/gsec.h +3 -4
- data/src/core/tsi/alts/frame_protector/alts_counter.cc +1 -2
- data/src/core/tsi/alts/frame_protector/alts_counter.h +2 -3
- data/src/core/tsi/alts/frame_protector/alts_crypter.cc +1 -2
- data/src/core/tsi/alts/frame_protector/alts_crypter.h +2 -3
- data/src/core/tsi/alts/frame_protector/alts_frame_protector.cc +16 -18
- data/src/core/tsi/alts/frame_protector/alts_frame_protector.h +1 -2
- data/src/core/tsi/alts/frame_protector/frame_handler.cc +11 -12
- data/src/core/tsi/alts/frame_protector/frame_handler.h +1 -2
- data/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +41 -46
- data/src/core/tsi/alts/handshaker/alts_shared_resource.cc +2 -4
- data/src/core/tsi/alts/handshaker/alts_shared_resource.h +1 -1
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc +55 -57
- data/src/core/tsi/alts/handshaker/alts_tsi_utils.cc +3 -3
- data/src/core/tsi/alts/handshaker/transport_security_common_api.cc +17 -24
- data/src/core/tsi/alts/handshaker/transport_security_common_api.h +1 -2
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.cc +14 -17
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.h +1 -2
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.cc +11 -12
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.h +1 -2
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.cc +9 -11
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.cc +3 -5
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.h +1 -2
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.cc +9 -13
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.h +1 -2
- data/src/core/tsi/fake_transport_security.cc +27 -32
- data/src/core/tsi/local_transport_security.cc +9 -10
- data/src/core/tsi/ssl/key_logging/ssl_key_logging.cc +9 -12
- data/src/core/tsi/ssl/key_logging/ssl_key_logging.h +8 -10
- data/src/core/tsi/ssl/session_cache/ssl_session.h +4 -5
- data/src/core/tsi/ssl/session_cache/ssl_session_cache.cc +7 -9
- data/src/core/tsi/ssl/session_cache/ssl_session_cache.h +7 -8
- data/src/core/tsi/ssl/session_cache/ssl_session_openssl.cc +2 -4
- data/src/core/tsi/ssl_transport_security.cc +126 -111
- data/src/core/tsi/ssl_transport_security.h +4 -6
- data/src/core/tsi/ssl_transport_security_utils.cc +77 -24
- data/src/core/tsi/ssl_transport_security_utils.h +13 -4
- data/src/core/tsi/ssl_types.h +1 -2
- data/src/core/tsi/transport_security.cc +2 -7
- data/src/core/tsi/transport_security.h +1 -4
- data/src/core/tsi/transport_security_interface.h +1 -6
- data/src/core/{lib/gpr → util}/alloc.cc +2 -6
- data/src/core/{lib/gpr → util}/alloc.h +3 -3
- data/src/core/{lib/gpr → util}/atm.cc +2 -3
- data/src/core/{lib/gprpp → util}/atomic_utils.h +5 -5
- data/src/core/{lib/avl → util}/avl.h +7 -8
- data/src/core/{lib/backoff → util}/backoff.cc +10 -11
- data/src/core/{lib/backoff → util}/backoff.h +8 -11
- data/src/core/{lib/gprpp → util}/bitset.h +6 -7
- data/src/core/{lib/gprpp → util}/chunked_vector.h +6 -8
- data/src/core/{lib/gprpp → util}/construct_destruct.h +8 -7
- data/src/core/{lib/gprpp → util}/cpp_impl_of.h +3 -3
- data/src/core/{lib/gprpp → util}/crash.cc +4 -6
- data/src/core/{lib/gprpp → util}/crash.h +5 -6
- data/src/core/{lib/gprpp → util}/debug_location.h +11 -4
- data/src/core/{lib/gprpp → util}/directory_reader.h +5 -5
- data/src/core/{lib/gprpp → util}/down_cast.h +7 -8
- data/src/core/{lib/gprpp → util}/dual_ref_counted.h +54 -43
- data/src/core/util/dump_args.cc +54 -0
- data/src/core/util/dump_args.h +122 -0
- data/src/core/{lib/gprpp → util}/env.h +5 -5
- data/src/core/{lib/debug → util}/event_log.cc +3 -4
- data/src/core/{lib/debug → util}/event_log.h +7 -9
- data/src/core/{lib/gprpp → util}/examine_stack.cc +1 -1
- data/src/core/{lib/gprpp → util}/examine_stack.h +5 -5
- data/src/core/{lib/gprpp → util}/fork.cc +4 -4
- data/src/core/{lib/gprpp → util}/fork.h +5 -5
- data/src/core/{ext/gcp/metadata_query.cc → util/gcp_metadata_query.cc} +31 -36
- data/src/core/{ext/gcp/metadata_query.h → util/gcp_metadata_query.h} +13 -14
- data/src/core/{lib/iomgr → util}/gethostname.h +3 -3
- data/src/core/{lib/iomgr → util}/gethostname_fallback.cc +1 -1
- data/src/core/{lib/iomgr → util}/gethostname_host_name_max.cc +2 -3
- data/src/core/{lib/iomgr → util}/gethostname_sysconf.cc +2 -3
- data/src/core/util/glob.cc +70 -0
- data/src/core/util/glob.h +29 -0
- data/src/core/{lib/gpr/time.cc → util/gpr_time.cc} +3 -6
- data/src/core/{lib/iomgr → util}/grpc_if_nametoindex.h +4 -5
- data/src/core/{lib/iomgr → util}/grpc_if_nametoindex_posix.cc +4 -6
- data/src/core/{lib/iomgr → util}/grpc_if_nametoindex_unsupported.cc +5 -8
- data/src/core/{lib/gprpp → util}/host_port.cc +2 -4
- data/src/core/{lib/gprpp → util}/host_port.h +5 -5
- data/src/core/{lib/http → util/http_client}/format_request.cc +4 -6
- data/src/core/{lib/http → util/http_client}/format_request.h +4 -4
- data/src/core/{lib/http → util/http_client}/httpcli.cc +43 -62
- data/src/core/{lib/http → util/http_client}/httpcli.h +32 -30
- data/src/core/{lib/http → util/http_client}/httpcli_security_connector.cc +17 -20
- data/src/core/{lib/http → util/http_client}/httpcli_ssl_credentials.h +4 -4
- data/src/core/{lib/http → util/http_client}/parser.cc +7 -11
- data/src/core/{lib/http → util/http_client}/parser.h +5 -8
- data/src/core/{lib/gprpp → util}/if_list.h +3 -3
- data/src/core/{lib/gpr → util}/iphone/cpu.cc +1 -2
- data/src/core/{lib → util}/json/json.h +3 -3
- data/src/core/{lib → util}/json/json_args.h +5 -5
- data/src/core/{lib → util}/json/json_channel_args.h +6 -7
- data/src/core/{lib → util}/json/json_object_loader.cc +4 -4
- data/src/core/{lib → util}/json/json_object_loader.h +11 -12
- data/src/core/{lib → util}/json/json_reader.cc +4 -7
- data/src/core/{lib → util}/json/json_reader.h +6 -7
- data/src/core/{lib → util}/json/json_util.cc +5 -5
- data/src/core/{lib → util}/json/json_util.h +7 -8
- data/src/core/{lib → util}/json/json_writer.cc +2 -4
- data/src/core/{lib → util}/json/json_writer.h +6 -6
- data/src/core/util/latent_see.cc +142 -0
- data/src/core/util/latent_see.h +327 -0
- data/src/core/{lib/gpr → util}/linux/cpu.cc +11 -12
- data/src/core/{lib/gprpp → util}/linux/env.cc +3 -3
- data/src/core/{lib/gprpp → util}/load_file.cc +4 -6
- data/src/core/{lib/gprpp → util}/load_file.h +5 -6
- data/src/core/util/log.cc +127 -0
- data/src/core/util/lru_cache.h +122 -0
- data/src/core/{lib/gprpp → util}/manual_constructor.h +5 -6
- data/src/core/{lib/gprpp → util}/match.h +6 -7
- data/src/core/{lib/matchers → util}/matchers.cc +10 -3
- data/src/core/{lib/matchers → util}/matchers.h +9 -5
- data/src/core/{lib/gprpp → util}/memory.h +6 -6
- data/src/core/{lib/gprpp → util}/mpscq.cc +1 -1
- data/src/core/{lib/gprpp → util}/mpscq.h +6 -8
- data/src/core/{lib/gpr → util}/msys/tmpfile.cc +5 -7
- data/src/core/{lib/gprpp → util}/no_destruct.h +6 -6
- data/src/core/{lib/gprpp → util}/notification.h +6 -7
- data/src/core/{lib/gprpp → util}/orphanable.h +9 -9
- data/src/core/{lib/gprpp → util}/overload.h +5 -5
- data/src/core/{lib/gprpp → util}/packed_table.h +5 -5
- data/src/core/{lib/gprpp → util}/per_cpu.cc +2 -2
- data/src/core/{lib/gprpp → util}/per_cpu.h +5 -6
- data/src/core/{lib/gpr → util}/posix/cpu.cc +6 -7
- data/src/core/{lib/gprpp → util}/posix/directory_reader.cc +4 -4
- data/src/core/{lib/gprpp → util}/posix/env.cc +1 -1
- data/src/core/{lib/gprpp → util}/posix/stat.cc +7 -9
- data/src/core/{lib/gpr → util}/posix/string.cc +2 -3
- data/src/core/{lib/gpr → util}/posix/sync.cc +3 -6
- data/src/core/{lib/gprpp → util}/posix/thd.cc +16 -20
- data/src/core/{lib/gpr → util}/posix/time.cc +5 -7
- data/src/core/{lib/gpr → util}/posix/tmpfile.cc +11 -13
- data/src/core/{lib/backoff → util}/random_early_detection.cc +3 -3
- data/src/core/{lib/backoff → util}/random_early_detection.h +4 -5
- data/src/core/{lib/gprpp → util}/ref_counted.h +39 -32
- data/src/core/{lib/gprpp → util}/ref_counted_ptr.h +6 -8
- data/src/core/{lib/gprpp → util}/ref_counted_string.cc +3 -4
- data/src/core/{lib/gprpp → util}/ref_counted_string.h +6 -8
- data/src/core/util/ring_buffer.h +123 -0
- data/src/core/{lib/gprpp → util}/single_set_ptr.h +10 -9
- data/src/core/{lib/gprpp → util}/sorted_pack.h +6 -6
- data/src/core/{lib/gpr → util}/spinlock.h +5 -7
- data/src/core/{lib/gprpp → util}/stat.h +4 -5
- data/src/core/{lib/gprpp → util}/status_helper.cc +16 -38
- data/src/core/{lib/gprpp → util}/status_helper.h +8 -38
- data/src/core/{lib/gprpp → util}/strerror.cc +2 -3
- data/src/core/{lib/gprpp → util}/strerror.h +5 -5
- data/src/core/{lib/gpr → util}/string.cc +13 -16
- data/src/core/{lib/gpr → util}/string.h +4 -6
- data/src/core/{lib/gpr → util}/sync.cc +3 -6
- data/src/core/{lib/gprpp → util}/sync.h +7 -8
- data/src/core/{lib/gpr → util}/sync_abseil.cc +5 -8
- data/src/core/{lib/gprpp → util}/table.h +56 -22
- data/src/core/{lib/gprpp → util}/tchar.cc +1 -1
- data/src/core/{lib/gprpp → util}/tchar.h +3 -3
- data/src/core/{lib/gprpp → util}/thd.h +5 -7
- data/src/core/{lib/gprpp → util}/time.cc +8 -10
- data/src/core/{lib/gprpp → util}/time.h +28 -27
- data/src/core/{lib/gprpp → util}/time_averaged_stats.cc +1 -1
- data/src/core/{lib/gprpp → util}/time_averaged_stats.h +3 -3
- data/src/core/{lib/gpr → util}/time_precise.cc +7 -7
- data/src/core/{lib/gpr → util}/time_precise.h +3 -4
- data/src/core/{lib/gprpp → util}/time_util.cc +3 -5
- data/src/core/{lib/gprpp → util}/time_util.h +5 -5
- data/src/core/{lib/gpr → util}/tmpfile.h +3 -4
- data/src/core/{lib/gprpp → util}/type_list.h +3 -3
- data/src/core/util/unique_ptr_with_bitset.h +86 -0
- data/src/core/{lib/gprpp → util}/unique_type_name.h +34 -15
- data/src/core/{xds/grpc → util}/upb_utils.h +3 -5
- data/src/core/{lib/uri/uri_parser.cc → util/uri.cc} +2 -4
- data/src/core/{lib/uri/uri_parser.h → util/uri.h} +5 -5
- data/src/core/{lib/gpr → util}/useful.h +23 -52
- data/src/core/{lib/gprpp → util}/uuid_v4.cc +3 -3
- data/src/core/{lib/gprpp → util}/uuid_v4.h +4 -5
- data/src/core/{lib/gprpp → util}/validation_errors.cc +12 -4
- data/src/core/{lib/gprpp → util}/validation_errors.h +15 -5
- data/src/core/{lib/gpr → util}/windows/cpu.cc +1 -2
- data/src/core/{lib/gprpp → util}/windows/directory_reader.cc +1 -3
- data/src/core/{lib/gprpp → util}/windows/env.cc +2 -2
- data/src/core/{lib/gprpp → util}/windows/stat.cc +6 -8
- data/src/core/{lib/gpr → util}/windows/string.cc +3 -4
- data/src/core/{lib/gpr → util}/windows/string_util.cc +6 -8
- data/src/core/{lib/gpr → util}/windows/sync.cc +2 -4
- data/src/core/{lib/gprpp → util}/windows/thd.cc +8 -10
- data/src/core/{lib/gpr → util}/windows/time.cc +3 -6
- data/src/core/{lib/gpr → util}/windows/tmpfile.cc +5 -7
- data/src/core/{lib/gprpp → util}/work_serializer.cc +75 -95
- data/src/core/{lib/gprpp → util}/work_serializer.h +8 -9
- data/src/core/{lib/gprpp → util}/xxhash_inline.h +3 -3
- data/src/core/xds/grpc/certificate_provider_store.cc +4 -5
- data/src/core/xds/grpc/certificate_provider_store.h +12 -13
- data/src/core/xds/grpc/file_watcher_certificate_provider_factory.cc +6 -7
- data/src/core/xds/grpc/file_watcher_certificate_provider_factory.h +9 -10
- data/src/core/xds/grpc/xds_audit_logger_registry.cc +5 -5
- data/src/core/xds/grpc/xds_audit_logger_registry.h +4 -5
- data/src/core/xds/grpc/xds_bootstrap_grpc.cc +8 -166
- data/src/core/xds/grpc/xds_bootstrap_grpc.h +9 -39
- data/src/core/xds/grpc/xds_certificate_provider.cc +4 -5
- data/src/core/xds/grpc/xds_certificate_provider.h +12 -11
- data/src/core/xds/grpc/xds_client_grpc.cc +98 -76
- data/src/core/xds/grpc/xds_client_grpc.h +16 -10
- data/src/core/xds/grpc/xds_cluster.cc +12 -737
- data/src/core/xds/grpc/xds_cluster.h +36 -45
- data/src/core/xds/grpc/xds_cluster_parser.cc +772 -0
- data/src/core/xds/grpc/xds_cluster_parser.h +61 -0
- data/src/core/xds/grpc/xds_cluster_specifier_plugin.cc +6 -9
- data/src/core/xds/grpc/xds_cluster_specifier_plugin.h +5 -6
- data/src/core/xds/grpc/xds_common_types.cc +33 -438
- data/src/core/xds/grpc/xds_common_types.h +10 -28
- data/src/core/xds/grpc/xds_common_types_parser.cc +503 -0
- data/src/core/xds/grpc/xds_common_types_parser.h +76 -0
- data/src/core/xds/grpc/xds_endpoint.cc +0 -420
- data/src/core/xds/grpc/xds_endpoint.h +7 -29
- data/src/core/xds/grpc/xds_endpoint_parser.cc +444 -0
- data/src/core/xds/grpc/xds_endpoint_parser.h +47 -0
- data/src/core/xds/grpc/xds_health_status.cc +0 -2
- data/src/core/xds/grpc/xds_health_status.h +0 -3
- data/src/core/xds/grpc/xds_http_fault_filter.cc +28 -16
- data/src/core/xds/grpc/xds_http_fault_filter.h +11 -7
- data/src/core/xds/grpc/{xds_http_filters.h → xds_http_filter.h} +21 -69
- data/src/core/xds/grpc/{xds_http_filters.cc → xds_http_filter_registry.cc} +11 -5
- data/src/core/xds/grpc/xds_http_filter_registry.h +104 -0
- data/src/core/xds/grpc/xds_http_gcp_authn_filter.cc +141 -0
- data/src/core/xds/grpc/xds_http_gcp_authn_filter.h +60 -0
- data/src/core/xds/grpc/xds_http_rbac_filter.cc +64 -49
- data/src/core/xds/grpc/xds_http_rbac_filter.h +11 -7
- data/src/core/xds/grpc/xds_http_stateful_session_filter.cc +24 -11
- data/src/core/xds/grpc/xds_http_stateful_session_filter.h +11 -7
- data/src/core/xds/grpc/xds_lb_policy_registry.cc +22 -27
- data/src/core/xds/grpc/xds_lb_policy_registry.h +4 -5
- data/src/core/xds/grpc/xds_listener.cc +19 -986
- data/src/core/xds/grpc/xds_listener.h +2 -35
- data/src/core/xds/grpc/xds_listener_parser.cc +993 -0
- data/src/core/xds/grpc/xds_listener_parser.h +59 -0
- data/src/core/xds/grpc/xds_metadata.cc +62 -0
- data/src/core/xds/grpc/xds_metadata.h +150 -0
- data/src/core/xds/grpc/xds_metadata_parser.cc +184 -0
- data/src/core/xds/grpc/xds_metadata_parser.h +35 -0
- data/src/core/xds/grpc/xds_route_config.cc +2 -919
- data/src/core/xds/grpc/xds_route_config.h +8 -41
- data/src/core/xds/grpc/xds_route_config_parser.cc +962 -0
- data/src/core/xds/grpc/xds_route_config_parser.h +77 -0
- data/src/core/xds/grpc/xds_routing.cc +60 -27
- data/src/core/xds/grpc/xds_routing.h +12 -6
- data/src/core/xds/grpc/xds_server_grpc.cc +160 -0
- data/src/core/xds/grpc/xds_server_grpc.h +63 -0
- data/src/core/xds/grpc/xds_transport_grpc.cc +98 -55
- data/src/core/xds/grpc/xds_transport_grpc.h +34 -23
- data/src/core/xds/xds_client/lrs_client.cc +1292 -0
- data/src/core/xds/xds_client/lrs_client.h +394 -0
- data/src/core/xds/xds_client/xds_api.cc +38 -256
- data/src/core/xds/xds_client/xds_api.h +13 -36
- data/src/core/xds/xds_client/xds_backend_metric_propagation.cc +63 -0
- data/src/core/xds/xds_client/xds_backend_metric_propagation.h +59 -0
- data/src/core/xds/xds_client/xds_bootstrap.cc +3 -4
- data/src/core/xds/xds_client/xds_bootstrap.h +3 -3
- data/src/core/xds/xds_client/xds_client.cc +175 -793
- data/src/core/xds/xds_client/xds_client.h +33 -89
- data/src/core/xds/xds_client/xds_locality.h +102 -0
- data/src/core/xds/xds_client/xds_metrics.h +2 -2
- data/src/core/xds/xds_client/xds_resource_type.h +4 -5
- data/src/core/xds/xds_client/xds_resource_type_impl.h +3 -4
- data/src/core/xds/xds_client/xds_transport.h +29 -14
- data/src/ruby/bin/math_pb.rb +1 -22
- data/src/ruby/ext/grpc/extconf.rb +1 -1
- data/src/ruby/ext/grpc/rb_byte_buffer.c +3 -3
- data/src/ruby/ext/grpc/rb_call.c +15 -8
- data/src/ruby/ext/grpc/rb_call_credentials.c +39 -33
- data/src/ruby/ext/grpc/rb_channel.c +42 -37
- data/src/ruby/ext/grpc/rb_channel_args.c +4 -4
- data/src/ruby/ext/grpc/rb_channel_credentials.c +5 -6
- data/src/ruby/ext/grpc/rb_channel_credentials.h +1 -2
- data/src/ruby/ext/grpc/rb_completion_queue.c +18 -36
- data/src/ruby/ext/grpc/rb_completion_queue.h +7 -1
- data/src/ruby/ext/grpc/rb_compression_options.c +9 -10
- data/src/ruby/ext/grpc/rb_event_thread.c +9 -9
- data/src/ruby/ext/grpc/rb_grpc.c +16 -16
- data/src/ruby/ext/grpc/rb_grpc.h +7 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +6 -14
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +9 -21
- data/src/ruby/ext/grpc/rb_server.c +47 -28
- data/src/ruby/ext/grpc/rb_server_credentials.c +3 -3
- data/src/ruby/ext/grpc/rb_server_credentials.h +1 -2
- data/src/ruby/ext/grpc/rb_xds_channel_credentials.c +5 -6
- data/src/ruby/ext/grpc/rb_xds_channel_credentials.h +1 -2
- data/src/ruby/ext/grpc/rb_xds_server_credentials.c +4 -4
- data/src/ruby/ext/grpc/rb_xds_server_credentials.h +1 -2
- data/src/ruby/lib/grpc/generic/active_call.rb +8 -5
- data/src/ruby/lib/grpc/logconfig.rb +13 -0
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/pb/grpc/health/v1/health_pb.rb +1 -22
- data/src/ruby/pb/grpc/testing/duplicate/echo_duplicate_services_pb.rb +5 -5
- data/src/ruby/pb/grpc/testing/metrics_pb.rb +10 -19
- data/src/ruby/pb/grpc/testing/metrics_services_pb.rb +5 -5
- data/src/ruby/pb/src/proto/grpc/testing/empty_pb.rb +1 -22
- data/src/ruby/pb/src/proto/grpc/testing/messages_pb.rb +1 -22
- data/src/ruby/pb/src/proto/grpc/testing/test_pb.rb +1 -22
- data/src/ruby/spec/call_spec.rb +53 -40
- data/src/ruby/spec/channel_spec.rb +4 -2
- data/src/ruby/spec/client_server_spec.rb +148 -507
- data/src/ruby/spec/generic/active_call_spec.rb +64 -86
- data/src/ruby/spec/generic/client_stub_spec.rb +20 -20
- data/src/ruby/spec/logconfig_spec.rb +30 -0
- data/src/ruby/spec/support/services.rb +3 -0
- data/third_party/abseil-cpp/absl/algorithm/container.h +57 -18
- data/third_party/abseil-cpp/absl/base/attributes.h +84 -0
- data/third_party/abseil-cpp/absl/base/config.h +32 -51
- data/third_party/abseil-cpp/absl/base/dynamic_annotations.h +0 -16
- data/third_party/abseil-cpp/absl/base/internal/nullability_impl.h +3 -1
- data/third_party/abseil-cpp/absl/base/internal/spinlock.h +13 -3
- data/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc +0 -12
- data/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock_config.h +4 -4
- data/third_party/abseil-cpp/absl/base/macros.h +48 -0
- data/third_party/abseil-cpp/absl/base/no_destructor.h +35 -40
- data/third_party/abseil-cpp/absl/base/nullability.h +33 -7
- data/third_party/abseil-cpp/absl/base/optimization.h +11 -0
- data/third_party/abseil-cpp/absl/base/options.h +1 -1
- data/third_party/abseil-cpp/absl/base/prefetch.h +1 -1
- data/third_party/abseil-cpp/absl/container/flat_hash_map.h +68 -12
- data/third_party/abseil-cpp/absl/container/flat_hash_set.h +60 -6
- data/third_party/abseil-cpp/absl/container/hash_container_defaults.h +45 -0
- data/third_party/abseil-cpp/absl/container/inlined_vector.h +13 -0
- data/third_party/abseil-cpp/absl/container/internal/common_policy_traits.h +20 -11
- data/third_party/abseil-cpp/absl/container/internal/compressed_tuple.h +15 -16
- data/third_party/abseil-cpp/absl/container/internal/container_memory.h +34 -1
- data/third_party/abseil-cpp/absl/container/internal/hash_function_defaults.h +68 -1
- data/third_party/abseil-cpp/absl/container/internal/hash_policy_traits.h +50 -0
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler.cc +22 -7
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler.h +26 -8
- data/third_party/abseil-cpp/absl/container/internal/inlined_vector.h +39 -35
- data/third_party/abseil-cpp/absl/container/internal/layout.h +190 -74
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_map.h +8 -6
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.cc +334 -71
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.h +1299 -458
- data/third_party/abseil-cpp/absl/crc/internal/crc32_x86_arm_combined_simd.h +19 -17
- data/third_party/abseil-cpp/absl/crc/internal/crc_cord_state.cc +4 -3
- data/third_party/abseil-cpp/absl/crc/internal/crc_memcpy_fallback.cc +2 -1
- data/third_party/abseil-cpp/absl/crc/internal/crc_memcpy_x86_arm_combined.cc +12 -8
- data/third_party/abseil-cpp/absl/crc/internal/crc_non_temporal_memcpy.cc +1 -1
- data/third_party/abseil-cpp/absl/crc/internal/crc_x86_arm_combined.cc +11 -7
- data/third_party/abseil-cpp/absl/crc/internal/non_temporal_memcpy.h +18 -17
- data/third_party/abseil-cpp/absl/debugging/internal/bounded_utf8_length_sequence.h +126 -0
- data/third_party/abseil-cpp/absl/debugging/internal/decode_rust_punycode.cc +258 -0
- data/third_party/abseil-cpp/absl/debugging/internal/decode_rust_punycode.h +55 -0
- data/third_party/abseil-cpp/absl/debugging/internal/demangle.cc +1057 -86
- data/third_party/abseil-cpp/absl/debugging/internal/demangle.h +3 -0
- data/third_party/abseil-cpp/absl/debugging/internal/demangle_rust.cc +925 -0
- data/third_party/abseil-cpp/absl/debugging/internal/demangle_rust.h +42 -0
- data/third_party/abseil-cpp/absl/debugging/internal/elf_mem_image.cc +43 -16
- data/third_party/abseil-cpp/absl/debugging/internal/elf_mem_image.h +8 -7
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_aarch64-inl.inc +10 -7
- data/third_party/abseil-cpp/absl/debugging/internal/utf8_for_code_point.cc +70 -0
- data/third_party/abseil-cpp/absl/debugging/internal/utf8_for_code_point.h +47 -0
- data/third_party/abseil-cpp/absl/flags/commandlineflag.h +11 -0
- data/third_party/abseil-cpp/absl/flags/flag.h +2 -0
- data/third_party/abseil-cpp/absl/flags/internal/flag.cc +117 -30
- data/third_party/abseil-cpp/absl/flags/internal/flag.h +192 -30
- data/third_party/abseil-cpp/absl/flags/reflection.cc +10 -0
- data/third_party/abseil-cpp/absl/functional/any_invocable.h +13 -3
- data/third_party/abseil-cpp/absl/functional/bind_front.h +3 -2
- data/third_party/abseil-cpp/absl/functional/internal/any_invocable.h +7 -7
- data/third_party/abseil-cpp/absl/functional/internal/front_binder.h +9 -9
- data/third_party/abseil-cpp/absl/hash/internal/hash.cc +1 -1
- data/third_party/abseil-cpp/absl/hash/internal/hash.h +13 -3
- data/third_party/abseil-cpp/absl/hash/internal/low_level_hash.cc +60 -28
- data/third_party/abseil-cpp/absl/hash/internal/low_level_hash.h +4 -0
- data/third_party/abseil-cpp/absl/log/absl_vlog_is_on.h +3 -3
- data/third_party/abseil-cpp/absl/log/globals.h +28 -15
- data/third_party/abseil-cpp/absl/log/internal/check_op.cc +20 -0
- data/third_party/abseil-cpp/absl/log/internal/check_op.h +63 -21
- data/third_party/abseil-cpp/absl/log/internal/conditions.h +2 -2
- data/third_party/abseil-cpp/absl/log/internal/log_impl.h +23 -23
- data/third_party/abseil-cpp/absl/log/internal/log_message.cc +104 -47
- data/third_party/abseil-cpp/absl/log/internal/log_message.h +23 -4
- data/third_party/abseil-cpp/absl/log/internal/nullstream.h +1 -10
- data/third_party/abseil-cpp/absl/log/internal/strip.h +36 -0
- data/third_party/abseil-cpp/absl/log/log.h +5 -1
- data/third_party/abseil-cpp/absl/log/log_sink.h +11 -4
- data/third_party/abseil-cpp/absl/log/vlog_is_on.h +3 -3
- data/third_party/abseil-cpp/absl/meta/type_traits.h +138 -42
- data/third_party/abseil-cpp/absl/numeric/int128.cc +0 -3
- data/third_party/abseil-cpp/absl/numeric/int128.h +35 -5
- data/third_party/abseil-cpp/absl/numeric/int128_have_intrinsic.inc +14 -0
- data/third_party/abseil-cpp/absl/numeric/int128_no_intrinsic.inc +18 -0
- data/third_party/abseil-cpp/absl/numeric/internal/bits.h +6 -2
- data/third_party/abseil-cpp/absl/random/beta_distribution.h +8 -8
- data/third_party/abseil-cpp/absl/random/bit_gen_ref.h +9 -7
- data/third_party/abseil-cpp/absl/random/distributions.h +11 -11
- data/third_party/abseil-cpp/absl/random/seed_sequences.h +2 -0
- data/third_party/abseil-cpp/absl/status/internal/statusor_internal.h +61 -2
- data/third_party/abseil-cpp/absl/status/status.cc +0 -4
- data/third_party/abseil-cpp/absl/status/status.h +4 -4
- data/third_party/abseil-cpp/absl/status/statusor.h +108 -142
- data/third_party/abseil-cpp/absl/strings/ascii.cc +32 -71
- data/third_party/abseil-cpp/absl/strings/cord.cc +20 -15
- data/third_party/abseil-cpp/absl/strings/cord.h +68 -7
- data/third_party/abseil-cpp/absl/strings/escaping.cc +96 -21
- data/third_party/abseil-cpp/absl/strings/escaping.h +25 -8
- data/third_party/abseil-cpp/absl/strings/has_absl_stringify.h +1 -0
- data/third_party/abseil-cpp/absl/strings/internal/charconv_bigint.h +10 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_internal.h +29 -9
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree.h +2 -2
- data/third_party/abseil-cpp/absl/strings/internal/cordz_functions.cc +19 -13
- data/third_party/abseil-cpp/absl/strings/internal/cordz_functions.h +23 -13
- data/third_party/abseil-cpp/absl/strings/internal/cordz_handle.cc +24 -24
- data/third_party/abseil-cpp/absl/strings/internal/cordz_info.cc +12 -7
- data/third_party/abseil-cpp/absl/strings/internal/cordz_info.h +9 -4
- data/third_party/abseil-cpp/absl/strings/internal/escaping.cc +5 -2
- data/third_party/abseil-cpp/absl/strings/internal/str_join_internal.h +23 -2
- data/third_party/abseil-cpp/absl/strings/internal/str_split_internal.h +5 -1
- data/third_party/abseil-cpp/absl/strings/numbers.cc +107 -333
- data/third_party/abseil-cpp/absl/strings/numbers.h +12 -151
- data/third_party/abseil-cpp/absl/strings/str_cat.cc +49 -142
- data/third_party/abseil-cpp/absl/strings/str_cat.h +70 -85
- data/third_party/abseil-cpp/absl/strings/str_format.h +1 -1
- data/third_party/abseil-cpp/absl/strings/str_join.h +19 -5
- data/third_party/abseil-cpp/absl/strings/str_split.h +2 -2
- data/third_party/abseil-cpp/absl/strings/string_view.h +3 -2
- data/third_party/abseil-cpp/absl/strings/substitute.cc +4 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc +11 -2
- data/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.h +5 -0
- data/third_party/abseil-cpp/absl/synchronization/mutex.h +5 -4
- data/third_party/abseil-cpp/absl/time/civil_time.h +2 -2
- data/third_party/abseil-cpp/absl/time/clock.cc +15 -1
- data/third_party/abseil-cpp/absl/time/duration.cc +58 -53
- data/third_party/abseil-cpp/absl/time/format.cc +2 -1
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_libc.cc +1 -1
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_lookup.cc +0 -29
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/tzfile.h +3 -3
- data/third_party/abseil-cpp/absl/time/time.h +73 -29
- data/third_party/abseil-cpp/absl/types/compare.h +505 -0
- data/third_party/abseil-cpp/absl/types/internal/optional.h +2 -2
- data/third_party/abseil-cpp/absl/types/internal/variant.h +55 -67
- data/third_party/abseil-cpp/absl/types/optional.h +15 -18
- data/third_party/abseil-cpp/absl/types/span.h +3 -2
- data/third_party/abseil-cpp/absl/types/variant.h +19 -24
- data/third_party/abseil-cpp/absl/utility/utility.h +3 -41
- data/third_party/boringssl-with-bazel/src/crypto/base64/base64.c +4 -0
- data/third_party/boringssl-with-bazel/src/crypto/{fipsmodule/rand/fork_detect.h → bcm_support.h} +51 -6
- data/third_party/boringssl-with-bazel/src/crypto/bio/bio.c +12 -12
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/cbs.c +3 -5
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_chacha20poly1305.c +7 -0
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/internal.h +43 -0
- data/third_party/boringssl-with-bazel/src/crypto/conf/conf.c +66 -41
- data/third_party/boringssl-with-bazel/src/crypto/cpu_arm_linux.c +4 -1
- data/third_party/boringssl-with-bazel/src/crypto/cpu_intel.c +71 -37
- data/third_party/boringssl-with-bazel/src/crypto/crypto.c +8 -62
- data/third_party/boringssl-with-bazel/src/crypto/dilithium/dilithium.c +1539 -0
- data/third_party/boringssl-with-bazel/src/crypto/dilithium/internal.h +58 -0
- data/third_party/boringssl-with-bazel/src/crypto/dsa/dsa.c +10 -3
- data/third_party/boringssl-with-bazel/src/crypto/dsa/dsa_asn1.c +0 -2
- data/third_party/boringssl-with-bazel/src/crypto/dsa/internal.h +2 -0
- data/third_party/boringssl-with-bazel/src/crypto/ecdsa_extra/ecdsa_asn1.c +160 -14
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/aes/{aes.c → aes.c.inc} +21 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/aes/internal.h +33 -7
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bcm.c +84 -80
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bcm_interface.h +89 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{div.c → div.c.inc} +146 -179
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{exponentiation.c → exponentiation.c.inc} +45 -1
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/internal.h +33 -23
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{random.c → random.c.inc} +6 -8
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{sqrt.c → sqrt.c.inc} +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/{e_aes.c → e_aes.c.inc} +9 -8
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{ec_key.c → ec_key.c.inc} +11 -7
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{p256-nistz.c → p256-nistz.c.inc} +104 -7
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p256-nistz.h +65 -8
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ecdsa/{ecdsa.c → ecdsa.c.inc} +52 -107
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ecdsa/internal.h +28 -11
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/fips_shared_support.c +3 -6
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/internal.h +1 -80
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/{rand.c → rand.c.inc} +26 -40
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/{padding.c → padding.c.inc} +2 -5
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/{rsa_impl.c → rsa_impl.c.inc} +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/self_check/{fips.c → fips.c.inc} +6 -4
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/self_check/{self_check.c → self_check.c.inc} +9 -35
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/service_indicator/internal.h +2 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/service_indicator/{service_indicator.c → service_indicator.c.inc} +2 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/internal.h +9 -4
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/{sha512.c → sha512.c.inc} +6 -0
- data/third_party/boringssl-with-bazel/src/crypto/hpke/hpke.c +293 -2
- data/third_party/boringssl-with-bazel/src/crypto/internal.h +98 -24
- data/third_party/boringssl-with-bazel/src/crypto/kyber/kyber.c +1 -0
- data/third_party/boringssl-with-bazel/src/crypto/mem.c +7 -3
- data/third_party/boringssl-with-bazel/src/crypto/mldsa/internal.h +73 -0
- data/third_party/boringssl-with-bazel/src/crypto/mldsa/mldsa.c +1687 -0
- data/third_party/boringssl-with-bazel/src/crypto/mlkem/internal.h +90 -0
- data/third_party/boringssl-with-bazel/src/crypto/mlkem/mlkem.cc +1097 -0
- data/third_party/boringssl-with-bazel/src/crypto/obj/obj_dat.h +4 -1
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_lib.c +4 -5
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_pk8.c +2 -3
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_pkey.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/internal.h +1 -0
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/deterministic.c +9 -1
- data/third_party/boringssl-with-bazel/src/crypto/{fipsmodule/rand → rand_extra}/fork_detect.c +26 -28
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/getentropy.c +9 -1
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/ios.c +9 -1
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/passive.c +19 -3
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/rand_extra.c +26 -23
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/sysrand_internal.h +37 -0
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/trusty.c +9 -1
- data/third_party/boringssl-with-bazel/src/crypto/{fipsmodule/rand → rand_extra}/urandom.c +19 -19
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/windows.c +8 -1
- data/third_party/boringssl-with-bazel/src/crypto/rsa_extra/internal.h +2 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/internal.h +0 -4
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_utl.c +49 -16
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_lu.c +0 -10
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_vfy.c +7 -17
- data/third_party/boringssl-with-bazel/src/include/openssl/asn1.h +14 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/bio.h +8 -6
- data/third_party/boringssl-with-bazel/src/include/openssl/bn.h +14 -9
- data/third_party/boringssl-with-bazel/src/include/openssl/crypto.h +9 -11
- data/third_party/boringssl-with-bazel/src/include/openssl/experimental/dilithium.h +129 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/experimental/kyber.h +10 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/hpke.h +8 -6
- data/third_party/boringssl-with-bazel/src/include/openssl/mldsa.h +136 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/mlkem.h +246 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/nid.h +3 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/pem.h +3 -4
- data/third_party/boringssl-with-bazel/src/include/openssl/service_indicator.h +2 -2
- data/third_party/boringssl-with-bazel/src/include/openssl/span.h +48 -12
- data/third_party/boringssl-with-bazel/src/include/openssl/ssl.h +118 -38
- data/third_party/boringssl-with-bazel/src/include/openssl/x509.h +0 -23
- data/third_party/boringssl-with-bazel/src/ssl/d1_both.cc +9 -12
- data/third_party/boringssl-with-bazel/src/ssl/d1_lib.cc +6 -0
- data/third_party/boringssl-with-bazel/src/ssl/d1_pkt.cc +10 -5
- data/third_party/boringssl-with-bazel/src/ssl/dtls_method.cc +14 -2
- data/third_party/boringssl-with-bazel/src/ssl/dtls_record.cc +296 -61
- data/third_party/boringssl-with-bazel/src/ssl/extensions.cc +24 -16
- data/third_party/boringssl-with-bazel/src/ssl/handshake_client.cc +71 -39
- data/third_party/boringssl-with-bazel/src/ssl/handshake_server.cc +16 -4
- data/third_party/boringssl-with-bazel/src/ssl/internal.h +125 -38
- data/third_party/boringssl-with-bazel/src/ssl/s3_both.cc +44 -16
- data/third_party/boringssl-with-bazel/src/ssl/s3_pkt.cc +21 -1
- data/third_party/boringssl-with-bazel/src/ssl/ssl_aead_ctx.cc +86 -1
- data/third_party/boringssl-with-bazel/src/ssl/ssl_buffer.cc +7 -4
- data/third_party/boringssl-with-bazel/src/ssl/ssl_key_share.cc +98 -3
- data/third_party/boringssl-with-bazel/src/ssl/ssl_lib.cc +69 -29
- data/third_party/boringssl-with-bazel/src/ssl/ssl_privkey.cc +59 -20
- data/third_party/boringssl-with-bazel/src/ssl/ssl_versions.cc +7 -1
- data/third_party/boringssl-with-bazel/src/ssl/tls13_both.cc +2 -1
- data/third_party/boringssl-with-bazel/src/ssl/tls13_client.cc +18 -4
- data/third_party/boringssl-with-bazel/src/ssl/tls13_enc.cc +96 -34
- data/third_party/boringssl-with-bazel/src/ssl/tls13_server.cc +15 -5
- data/third_party/boringssl-with-bazel/src/ssl/tls_record.cc +4 -24
- data/third_party/upb/upb/base/string_view.h +1 -1
- data/third_party/upb/upb/json/decode.c +21 -3
- data/third_party/upb/upb/json/encode.c +2 -2
- data/third_party/upb/upb/lex/round_trip.c +10 -0
- data/third_party/upb/upb/mem/arena.c +79 -3
- data/third_party/upb/upb/mem/arena.h +20 -9
- data/third_party/upb/upb/mem/arena.hpp +5 -1
- data/third_party/upb/upb/mem/internal/arena.h +11 -8
- data/third_party/upb/upb/message/accessors.c +6 -7
- data/third_party/upb/upb/message/accessors.h +180 -378
- data/third_party/upb/upb/message/array.c +26 -3
- data/third_party/upb/upb/message/array.h +17 -9
- data/third_party/upb/upb/message/compat.c +5 -5
- data/third_party/upb/upb/message/compat.h +3 -3
- data/third_party/upb/upb/message/copy.c +23 -20
- data/third_party/upb/upb/message/internal/accessors.h +610 -55
- data/third_party/upb/upb/message/internal/array.h +23 -15
- data/third_party/upb/upb/message/internal/compare_unknown.c +289 -0
- data/third_party/upb/upb/message/internal/compare_unknown.h +49 -0
- data/third_party/upb/upb/message/internal/extension.c +12 -12
- data/third_party/upb/upb/message/internal/extension.h +9 -12
- data/third_party/upb/upb/message/internal/map.h +15 -0
- data/third_party/upb/upb/message/internal/map_sorter.h +4 -5
- data/third_party/upb/upb/message/internal/message.c +19 -3
- data/third_party/upb/upb/message/internal/message.h +11 -0
- data/third_party/upb/upb/message/internal/tagged_ptr.h +5 -5
- data/third_party/upb/upb/message/internal/types.h +41 -1
- data/third_party/upb/upb/message/map.c +25 -0
- data/third_party/upb/upb/message/map.h +11 -7
- data/third_party/upb/upb/message/merge.c +38 -0
- data/third_party/upb/upb/message/merge.h +26 -0
- data/third_party/upb/upb/message/message.c +83 -4
- data/third_party/upb/upb/message/message.h +16 -1
- data/third_party/upb/upb/message/tagged_ptr.h +4 -8
- data/third_party/upb/upb/message/value.h +26 -0
- data/third_party/upb/upb/mini_descriptor/build_enum.c +3 -3
- data/third_party/upb/upb/mini_descriptor/build_enum.h +6 -14
- data/third_party/upb/upb/mini_descriptor/decode.c +19 -3
- data/third_party/upb/upb/mini_descriptor/link.c +23 -21
- data/third_party/upb/upb/mini_table/enum.h +2 -4
- data/third_party/upb/upb/mini_table/extension.h +4 -12
- data/third_party/upb/upb/mini_table/extension_registry.c +18 -0
- data/third_party/upb/upb/mini_table/extension_registry.h +17 -0
- data/third_party/upb/upb/mini_table/field.h +12 -38
- data/third_party/upb/upb/mini_table/file.h +6 -19
- data/third_party/upb/upb/mini_table/internal/enum.h +1 -1
- data/third_party/upb/upb/mini_table/internal/extension.h +18 -9
- data/third_party/upb/upb/mini_table/internal/field.h +23 -23
- data/third_party/upb/upb/mini_table/internal/file.h +7 -7
- data/third_party/upb/upb/mini_table/internal/message.c +21 -1
- data/third_party/upb/upb/mini_table/internal/message.h +80 -36
- data/third_party/upb/upb/mini_table/internal/sub.h +9 -4
- data/third_party/upb/upb/mini_table/message.h +23 -22
- data/third_party/upb/upb/mini_table/sub.h +4 -12
- data/third_party/upb/upb/port/def.inc +83 -6
- data/third_party/upb/upb/port/undef.inc +5 -1
- data/third_party/upb/upb/reflection/def.hpp +35 -0
- data/third_party/upb/upb/reflection/def_pool.h +2 -2
- data/third_party/upb/upb/reflection/enum_def.c +5 -1
- data/third_party/upb/upb/reflection/enum_def.h +1 -0
- data/third_party/upb/upb/reflection/enum_value_def.c +3 -8
- data/third_party/upb/upb/reflection/field_def.c +69 -29
- data/third_party/upb/upb/reflection/field_def.h +4 -0
- data/third_party/upb/upb/reflection/file_def.c +30 -4
- data/third_party/upb/upb/reflection/file_def.h +3 -0
- data/third_party/upb/upb/reflection/internal/upb_edition_defaults.h +1 -1
- data/third_party/upb/upb/reflection/message.c +26 -9
- data/third_party/upb/upb/reflection/message.h +2 -2
- data/third_party/upb/upb/reflection/message_def.c +14 -9
- data/third_party/upb/upb/reflection/method_def.h +8 -7
- data/third_party/upb/upb/reflection/service_def.h +6 -5
- data/third_party/upb/upb/text/encode.c +60 -389
- data/third_party/upb/upb/text/encode.h +1 -11
- data/third_party/upb/upb/text/internal/encode.c +180 -0
- data/third_party/upb/upb/text/internal/encode.h +240 -0
- data/third_party/upb/upb/text/options.h +22 -0
- data/third_party/upb/upb/wire/decode.c +160 -94
- data/third_party/upb/upb/wire/decode.h +14 -1
- data/third_party/upb/upb/wire/encode.c +89 -48
- data/third_party/upb/upb/wire/encode.h +12 -1
- data/third_party/upb/upb/wire/eps_copy_input_stream.h +3 -3
- data/third_party/upb/upb/wire/internal/decode_fast.c +28 -29
- data/third_party/upb/upb/wire/internal/reader.h +3 -3
- data/third_party/upb/upb/wire/reader.c +1 -2
- data/third_party/upb/upb/wire/reader.h +4 -8
- metadata +360 -275
- data/src/core/client_channel/config_selector.cc +0 -60
- data/src/core/ext/transport/chttp2/transport/http_trace.cc +0 -19
- data/src/core/ext/transport/chttp2/transport/http_trace.h +0 -24
- data/src/core/ext/transport/chttp2/transport/max_concurrent_streams_policy.cc +0 -45
- data/src/core/ext/transport/chttp2/transport/max_concurrent_streams_policy.h +0 -67
- data/src/core/ext/transport/inproc/inproc_plugin.cc +0 -23
- data/src/core/handshaker/security/tsi_error.cc +0 -31
- data/src/core/handshaker/security/tsi_error.h +0 -30
- data/src/core/lib/channel/channel_stack_trace.cc +0 -19
- data/src/core/lib/channel/channel_stack_trace.h +0 -24
- data/src/core/lib/channel/context.h +0 -105
- data/src/core/lib/channel/metrics.cc +0 -334
- data/src/core/lib/channel/metrics.h +0 -365
- data/src/core/lib/event_engine/trace.cc +0 -25
- data/src/core/lib/event_engine/trace.h +0 -48
- data/src/core/lib/gpr/android/log.cc +0 -79
- data/src/core/lib/gpr/linux/log.cc +0 -114
- data/src/core/lib/gpr/log.cc +0 -166
- data/src/core/lib/gpr/posix/log.cc +0 -111
- data/src/core/lib/gpr/windows/log.cc +0 -116
- data/src/core/lib/iomgr/ev_windows.cc +0 -30
- data/src/core/lib/promise/trace.cc +0 -20
- data/src/core/lib/promise/trace.h +0 -24
- data/src/core/lib/resource_quota/trace.cc +0 -19
- data/src/core/lib/resource_quota/trace.h +0 -24
- data/src/core/lib/slice/slice_refcount.cc +0 -20
- data/src/core/lib/surface/api_trace.cc +0 -25
- data/src/core/lib/surface/api_trace.h +0 -52
- data/src/core/lib/surface/call_trace.h +0 -24
- data/src/core/lib/surface/wait_for_cq_end_op.cc +0 -75
- data/src/core/lib/surface/wait_for_cq_end_op.h +0 -72
- data/src/core/lib/transport/batch_builder.cc +0 -172
- data/src/core/lib/transport/batch_builder.h +0 -474
- data/src/core/resolver/binder/binder_resolver.cc +0 -154
- data/src/core/resolver/xds/xds_resolver_trace.cc +0 -25
- data/src/core/resolver/xds/xds_resolver_trace.h +0 -30
- data/src/core/xds/xds_client/xds_client_stats.cc +0 -172
- data/src/core/xds/xds_client/xds_client_stats.h +0 -258
- data/third_party/abseil-cpp/absl/strings/internal/has_absl_stringify.h +0 -44
- data/third_party/boringssl-with-bazel/src/crypto/conf/conf_def.h +0 -122
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/aes/{aes_nohw.c → aes_nohw.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/aes/{key_wrap.c → key_wrap.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/aes/{mode_wrappers.c → mode_wrappers.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{add.c → add.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/asm/{x86_64-gcc.c → x86_64-gcc.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{bn.c → bn.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{bytes.c → bytes.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{cmp.c → cmp.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{ctx.c → ctx.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{div_extra.c → div_extra.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{gcd.c → gcd.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{gcd_extra.c → gcd_extra.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{generic.c → generic.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{jacobi.c → jacobi.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{montgomery.c → montgomery.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{montgomery_inv.c → montgomery_inv.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{mul.c → mul.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{prime.c → prime.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{rsaz_exp.c → rsaz_exp.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{shift.c → shift.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/{aead.c → aead.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/{cipher.c → cipher.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/{e_aesccm.c → e_aesccm.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cmac/{cmac.c → cmac.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/dh/{check.c → check.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/dh/{dh.c → dh.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/digest/{digest.c → digest.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/digest/{digests.c → digests.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/digestsign/{digestsign.c → digestsign.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{ec.c → ec.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{ec_montgomery.c → ec_montgomery.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{felem.c → felem.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{oct.c → oct.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{p224-64.c → p224-64.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{p256.c → p256.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{scalar.c → scalar.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{simple.c → simple.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{simple_mul.c → simple_mul.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{util.c → util.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{wnaf.c → wnaf.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ecdh/{ecdh.c → ecdh.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/hkdf/{hkdf.c → hkdf.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/hmac/{hmac.c → hmac.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/md4/{md4.c → md4.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/md5/{md5.c → md5.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/{cbc.c → cbc.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/{cfb.c → cfb.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/{ctr.c → ctr.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/{gcm.c → gcm.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/{gcm_nohw.c → gcm_nohw.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/{ofb.c → ofb.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/{polyval.c → polyval.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/{ctrdrbg.c → ctrdrbg.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/{blinding.c → blinding.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/{rsa.c → rsa.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/{sha1.c → sha1.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/{sha256.c → sha256.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/tls/{kdf.c → kdf.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/{fipsmodule/rand → rand_extra}/getrandom_fillin.h +0 -0
@@ -0,0 +1,1426 @@
|
|
1
|
+
// Copyright 2015 gRPC authors.
|
2
|
+
//
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
// you may not use this file except in compliance with the License.
|
5
|
+
// You may obtain a copy of the License at
|
6
|
+
//
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
//
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
// See the License for the specific language governing permissions and
|
13
|
+
// limitations under the License.
|
14
|
+
|
15
|
+
#include "src/core/client_channel/client_channel.h"
|
16
|
+
|
17
|
+
#include <grpc/event_engine/event_engine.h>
|
18
|
+
#include <grpc/impl/channel_arg_names.h>
|
19
|
+
#include <grpc/slice.h>
|
20
|
+
#include <grpc/status.h>
|
21
|
+
#include <grpc/support/json.h>
|
22
|
+
#include <grpc/support/metrics.h>
|
23
|
+
#include <grpc/support/port_platform.h>
|
24
|
+
#include <grpc/support/string_util.h>
|
25
|
+
#include <grpc/support/time.h>
|
26
|
+
#include <inttypes.h>
|
27
|
+
#include <limits.h>
|
28
|
+
|
29
|
+
#include <algorithm>
|
30
|
+
#include <functional>
|
31
|
+
#include <new>
|
32
|
+
#include <set>
|
33
|
+
#include <type_traits>
|
34
|
+
#include <utility>
|
35
|
+
#include <vector>
|
36
|
+
|
37
|
+
#include "absl/cleanup/cleanup.h"
|
38
|
+
#include "absl/log/log.h"
|
39
|
+
#include "absl/status/status.h"
|
40
|
+
#include "absl/status/statusor.h"
|
41
|
+
#include "absl/strings/cord.h"
|
42
|
+
#include "absl/strings/numbers.h"
|
43
|
+
#include "absl/strings/str_cat.h"
|
44
|
+
#include "absl/strings/str_join.h"
|
45
|
+
#include "absl/strings/string_view.h"
|
46
|
+
#include "absl/types/optional.h"
|
47
|
+
#include "absl/types/variant.h"
|
48
|
+
#include "src/core/client_channel/client_channel_internal.h"
|
49
|
+
#include "src/core/client_channel/client_channel_service_config.h"
|
50
|
+
#include "src/core/client_channel/config_selector.h"
|
51
|
+
#include "src/core/client_channel/dynamic_filters.h"
|
52
|
+
#include "src/core/client_channel/global_subchannel_pool.h"
|
53
|
+
#include "src/core/client_channel/local_subchannel_pool.h"
|
54
|
+
#include "src/core/client_channel/subchannel.h"
|
55
|
+
#include "src/core/client_channel/subchannel_interface_internal.h"
|
56
|
+
#include "src/core/ext/filters/channel_idle/legacy_channel_idle_filter.h"
|
57
|
+
#include "src/core/lib/address_utils/sockaddr_utils.h"
|
58
|
+
#include "src/core/lib/channel/channel_args.h"
|
59
|
+
#include "src/core/lib/channel/status_util.h"
|
60
|
+
#include "src/core/lib/config/core_configuration.h"
|
61
|
+
#include "src/core/lib/debug/trace.h"
|
62
|
+
#include "src/core/lib/event_engine/channel_args_endpoint_config.h"
|
63
|
+
#include "src/core/lib/iomgr/resolved_address.h"
|
64
|
+
#include "src/core/lib/promise/context.h"
|
65
|
+
#include "src/core/lib/promise/exec_ctx_wakeup_scheduler.h"
|
66
|
+
#include "src/core/lib/promise/loop.h"
|
67
|
+
#include "src/core/lib/promise/map.h"
|
68
|
+
#include "src/core/lib/promise/poll.h"
|
69
|
+
#include "src/core/lib/promise/sleep.h"
|
70
|
+
#include "src/core/lib/promise/try_seq.h"
|
71
|
+
#include "src/core/lib/resource_quota/arena.h"
|
72
|
+
#include "src/core/lib/security/credentials/credentials.h"
|
73
|
+
#include "src/core/lib/slice/slice.h"
|
74
|
+
#include "src/core/lib/slice/slice_internal.h"
|
75
|
+
#include "src/core/lib/surface/call.h"
|
76
|
+
#include "src/core/lib/surface/channel.h"
|
77
|
+
#include "src/core/lib/surface/client_call.h"
|
78
|
+
#include "src/core/lib/surface/completion_queue.h"
|
79
|
+
#include "src/core/lib/transport/call_spine.h"
|
80
|
+
#include "src/core/lib/transport/connectivity_state.h"
|
81
|
+
#include "src/core/lib/transport/metadata_batch.h"
|
82
|
+
#include "src/core/load_balancing/child_policy_handler.h"
|
83
|
+
#include "src/core/load_balancing/lb_policy.h"
|
84
|
+
#include "src/core/load_balancing/lb_policy_registry.h"
|
85
|
+
#include "src/core/load_balancing/subchannel_interface.h"
|
86
|
+
#include "src/core/resolver/endpoint_addresses.h"
|
87
|
+
#include "src/core/resolver/resolver_registry.h"
|
88
|
+
#include "src/core/service_config/service_config_impl.h"
|
89
|
+
#include "src/core/telemetry/metrics.h"
|
90
|
+
#include "src/core/util/crash.h"
|
91
|
+
#include "src/core/util/debug_location.h"
|
92
|
+
#include "src/core/util/json/json.h"
|
93
|
+
#include "src/core/util/sync.h"
|
94
|
+
#include "src/core/util/useful.h"
|
95
|
+
#include "src/core/util/work_serializer.h"
|
96
|
+
|
97
|
+
namespace grpc_core {
|
98
|
+
|
99
|
+
using grpc_event_engine::experimental::EventEngine;
|
100
|
+
|
101
|
+
using internal::ClientChannelMethodParsedConfig;
|
102
|
+
|
103
|
+
//
|
104
|
+
// ClientChannel::ResolverResultHandler
|
105
|
+
//
|
106
|
+
|
107
|
+
class ClientChannel::ResolverResultHandler : public Resolver::ResultHandler {
|
108
|
+
public:
|
109
|
+
explicit ResolverResultHandler(
|
110
|
+
WeakRefCountedPtr<ClientChannel> client_channel)
|
111
|
+
: client_channel_(std::move(client_channel)) {}
|
112
|
+
|
113
|
+
~ResolverResultHandler() override {
|
114
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
115
|
+
<< "client_channel=" << client_channel_.get()
|
116
|
+
<< ": resolver shutdown complete";
|
117
|
+
}
|
118
|
+
|
119
|
+
void ReportResult(Resolver::Result result) override
|
120
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(*client_channel_->work_serializer_) {
|
121
|
+
client_channel_->OnResolverResultChangedLocked(std::move(result));
|
122
|
+
}
|
123
|
+
|
124
|
+
private:
|
125
|
+
WeakRefCountedPtr<ClientChannel> client_channel_;
|
126
|
+
};
|
127
|
+
|
128
|
+
//
|
129
|
+
// ClientChannel::SubchannelWrapper
|
130
|
+
//
|
131
|
+
|
132
|
+
// This class is a wrapper for Subchannel that hides details of the
|
133
|
+
// channel's implementation (such as the connected subchannel) from the
|
134
|
+
// LB policy API.
|
135
|
+
//
|
136
|
+
// Note that no synchronization is needed here, because even if the
|
137
|
+
// underlying subchannel is shared between channels, this wrapper will only
|
138
|
+
// be used within one channel, so it will always be synchronized by the
|
139
|
+
// control plane work_serializer.
|
140
|
+
class ClientChannel::SubchannelWrapper
|
141
|
+
: public SubchannelInterfaceWithCallDestination {
|
142
|
+
public:
|
143
|
+
SubchannelWrapper(WeakRefCountedPtr<ClientChannel> client_channel,
|
144
|
+
RefCountedPtr<Subchannel> subchannel);
|
145
|
+
~SubchannelWrapper() override;
|
146
|
+
|
147
|
+
void Orphaned() override;
|
148
|
+
void WatchConnectivityState(
|
149
|
+
std::unique_ptr<ConnectivityStateWatcherInterface> watcher) override
|
150
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(*client_channel_->work_serializer_);
|
151
|
+
void CancelConnectivityStateWatch(
|
152
|
+
ConnectivityStateWatcherInterface* watcher) override
|
153
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(*client_channel_->work_serializer_);
|
154
|
+
|
155
|
+
RefCountedPtr<UnstartedCallDestination> call_destination() override {
|
156
|
+
return subchannel_->call_destination();
|
157
|
+
}
|
158
|
+
|
159
|
+
void RequestConnection() override { subchannel_->RequestConnection(); }
|
160
|
+
|
161
|
+
void ResetBackoff() override { subchannel_->ResetBackoff(); }
|
162
|
+
|
163
|
+
void AddDataWatcher(std::unique_ptr<DataWatcherInterface> watcher) override
|
164
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(*client_channel_->work_serializer_);
|
165
|
+
void CancelDataWatcher(DataWatcherInterface* watcher) override
|
166
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(*client_channel_->work_serializer_);
|
167
|
+
void ThrottleKeepaliveTime(int new_keepalive_time);
|
168
|
+
std::string address() const override { return subchannel_->address(); }
|
169
|
+
|
170
|
+
private:
|
171
|
+
class WatcherWrapper;
|
172
|
+
|
173
|
+
// A heterogenous lookup comparator for data watchers that allows
|
174
|
+
// unique_ptr keys to be looked up as raw pointers.
|
175
|
+
struct DataWatcherLessThan {
|
176
|
+
using is_transparent = void;
|
177
|
+
bool operator()(const std::unique_ptr<DataWatcherInterface>& p1,
|
178
|
+
const std::unique_ptr<DataWatcherInterface>& p2) const {
|
179
|
+
return p1 < p2;
|
180
|
+
}
|
181
|
+
bool operator()(const std::unique_ptr<DataWatcherInterface>& p1,
|
182
|
+
const DataWatcherInterface* p2) const {
|
183
|
+
return p1.get() < p2;
|
184
|
+
}
|
185
|
+
bool operator()(const DataWatcherInterface* p1,
|
186
|
+
const std::unique_ptr<DataWatcherInterface>& p2) const {
|
187
|
+
return p1 < p2.get();
|
188
|
+
}
|
189
|
+
};
|
190
|
+
|
191
|
+
WeakRefCountedPtr<ClientChannel> client_channel_;
|
192
|
+
RefCountedPtr<Subchannel> subchannel_;
|
193
|
+
// Maps from the address of the watcher passed to us by the LB policy
|
194
|
+
// to the address of the WrapperWatcher that we passed to the underlying
|
195
|
+
// subchannel. This is needed so that when the LB policy calls
|
196
|
+
// CancelConnectivityStateWatch() with its watcher, we know the
|
197
|
+
// corresponding WrapperWatcher to cancel on the underlying subchannel.
|
198
|
+
std::map<ConnectivityStateWatcherInterface*, WatcherWrapper*> watcher_map_
|
199
|
+
ABSL_GUARDED_BY(*client_channel_->work_serializer_);
|
200
|
+
std::set<std::unique_ptr<DataWatcherInterface>, DataWatcherLessThan>
|
201
|
+
data_watchers_ ABSL_GUARDED_BY(*client_channel_->work_serializer_);
|
202
|
+
};
|
203
|
+
|
204
|
+
// This wrapper provides a bridge between the internal Subchannel API
|
205
|
+
// and the SubchannelInterface API that we expose to LB policies.
|
206
|
+
// It implements Subchannel::ConnectivityStateWatcherInterface and wraps
|
207
|
+
// the instance of SubchannelInterface::ConnectivityStateWatcherInterface
|
208
|
+
// that was passed in by the LB policy. We pass an instance of this
|
209
|
+
// class to the underlying Subchannel, and when we get updates from
|
210
|
+
// the subchannel, we pass those on to the wrapped watcher to return
|
211
|
+
// the update to the LB policy.
|
212
|
+
//
|
213
|
+
// This class handles things like hopping into the WorkSerializer
|
214
|
+
// before passing notifications to the LB policy and propagating
|
215
|
+
// keepalive information betwen subchannels.
|
216
|
+
class ClientChannel::SubchannelWrapper::WatcherWrapper
|
217
|
+
: public Subchannel::ConnectivityStateWatcherInterface {
|
218
|
+
public:
|
219
|
+
WatcherWrapper(
|
220
|
+
std::unique_ptr<SubchannelInterface::ConnectivityStateWatcherInterface>
|
221
|
+
watcher,
|
222
|
+
RefCountedPtr<SubchannelWrapper> subchannel_wrapper)
|
223
|
+
: watcher_(std::move(watcher)),
|
224
|
+
subchannel_wrapper_(std::move(subchannel_wrapper)) {}
|
225
|
+
|
226
|
+
~WatcherWrapper() override {
|
227
|
+
subchannel_wrapper_.reset(DEBUG_LOCATION, "WatcherWrapper");
|
228
|
+
}
|
229
|
+
|
230
|
+
void OnConnectivityStateChange(
|
231
|
+
RefCountedPtr<ConnectivityStateWatcherInterface> self,
|
232
|
+
grpc_connectivity_state state, const absl::Status& status) override {
|
233
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
234
|
+
<< "client_channel=" << subchannel_wrapper_->client_channel_.get()
|
235
|
+
<< ": connectivity change for subchannel wrapper "
|
236
|
+
<< subchannel_wrapper_.get() << " subchannel "
|
237
|
+
<< subchannel_wrapper_->subchannel_.get()
|
238
|
+
<< "; hopping into work_serializer";
|
239
|
+
self.release(); // Held by callback.
|
240
|
+
subchannel_wrapper_->client_channel_->work_serializer_->Run(
|
241
|
+
[this, state, status]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(
|
242
|
+
*subchannel_wrapper_->client_channel_->work_serializer_) {
|
243
|
+
ApplyUpdateInControlPlaneWorkSerializer(state, status);
|
244
|
+
Unref();
|
245
|
+
},
|
246
|
+
DEBUG_LOCATION);
|
247
|
+
}
|
248
|
+
|
249
|
+
grpc_pollset_set* interested_parties() override { return nullptr; }
|
250
|
+
|
251
|
+
private:
|
252
|
+
void ApplyUpdateInControlPlaneWorkSerializer(grpc_connectivity_state state,
|
253
|
+
const absl::Status& status)
|
254
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(
|
255
|
+
*subchannel_wrapper_->client_channel_->work_serializer_) {
|
256
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
257
|
+
<< "client_channel=" << subchannel_wrapper_->client_channel_.get()
|
258
|
+
<< ": processing connectivity change in work serializer for subchannel "
|
259
|
+
"wrapper "
|
260
|
+
<< subchannel_wrapper_.get() << " subchannel "
|
261
|
+
<< subchannel_wrapper_->subchannel_.get()
|
262
|
+
<< " watcher=" << watcher_.get()
|
263
|
+
<< "state=" << ConnectivityStateName(state) << " status=" << status;
|
264
|
+
absl::optional<absl::Cord> keepalive_throttling =
|
265
|
+
status.GetPayload(kKeepaliveThrottlingKey);
|
266
|
+
if (keepalive_throttling.has_value()) {
|
267
|
+
int new_keepalive_time = -1;
|
268
|
+
if (absl::SimpleAtoi(std::string(keepalive_throttling.value()),
|
269
|
+
&new_keepalive_time)) {
|
270
|
+
if (new_keepalive_time >
|
271
|
+
subchannel_wrapper_->client_channel_->keepalive_time_) {
|
272
|
+
subchannel_wrapper_->client_channel_->keepalive_time_ =
|
273
|
+
new_keepalive_time;
|
274
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
275
|
+
<< "client_channel=" << subchannel_wrapper_->client_channel_.get()
|
276
|
+
<< ": throttling keepalive time to "
|
277
|
+
<< subchannel_wrapper_->client_channel_->keepalive_time_;
|
278
|
+
// Propagate the new keepalive time to all subchannels. This is so
|
279
|
+
// that new transports created by any subchannel (and not just the
|
280
|
+
// subchannel that received the GOAWAY), use the new keepalive time.
|
281
|
+
for (auto* subchannel_wrapper :
|
282
|
+
subchannel_wrapper_->client_channel_->subchannel_wrappers_) {
|
283
|
+
subchannel_wrapper->ThrottleKeepaliveTime(new_keepalive_time);
|
284
|
+
}
|
285
|
+
}
|
286
|
+
} else {
|
287
|
+
LOG(ERROR) << "client_channel="
|
288
|
+
<< subchannel_wrapper_->client_channel_.get()
|
289
|
+
<< ": Illegal keepalive throttling value "
|
290
|
+
<< std::string(keepalive_throttling.value());
|
291
|
+
}
|
292
|
+
}
|
293
|
+
// Propagate status only in state TF.
|
294
|
+
// We specifically want to avoid propagating the status for
|
295
|
+
// state IDLE that the real subchannel gave us only for the
|
296
|
+
// purpose of keepalive propagation.
|
297
|
+
watcher_->OnConnectivityStateChange(
|
298
|
+
state,
|
299
|
+
state == GRPC_CHANNEL_TRANSIENT_FAILURE ? status : absl::OkStatus());
|
300
|
+
}
|
301
|
+
|
302
|
+
std::unique_ptr<SubchannelInterface::ConnectivityStateWatcherInterface>
|
303
|
+
watcher_;
|
304
|
+
RefCountedPtr<SubchannelWrapper> subchannel_wrapper_;
|
305
|
+
};
|
306
|
+
|
307
|
+
ClientChannel::SubchannelWrapper::SubchannelWrapper(
|
308
|
+
WeakRefCountedPtr<ClientChannel> client_channel,
|
309
|
+
RefCountedPtr<Subchannel> subchannel)
|
310
|
+
: SubchannelInterfaceWithCallDestination(
|
311
|
+
GRPC_TRACE_FLAG_ENABLED(client_channel) ? "SubchannelWrapper"
|
312
|
+
: nullptr),
|
313
|
+
client_channel_(std::move(client_channel)),
|
314
|
+
subchannel_(std::move(subchannel)) {
|
315
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
316
|
+
<< "client_channel=" << client_channel_.get()
|
317
|
+
<< ": creating subchannel wrapper " << this << " for subchannel "
|
318
|
+
<< subchannel_.get();
|
319
|
+
#ifndef NDEBUG
|
320
|
+
DCHECK(client_channel_->work_serializer_->RunningInWorkSerializer());
|
321
|
+
#endif
|
322
|
+
if (client_channel_->channelz_node_ != nullptr) {
|
323
|
+
auto* subchannel_node = subchannel_->channelz_node();
|
324
|
+
if (subchannel_node != nullptr) {
|
325
|
+
auto it =
|
326
|
+
client_channel_->subchannel_refcount_map_.find(subchannel_.get());
|
327
|
+
if (it == client_channel_->subchannel_refcount_map_.end()) {
|
328
|
+
client_channel_->channelz_node_->AddChildSubchannel(
|
329
|
+
subchannel_node->uuid());
|
330
|
+
it = client_channel_->subchannel_refcount_map_
|
331
|
+
.emplace(subchannel_.get(), 0)
|
332
|
+
.first;
|
333
|
+
}
|
334
|
+
++it->second;
|
335
|
+
}
|
336
|
+
}
|
337
|
+
client_channel_->subchannel_wrappers_.insert(this);
|
338
|
+
}
|
339
|
+
|
340
|
+
ClientChannel::SubchannelWrapper::~SubchannelWrapper() {
|
341
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
342
|
+
<< "client_channel=" << client_channel_.get()
|
343
|
+
<< ": destroying subchannel wrapper " << this << " for subchannel "
|
344
|
+
<< subchannel_.get();
|
345
|
+
}
|
346
|
+
|
347
|
+
void ClientChannel::SubchannelWrapper::Orphaned() {
|
348
|
+
// Make sure we clean up the channel's subchannel maps inside the
|
349
|
+
// WorkSerializer.
|
350
|
+
auto self = WeakRefAsSubclass<SubchannelWrapper>(DEBUG_LOCATION,
|
351
|
+
"subchannel map cleanup");
|
352
|
+
client_channel_->work_serializer_->Run(
|
353
|
+
[self]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(
|
354
|
+
*self->client_channel_->work_serializer_) {
|
355
|
+
self->client_channel_->subchannel_wrappers_.erase(self.get());
|
356
|
+
if (self->client_channel_->channelz_node_ != nullptr) {
|
357
|
+
auto* subchannel_node = self->subchannel_->channelz_node();
|
358
|
+
if (subchannel_node != nullptr) {
|
359
|
+
auto it = self->client_channel_->subchannel_refcount_map_.find(
|
360
|
+
self->subchannel_.get());
|
361
|
+
CHECK(it != self->client_channel_->subchannel_refcount_map_.end());
|
362
|
+
--it->second;
|
363
|
+
if (it->second == 0) {
|
364
|
+
self->client_channel_->channelz_node_->RemoveChildSubchannel(
|
365
|
+
subchannel_node->uuid());
|
366
|
+
self->client_channel_->subchannel_refcount_map_.erase(it);
|
367
|
+
}
|
368
|
+
}
|
369
|
+
}
|
370
|
+
},
|
371
|
+
DEBUG_LOCATION);
|
372
|
+
}
|
373
|
+
|
374
|
+
void ClientChannel::SubchannelWrapper::WatchConnectivityState(
|
375
|
+
std::unique_ptr<ConnectivityStateWatcherInterface> watcher) {
|
376
|
+
auto& watcher_wrapper = watcher_map_[watcher.get()];
|
377
|
+
CHECK(watcher_wrapper == nullptr);
|
378
|
+
watcher_wrapper = new WatcherWrapper(
|
379
|
+
std::move(watcher),
|
380
|
+
RefAsSubclass<SubchannelWrapper>(DEBUG_LOCATION, "WatcherWrapper"));
|
381
|
+
subchannel_->WatchConnectivityState(
|
382
|
+
RefCountedPtr<Subchannel::ConnectivityStateWatcherInterface>(
|
383
|
+
watcher_wrapper));
|
384
|
+
}
|
385
|
+
|
386
|
+
void ClientChannel::SubchannelWrapper::CancelConnectivityStateWatch(
|
387
|
+
ConnectivityStateWatcherInterface* watcher) {
|
388
|
+
auto it = watcher_map_.find(watcher);
|
389
|
+
CHECK(it != watcher_map_.end());
|
390
|
+
subchannel_->CancelConnectivityStateWatch(it->second);
|
391
|
+
watcher_map_.erase(it);
|
392
|
+
}
|
393
|
+
|
394
|
+
void ClientChannel::SubchannelWrapper::AddDataWatcher(
|
395
|
+
std::unique_ptr<DataWatcherInterface> watcher) {
|
396
|
+
static_cast<InternalSubchannelDataWatcherInterface*>(watcher.get())
|
397
|
+
->SetSubchannel(subchannel_.get());
|
398
|
+
CHECK(data_watchers_.insert(std::move(watcher)).second);
|
399
|
+
}
|
400
|
+
|
401
|
+
void ClientChannel::SubchannelWrapper::CancelDataWatcher(
|
402
|
+
DataWatcherInterface* watcher) {
|
403
|
+
auto it = data_watchers_.find(watcher);
|
404
|
+
if (it != data_watchers_.end()) data_watchers_.erase(it);
|
405
|
+
}
|
406
|
+
|
407
|
+
void ClientChannel::SubchannelWrapper::ThrottleKeepaliveTime(
|
408
|
+
int new_keepalive_time) {
|
409
|
+
subchannel_->ThrottleKeepaliveTime(new_keepalive_time);
|
410
|
+
}
|
411
|
+
|
412
|
+
//
|
413
|
+
// ClientChannel::ClientChannelControlHelper
|
414
|
+
//
|
415
|
+
|
416
|
+
class ClientChannel::ClientChannelControlHelper
|
417
|
+
: public LoadBalancingPolicy::ChannelControlHelper {
|
418
|
+
public:
|
419
|
+
explicit ClientChannelControlHelper(
|
420
|
+
WeakRefCountedPtr<ClientChannel> client_channel)
|
421
|
+
: client_channel_(std::move(client_channel)) {}
|
422
|
+
|
423
|
+
~ClientChannelControlHelper() override {
|
424
|
+
client_channel_.reset(DEBUG_LOCATION, "ClientChannelControlHelper");
|
425
|
+
}
|
426
|
+
|
427
|
+
RefCountedPtr<SubchannelInterface> CreateSubchannel(
|
428
|
+
const grpc_resolved_address& address, const ChannelArgs& per_address_args,
|
429
|
+
const ChannelArgs& args) override
|
430
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(*client_channel_->work_serializer_) {
|
431
|
+
// If shutting down, do nothing.
|
432
|
+
if (client_channel_->resolver_ == nullptr) return nullptr;
|
433
|
+
ChannelArgs subchannel_args = Subchannel::MakeSubchannelArgs(
|
434
|
+
args, per_address_args, client_channel_->subchannel_pool_,
|
435
|
+
client_channel_->default_authority_);
|
436
|
+
// Create subchannel.
|
437
|
+
RefCountedPtr<Subchannel> subchannel =
|
438
|
+
client_channel_->client_channel_factory_->CreateSubchannel(
|
439
|
+
address, subchannel_args);
|
440
|
+
if (subchannel == nullptr) return nullptr;
|
441
|
+
// Make sure the subchannel has updated keepalive time.
|
442
|
+
subchannel->ThrottleKeepaliveTime(client_channel_->keepalive_time_);
|
443
|
+
// Create and return wrapper for the subchannel.
|
444
|
+
return MakeRefCounted<SubchannelWrapper>(client_channel_,
|
445
|
+
std::move(subchannel));
|
446
|
+
}
|
447
|
+
|
448
|
+
void UpdateState(
|
449
|
+
grpc_connectivity_state state, const absl::Status& status,
|
450
|
+
RefCountedPtr<LoadBalancingPolicy::SubchannelPicker> picker) override
|
451
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(*client_channel_->work_serializer_) {
|
452
|
+
if (client_channel_->resolver_ == nullptr) return; // Shutting down.
|
453
|
+
if (GRPC_TRACE_FLAG_ENABLED(client_channel)) {
|
454
|
+
const char* extra = client_channel_->disconnect_error_.ok()
|
455
|
+
? ""
|
456
|
+
: " (ignoring -- channel shutting down)";
|
457
|
+
LOG(INFO) << "client_channel=" << client_channel_.get()
|
458
|
+
<< ": update: state=" << ConnectivityStateName(state)
|
459
|
+
<< " status=(" << status << ") picker=" << picker.get()
|
460
|
+
<< extra;
|
461
|
+
}
|
462
|
+
// Do update only if not shutting down.
|
463
|
+
if (client_channel_->disconnect_error_.ok()) {
|
464
|
+
client_channel_->UpdateStateAndPickerLocked(state, status, "helper",
|
465
|
+
std::move(picker));
|
466
|
+
}
|
467
|
+
}
|
468
|
+
|
469
|
+
void RequestReresolution() override
|
470
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(*client_channel_->work_serializer_) {
|
471
|
+
if (client_channel_->resolver_ == nullptr) return; // Shutting down.
|
472
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
473
|
+
<< "client_channel=" << client_channel_.get()
|
474
|
+
<< ": started name re-resolving";
|
475
|
+
client_channel_->resolver_->RequestReresolutionLocked();
|
476
|
+
}
|
477
|
+
|
478
|
+
absl::string_view GetTarget() override { return client_channel_->target(); }
|
479
|
+
|
480
|
+
absl::string_view GetAuthority() override {
|
481
|
+
return client_channel_->default_authority_;
|
482
|
+
}
|
483
|
+
|
484
|
+
RefCountedPtr<grpc_channel_credentials> GetChannelCredentials() override {
|
485
|
+
return client_channel_->channel_args_.GetObject<grpc_channel_credentials>()
|
486
|
+
->duplicate_without_call_credentials();
|
487
|
+
}
|
488
|
+
|
489
|
+
RefCountedPtr<grpc_channel_credentials> GetUnsafeChannelCredentials()
|
490
|
+
override {
|
491
|
+
return client_channel_->channel_args_.GetObject<grpc_channel_credentials>()
|
492
|
+
->Ref();
|
493
|
+
}
|
494
|
+
|
495
|
+
EventEngine* GetEventEngine() override {
|
496
|
+
return client_channel_->event_engine();
|
497
|
+
}
|
498
|
+
|
499
|
+
GlobalStatsPluginRegistry::StatsPluginGroup& GetStatsPluginGroup() override {
|
500
|
+
return client_channel_->stats_plugin_group_;
|
501
|
+
}
|
502
|
+
|
503
|
+
void AddTraceEvent(TraceSeverity severity, absl::string_view message) override
|
504
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(*client_channel_->work_serializer_) {
|
505
|
+
if (client_channel_->resolver_ == nullptr) return; // Shutting down.
|
506
|
+
if (client_channel_->channelz_node_ != nullptr) {
|
507
|
+
client_channel_->channelz_node_->AddTraceEvent(
|
508
|
+
ConvertSeverityEnum(severity),
|
509
|
+
grpc_slice_from_copied_buffer(message.data(), message.size()));
|
510
|
+
}
|
511
|
+
}
|
512
|
+
|
513
|
+
private:
|
514
|
+
static channelz::ChannelTrace::Severity ConvertSeverityEnum(
|
515
|
+
TraceSeverity severity) {
|
516
|
+
if (severity == TRACE_INFO) return channelz::ChannelTrace::Info;
|
517
|
+
if (severity == TRACE_WARNING) return channelz::ChannelTrace::Warning;
|
518
|
+
return channelz::ChannelTrace::Error;
|
519
|
+
}
|
520
|
+
|
521
|
+
WeakRefCountedPtr<ClientChannel> client_channel_;
|
522
|
+
};
|
523
|
+
|
524
|
+
//
|
525
|
+
// ClientChannel implementation
|
526
|
+
//
|
527
|
+
|
528
|
+
namespace {
|
529
|
+
|
530
|
+
RefCountedPtr<SubchannelPoolInterface> GetSubchannelPool(
|
531
|
+
const ChannelArgs& args) {
|
532
|
+
if (args.GetBool(GRPC_ARG_USE_LOCAL_SUBCHANNEL_POOL).value_or(false)) {
|
533
|
+
return MakeRefCounted<LocalSubchannelPool>();
|
534
|
+
}
|
535
|
+
return GlobalSubchannelPool::instance();
|
536
|
+
}
|
537
|
+
|
538
|
+
} // namespace
|
539
|
+
|
540
|
+
absl::StatusOr<RefCountedPtr<Channel>> ClientChannel::Create(
|
541
|
+
std::string target, ChannelArgs channel_args) {
|
542
|
+
// Get URI to resolve, using proxy mapper if needed.
|
543
|
+
if (target.empty()) {
|
544
|
+
return absl::InternalError("target URI is empty in client channel");
|
545
|
+
}
|
546
|
+
std::string uri_to_resolve = CoreConfiguration::Get()
|
547
|
+
.proxy_mapper_registry()
|
548
|
+
.MapName(target, &channel_args)
|
549
|
+
.value_or(target);
|
550
|
+
// Make sure the URI to resolve is valid, so that we know that
|
551
|
+
// resolver creation will succeed later.
|
552
|
+
if (!CoreConfiguration::Get().resolver_registry().IsValidTarget(
|
553
|
+
uri_to_resolve)) {
|
554
|
+
return absl::InvalidArgumentError(
|
555
|
+
absl::StrCat("invalid target URI: ", uri_to_resolve));
|
556
|
+
}
|
557
|
+
// Get default service config. If none is specified via the client API,
|
558
|
+
// we use an empty config.
|
559
|
+
absl::optional<absl::string_view> service_config_json =
|
560
|
+
channel_args.GetString(GRPC_ARG_SERVICE_CONFIG);
|
561
|
+
if (!service_config_json.has_value()) service_config_json = "{}";
|
562
|
+
auto default_service_config =
|
563
|
+
ServiceConfigImpl::Create(channel_args, *service_config_json);
|
564
|
+
if (!default_service_config.ok()) return default_service_config.status();
|
565
|
+
// Strip out service config channel arg, so that it doesn't affect
|
566
|
+
// subchannel uniqueness when the args flow down to that layer.
|
567
|
+
channel_args = channel_args.Remove(GRPC_ARG_SERVICE_CONFIG);
|
568
|
+
// Check client channel factory.
|
569
|
+
auto* client_channel_factory = channel_args.GetObject<ClientChannelFactory>();
|
570
|
+
if (client_channel_factory == nullptr) {
|
571
|
+
return absl::InternalError(
|
572
|
+
"Missing client channel factory in args for client channel");
|
573
|
+
}
|
574
|
+
auto* call_destination_factory =
|
575
|
+
channel_args.GetObject<CallDestinationFactory>();
|
576
|
+
if (call_destination_factory == nullptr) {
|
577
|
+
return absl::InternalError(
|
578
|
+
"Missing call destination factory in args for client channel");
|
579
|
+
}
|
580
|
+
if (channel_args.GetObject<EventEngine>() == nullptr) {
|
581
|
+
return absl::InternalError(
|
582
|
+
"Missing event engine in args for client channel");
|
583
|
+
}
|
584
|
+
// Success. Construct channel.
|
585
|
+
return MakeRefCounted<ClientChannel>(
|
586
|
+
std::move(target), std::move(channel_args), std::move(uri_to_resolve),
|
587
|
+
std::move(*default_service_config), client_channel_factory,
|
588
|
+
call_destination_factory);
|
589
|
+
}
|
590
|
+
|
591
|
+
namespace {
|
592
|
+
std::string GetDefaultAuthorityFromChannelArgs(const ChannelArgs& channel_args,
|
593
|
+
absl::string_view target) {
|
594
|
+
absl::optional<std::string> default_authority =
|
595
|
+
channel_args.GetOwnedString(GRPC_ARG_DEFAULT_AUTHORITY);
|
596
|
+
if (!default_authority.has_value()) {
|
597
|
+
return CoreConfiguration::Get().resolver_registry().GetDefaultAuthority(
|
598
|
+
target);
|
599
|
+
} else {
|
600
|
+
return std::move(*default_authority);
|
601
|
+
}
|
602
|
+
}
|
603
|
+
} // namespace
|
604
|
+
|
605
|
+
ClientChannel::ClientChannel(
|
606
|
+
std::string target, ChannelArgs channel_args, std::string uri_to_resolve,
|
607
|
+
RefCountedPtr<ServiceConfig> default_service_config,
|
608
|
+
ClientChannelFactory* client_channel_factory,
|
609
|
+
CallDestinationFactory* call_destination_factory)
|
610
|
+
: Channel(std::move(target), channel_args),
|
611
|
+
channel_args_(std::move(channel_args)),
|
612
|
+
event_engine_(channel_args_.GetObjectRef<EventEngine>()),
|
613
|
+
uri_to_resolve_(std::move(uri_to_resolve)),
|
614
|
+
service_config_parser_index_(
|
615
|
+
internal::ClientChannelServiceConfigParser::ParserIndex()),
|
616
|
+
default_service_config_(std::move(default_service_config)),
|
617
|
+
client_channel_factory_(client_channel_factory),
|
618
|
+
default_authority_(
|
619
|
+
GetDefaultAuthorityFromChannelArgs(channel_args_, this->target())),
|
620
|
+
channelz_node_(channel_args_.GetObject<channelz::ChannelNode>()),
|
621
|
+
idle_timeout_(GetClientIdleTimeout(channel_args_)),
|
622
|
+
resolver_data_for_calls_(ResolverDataForCalls{}),
|
623
|
+
picker_(nullptr),
|
624
|
+
call_destination_(
|
625
|
+
call_destination_factory->CreateCallDestination(picker_)),
|
626
|
+
work_serializer_(std::make_shared<WorkSerializer>(event_engine_)),
|
627
|
+
state_tracker_("client_channel", GRPC_CHANNEL_IDLE),
|
628
|
+
subchannel_pool_(GetSubchannelPool(channel_args_)) {
|
629
|
+
CHECK(event_engine_.get() != nullptr);
|
630
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
631
|
+
<< "client_channel=" << this << ": creating client_channel";
|
632
|
+
// Set initial keepalive time.
|
633
|
+
auto keepalive_arg = channel_args_.GetInt(GRPC_ARG_KEEPALIVE_TIME_MS);
|
634
|
+
if (keepalive_arg.has_value()) {
|
635
|
+
keepalive_time_ = Clamp(*keepalive_arg, 1, INT_MAX);
|
636
|
+
} else {
|
637
|
+
keepalive_time_ = -1; // unset
|
638
|
+
}
|
639
|
+
// Get stats plugins for channel.
|
640
|
+
grpc_event_engine::experimental::ChannelArgsEndpointConfig endpoint_config(
|
641
|
+
channel_args_);
|
642
|
+
experimental::StatsPluginChannelScope scope(
|
643
|
+
this->target(), default_authority_, endpoint_config);
|
644
|
+
stats_plugin_group_ =
|
645
|
+
GlobalStatsPluginRegistry::GetStatsPluginsForChannel(scope);
|
646
|
+
}
|
647
|
+
|
648
|
+
ClientChannel::~ClientChannel() {
|
649
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
650
|
+
<< "client_channel=" << this << ": destroying";
|
651
|
+
}
|
652
|
+
|
653
|
+
void ClientChannel::Orphaned() {
|
654
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
655
|
+
<< "client_channel=" << this << ": shutting down";
|
656
|
+
// Weird capture then copy needed to satisfy thread safety analysis,
|
657
|
+
// otherwise it seems to fail to recognize the correct lock is taken in the
|
658
|
+
// lambda.
|
659
|
+
auto self = WeakRefAsSubclass<ClientChannel>();
|
660
|
+
work_serializer_->Run(
|
661
|
+
[self]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(*self->work_serializer_) {
|
662
|
+
self->DestroyResolverAndLbPolicyLocked();
|
663
|
+
},
|
664
|
+
DEBUG_LOCATION);
|
665
|
+
// IncreaseCallCount() introduces a phony call and prevents the idle
|
666
|
+
// timer from being reset by other threads.
|
667
|
+
idle_state_.IncreaseCallCount();
|
668
|
+
idle_activity_.Reset();
|
669
|
+
}
|
670
|
+
|
671
|
+
grpc_connectivity_state ClientChannel::CheckConnectivityState(
|
672
|
+
bool try_to_connect) {
|
673
|
+
// state_tracker_ is guarded by work_serializer_, which we're not
|
674
|
+
// holding here. But the one method of state_tracker_ that *is*
|
675
|
+
// thread-safe to call without external synchronization is the state()
|
676
|
+
// method, so we can disable thread-safety analysis for this one read.
|
677
|
+
grpc_connectivity_state state =
|
678
|
+
ABSL_TS_UNCHECKED_READ(state_tracker_).state();
|
679
|
+
if (state == GRPC_CHANNEL_IDLE && try_to_connect) {
|
680
|
+
auto self = WeakRefAsSubclass<ClientChannel>(); // Held by callback.
|
681
|
+
work_serializer_->Run(
|
682
|
+
[self]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(*self->work_serializer_) {
|
683
|
+
self->TryToConnectLocked();
|
684
|
+
},
|
685
|
+
DEBUG_LOCATION);
|
686
|
+
}
|
687
|
+
return state;
|
688
|
+
}
|
689
|
+
|
690
|
+
namespace {
|
691
|
+
|
692
|
+
// A fire-and-forget object to handle external connectivity state watches.
|
693
|
+
class ExternalStateWatcher : public RefCounted<ExternalStateWatcher> {
|
694
|
+
public:
|
695
|
+
ExternalStateWatcher(WeakRefCountedPtr<ClientChannel> channel,
|
696
|
+
grpc_completion_queue* cq, void* tag,
|
697
|
+
grpc_connectivity_state last_observed_state,
|
698
|
+
Timestamp deadline)
|
699
|
+
: channel_(std::move(channel)), cq_(cq), tag_(tag) {
|
700
|
+
MutexLock lock(&mu_);
|
701
|
+
// Start watch. This inherits the ref from creation.
|
702
|
+
auto watcher =
|
703
|
+
MakeOrphanable<Watcher>(RefCountedPtr<ExternalStateWatcher>(this));
|
704
|
+
watcher_ = watcher.get();
|
705
|
+
channel_->AddConnectivityWatcher(last_observed_state, std::move(watcher));
|
706
|
+
// Start timer. This takes a second ref.
|
707
|
+
const Duration timeout = deadline - Timestamp::Now();
|
708
|
+
timer_handle_ =
|
709
|
+
channel_->event_engine()->RunAfter(timeout, [self = Ref()]() mutable {
|
710
|
+
ApplicationCallbackExecCtx callback_exec_ctx;
|
711
|
+
ExecCtx exec_ctx;
|
712
|
+
self->MaybeStartCompletion(absl::DeadlineExceededError(
|
713
|
+
"Timed out waiting for connection state change"));
|
714
|
+
// ExternalStateWatcher deletion might require an active ExecCtx.
|
715
|
+
self.reset();
|
716
|
+
});
|
717
|
+
}
|
718
|
+
|
719
|
+
private:
|
720
|
+
class Watcher : public AsyncConnectivityStateWatcherInterface {
|
721
|
+
public:
|
722
|
+
explicit Watcher(RefCountedPtr<ExternalStateWatcher> external_state_watcher)
|
723
|
+
: external_state_watcher_(std::move(external_state_watcher)) {}
|
724
|
+
|
725
|
+
void OnConnectivityStateChange(grpc_connectivity_state /*new_state*/,
|
726
|
+
const absl::Status& /*status*/) override {
|
727
|
+
external_state_watcher_->MaybeStartCompletion(absl::OkStatus());
|
728
|
+
}
|
729
|
+
|
730
|
+
private:
|
731
|
+
RefCountedPtr<ExternalStateWatcher> external_state_watcher_;
|
732
|
+
};
|
733
|
+
|
734
|
+
// This is called both when the watch reports a new connectivity state
|
735
|
+
// and when the timer fires. It will trigger a CQ notification only
|
736
|
+
// on the first call. Subsequent calls will be ignored, because
|
737
|
+
// events can come in asynchronously.
|
738
|
+
void MaybeStartCompletion(absl::Status status) {
|
739
|
+
MutexLock lock(&mu_);
|
740
|
+
if (watcher_ == nullptr) return; // Ignore subsequent notifications.
|
741
|
+
// Cancel watch.
|
742
|
+
channel_->RemoveConnectivityWatcher(watcher_);
|
743
|
+
watcher_ = nullptr;
|
744
|
+
// Cancel timer.
|
745
|
+
channel_->event_engine()->Cancel(timer_handle_);
|
746
|
+
// Send CQ completion.
|
747
|
+
Ref().release(); // Released in FinishedCompletion().
|
748
|
+
grpc_cq_end_op(cq_, tag_, status, FinishedCompletion, this,
|
749
|
+
&completion_storage_);
|
750
|
+
}
|
751
|
+
|
752
|
+
// Called when the completion is returned to the CQ.
|
753
|
+
static void FinishedCompletion(void* arg, grpc_cq_completion* /*ignored*/) {
|
754
|
+
auto* self = static_cast<ExternalStateWatcher*>(arg);
|
755
|
+
self->Unref();
|
756
|
+
}
|
757
|
+
|
758
|
+
WeakRefCountedPtr<ClientChannel> channel_;
|
759
|
+
|
760
|
+
Mutex mu_;
|
761
|
+
grpc_completion_queue* cq_ ABSL_GUARDED_BY(&mu_);
|
762
|
+
void* tag_ ABSL_GUARDED_BY(&mu_);
|
763
|
+
grpc_cq_completion completion_storage_ ABSL_GUARDED_BY(&mu_);
|
764
|
+
Watcher* watcher_ ABSL_GUARDED_BY(&mu_) = nullptr;
|
765
|
+
grpc_event_engine::experimental::EventEngine::TaskHandle timer_handle_
|
766
|
+
ABSL_GUARDED_BY(&mu_);
|
767
|
+
};
|
768
|
+
|
769
|
+
} // namespace
|
770
|
+
|
771
|
+
void ClientChannel::WatchConnectivityState(grpc_connectivity_state state,
|
772
|
+
Timestamp deadline,
|
773
|
+
grpc_completion_queue* cq,
|
774
|
+
void* tag) {
|
775
|
+
new ExternalStateWatcher(WeakRefAsSubclass<ClientChannel>(), cq, tag, state,
|
776
|
+
deadline);
|
777
|
+
}
|
778
|
+
|
779
|
+
void ClientChannel::AddConnectivityWatcher(
|
780
|
+
grpc_connectivity_state,
|
781
|
+
OrphanablePtr<AsyncConnectivityStateWatcherInterface>) {
|
782
|
+
Crash("not implemented");
|
783
|
+
// TODO(ctiller): to make this work, need to change WorkSerializer to use
|
784
|
+
// absl::AnyInvocable<> instead of std::function<>
|
785
|
+
// work_serializer_->Run(
|
786
|
+
// [self = RefAsSubclass<ClientChannel>(), initial_state,
|
787
|
+
// watcher = std::move(watcher)]()
|
788
|
+
// ABSL_EXCLUSIVE_LOCKS_REQUIRED(*work_serializer_) {
|
789
|
+
// self->state_tracker_.AddWatcher(initial_state, std::move(watcher));
|
790
|
+
// },
|
791
|
+
// DEBUG_LOCATION);
|
792
|
+
}
|
793
|
+
|
794
|
+
void ClientChannel::RemoveConnectivityWatcher(
|
795
|
+
AsyncConnectivityStateWatcherInterface* watcher) {
|
796
|
+
auto self = RefAsSubclass<ClientChannel>(); // Held by callback.
|
797
|
+
work_serializer_->Run(
|
798
|
+
[self, watcher]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(*self->work_serializer_) {
|
799
|
+
self->state_tracker_.RemoveWatcher(watcher);
|
800
|
+
},
|
801
|
+
DEBUG_LOCATION);
|
802
|
+
}
|
803
|
+
|
804
|
+
void ClientChannel::GetInfo(const grpc_channel_info* info) {
|
805
|
+
MutexLock lock(&info_mu_);
|
806
|
+
if (info->lb_policy_name != nullptr) {
|
807
|
+
*info->lb_policy_name = gpr_strdup(info_lb_policy_name_.c_str());
|
808
|
+
}
|
809
|
+
if (info->service_config_json != nullptr) {
|
810
|
+
*info->service_config_json = gpr_strdup(info_service_config_json_.c_str());
|
811
|
+
}
|
812
|
+
}
|
813
|
+
|
814
|
+
void ClientChannel::ResetConnectionBackoff() {
|
815
|
+
auto self = RefAsSubclass<ClientChannel>();
|
816
|
+
work_serializer_->Run(
|
817
|
+
[self]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(*self->work_serializer_) {
|
818
|
+
if (self->lb_policy_ != nullptr) self->lb_policy_->ResetBackoffLocked();
|
819
|
+
},
|
820
|
+
DEBUG_LOCATION);
|
821
|
+
}
|
822
|
+
|
823
|
+
namespace {
|
824
|
+
|
825
|
+
// A class to handle CQ completion for a ping.
|
826
|
+
class PingRequest {
|
827
|
+
public:
|
828
|
+
PingRequest(grpc_completion_queue* cq, void* tag) : cq_(cq), tag_(tag) {
|
829
|
+
grpc_cq_begin_op(cq, tag);
|
830
|
+
}
|
831
|
+
|
832
|
+
// Triggers CQ completion and eventually deletes the PingRequest object.
|
833
|
+
void Complete(grpc_error_handle error) {
|
834
|
+
grpc_cq_end_op(cq_, tag_, error, Destroy, this, &completion_storage_);
|
835
|
+
}
|
836
|
+
|
837
|
+
private:
|
838
|
+
static void Destroy(void* arg, grpc_cq_completion* /*storage*/) {
|
839
|
+
delete static_cast<PingRequest*>(arg);
|
840
|
+
}
|
841
|
+
|
842
|
+
grpc_completion_queue* cq_;
|
843
|
+
void* tag_;
|
844
|
+
grpc_cq_completion completion_storage_;
|
845
|
+
};
|
846
|
+
|
847
|
+
} // namespace
|
848
|
+
|
849
|
+
void ClientChannel::Ping(grpc_completion_queue*, void*) {
|
850
|
+
// TODO(ctiller): implement
|
851
|
+
Crash("not implemented");
|
852
|
+
}
|
853
|
+
|
854
|
+
grpc_call* ClientChannel::CreateCall(
|
855
|
+
grpc_call* parent_call, uint32_t propagation_mask,
|
856
|
+
grpc_completion_queue* cq, grpc_pollset_set* /*pollset_set_alternative*/,
|
857
|
+
Slice path, absl::optional<Slice> authority, Timestamp deadline, bool) {
|
858
|
+
auto arena = call_arena_allocator()->MakeArena();
|
859
|
+
arena->SetContext<grpc_event_engine::experimental::EventEngine>(
|
860
|
+
event_engine());
|
861
|
+
return MakeClientCall(parent_call, propagation_mask, cq, std::move(path),
|
862
|
+
std::move(authority), false, deadline,
|
863
|
+
compression_options(), std::move(arena), Ref());
|
864
|
+
}
|
865
|
+
|
866
|
+
void ClientChannel::StartCall(UnstartedCallHandler unstarted_handler) {
|
867
|
+
// Increment call count.
|
868
|
+
if (idle_timeout_ != Duration::Zero()) idle_state_.IncreaseCallCount();
|
869
|
+
// Exit IDLE if needed.
|
870
|
+
CheckConnectivityState(/*try_to_connect=*/true);
|
871
|
+
// Spawn a promise to wait for the resolver result.
|
872
|
+
// This will eventually start the call.
|
873
|
+
unstarted_handler.SpawnGuardedUntilCallCompletes(
|
874
|
+
"wait-for-name-resolution",
|
875
|
+
[self = RefAsSubclass<ClientChannel>(), unstarted_handler]() mutable {
|
876
|
+
const bool wait_for_ready =
|
877
|
+
unstarted_handler.UnprocessedClientInitialMetadata()
|
878
|
+
.GetOrCreatePointer(WaitForReady())
|
879
|
+
->value;
|
880
|
+
return Map(
|
881
|
+
// Wait for the resolver result.
|
882
|
+
CheckDelayed(self->resolver_data_for_calls_.NextWhen(
|
883
|
+
[wait_for_ready](
|
884
|
+
const absl::StatusOr<ResolverDataForCalls> result) {
|
885
|
+
bool got_result = false;
|
886
|
+
// If the resolver reports an error but the call is
|
887
|
+
// wait_for_ready, keep waiting for the next result
|
888
|
+
// instead of failing the call.
|
889
|
+
if (!result.ok()) {
|
890
|
+
got_result = !wait_for_ready;
|
891
|
+
} else {
|
892
|
+
// Not an error. Make sure we actually have a result.
|
893
|
+
got_result = result->config_selector != nullptr;
|
894
|
+
}
|
895
|
+
return got_result;
|
896
|
+
})),
|
897
|
+
// Handle resolver result.
|
898
|
+
[self, unstarted_handler](
|
899
|
+
std::tuple<absl::StatusOr<ResolverDataForCalls>, bool>
|
900
|
+
result_and_delayed) mutable {
|
901
|
+
auto& resolver_data = std::get<0>(result_and_delayed);
|
902
|
+
const bool was_queued = std::get<1>(result_and_delayed);
|
903
|
+
if (!resolver_data.ok()) return resolver_data.status();
|
904
|
+
// Apply service config to call.
|
905
|
+
absl::Status status = self->ApplyServiceConfigToCall(
|
906
|
+
*resolver_data->config_selector,
|
907
|
+
unstarted_handler.UnprocessedClientInitialMetadata());
|
908
|
+
if (!status.ok()) return status;
|
909
|
+
// If the call was queued, add trace annotation.
|
910
|
+
if (was_queued) {
|
911
|
+
auto* call_tracer =
|
912
|
+
MaybeGetContext<CallTracerAnnotationInterface>();
|
913
|
+
if (call_tracer != nullptr) {
|
914
|
+
call_tracer->RecordAnnotation(
|
915
|
+
"Delayed name resolution complete.");
|
916
|
+
}
|
917
|
+
}
|
918
|
+
// Start the call on the destination provided by the
|
919
|
+
// resolver.
|
920
|
+
resolver_data->call_destination->StartCall(
|
921
|
+
std::move(unstarted_handler));
|
922
|
+
return absl::OkStatus();
|
923
|
+
});
|
924
|
+
});
|
925
|
+
}
|
926
|
+
|
927
|
+
void ClientChannel::CreateResolverLocked() {
|
928
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
929
|
+
<< "client_channel=" << this << ": starting name resolution for "
|
930
|
+
<< uri_to_resolve_;
|
931
|
+
resolver_ = CoreConfiguration::Get().resolver_registry().CreateResolver(
|
932
|
+
uri_to_resolve_, channel_args_, nullptr, work_serializer_,
|
933
|
+
std::make_unique<ResolverResultHandler>(
|
934
|
+
WeakRefAsSubclass<ClientChannel>()));
|
935
|
+
// Since the validity of the args was checked when the channel was created,
|
936
|
+
// CreateResolver() must return a non-null result.
|
937
|
+
CHECK(resolver_ != nullptr);
|
938
|
+
UpdateStateLocked(GRPC_CHANNEL_CONNECTING, absl::Status(),
|
939
|
+
"started resolving");
|
940
|
+
resolver_->StartLocked();
|
941
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
942
|
+
<< "client_channel=" << this << ": created resolver=" << resolver_.get();
|
943
|
+
}
|
944
|
+
|
945
|
+
void ClientChannel::DestroyResolverAndLbPolicyLocked() {
|
946
|
+
if (resolver_ != nullptr) {
|
947
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
948
|
+
<< "client_channel=" << this
|
949
|
+
<< ": shutting down resolver=" << resolver_.get();
|
950
|
+
resolver_.reset();
|
951
|
+
saved_service_config_.reset();
|
952
|
+
saved_config_selector_.reset();
|
953
|
+
resolver_data_for_calls_.Set(ResolverDataForCalls{nullptr, nullptr});
|
954
|
+
// Clear LB policy if set.
|
955
|
+
if (lb_policy_ != nullptr) {
|
956
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
957
|
+
<< "client_channel=" << this
|
958
|
+
<< ": shutting down lb_policy=" << lb_policy_.get();
|
959
|
+
lb_policy_.reset();
|
960
|
+
picker_.Set(MakeRefCounted<LoadBalancingPolicy::DropPicker>(
|
961
|
+
absl::UnavailableError("Channel shutdown")));
|
962
|
+
}
|
963
|
+
}
|
964
|
+
}
|
965
|
+
|
966
|
+
void ClientChannel::TryToConnectLocked() {
|
967
|
+
if (disconnect_error_.ok()) {
|
968
|
+
if (lb_policy_ != nullptr) {
|
969
|
+
lb_policy_->ExitIdleLocked();
|
970
|
+
} else if (resolver_ == nullptr) {
|
971
|
+
CreateResolverLocked();
|
972
|
+
}
|
973
|
+
}
|
974
|
+
}
|
975
|
+
|
976
|
+
namespace {
|
977
|
+
|
978
|
+
RefCountedPtr<LoadBalancingPolicy::Config> ChooseLbPolicy(
|
979
|
+
const Resolver::Result& resolver_result,
|
980
|
+
const internal::ClientChannelGlobalParsedConfig* parsed_service_config) {
|
981
|
+
// Prefer the LB policy config found in the service config.
|
982
|
+
if (parsed_service_config->parsed_lb_config() != nullptr) {
|
983
|
+
return parsed_service_config->parsed_lb_config();
|
984
|
+
}
|
985
|
+
// Try the deprecated LB policy name from the service config.
|
986
|
+
// If not, try the setting from channel args.
|
987
|
+
absl::optional<absl::string_view> policy_name;
|
988
|
+
if (!parsed_service_config->parsed_deprecated_lb_policy().empty()) {
|
989
|
+
policy_name = parsed_service_config->parsed_deprecated_lb_policy();
|
990
|
+
} else {
|
991
|
+
policy_name = resolver_result.args.GetString(GRPC_ARG_LB_POLICY_NAME);
|
992
|
+
bool requires_config = false;
|
993
|
+
if (policy_name.has_value() &&
|
994
|
+
(!CoreConfiguration::Get()
|
995
|
+
.lb_policy_registry()
|
996
|
+
.LoadBalancingPolicyExists(*policy_name, &requires_config) ||
|
997
|
+
requires_config)) {
|
998
|
+
if (requires_config) {
|
999
|
+
LOG(ERROR) << "LB policy: " << *policy_name
|
1000
|
+
<< " passed through channel_args must not "
|
1001
|
+
"require a config. Using pick_first instead.";
|
1002
|
+
} else {
|
1003
|
+
LOG(ERROR) << "LB policy: " << *policy_name
|
1004
|
+
<< " passed through channel_args does not exist. "
|
1005
|
+
"Using pick_first instead.";
|
1006
|
+
}
|
1007
|
+
policy_name = "pick_first";
|
1008
|
+
}
|
1009
|
+
}
|
1010
|
+
// Use pick_first if nothing was specified and we didn't select grpclb
|
1011
|
+
// above.
|
1012
|
+
if (!policy_name.has_value()) policy_name = "pick_first";
|
1013
|
+
// Now that we have the policy name, construct an empty config for it.
|
1014
|
+
Json config_json = Json::FromArray({Json::FromObject({
|
1015
|
+
{std::string(*policy_name), Json::FromObject({})},
|
1016
|
+
})});
|
1017
|
+
auto lb_policy_config =
|
1018
|
+
CoreConfiguration::Get().lb_policy_registry().ParseLoadBalancingConfig(
|
1019
|
+
config_json);
|
1020
|
+
// The policy name came from one of three places:
|
1021
|
+
// - The deprecated loadBalancingPolicy field in the service config,
|
1022
|
+
// in which case the code in ClientChannelServiceConfigParser
|
1023
|
+
// already verified that the policy does not require a config.
|
1024
|
+
// - One of the hard-coded values here, all of which are known to not
|
1025
|
+
// require a config.
|
1026
|
+
// - A channel arg, in which case we check that the specified policy exists
|
1027
|
+
// and accepts an empty config. If not, we revert to using pick_first
|
1028
|
+
// lb_policy
|
1029
|
+
CHECK_OK(lb_policy_config);
|
1030
|
+
return std::move(*lb_policy_config);
|
1031
|
+
}
|
1032
|
+
|
1033
|
+
} // namespace
|
1034
|
+
|
1035
|
+
void ClientChannel::OnResolverResultChangedLocked(Resolver::Result result) {
|
1036
|
+
// Handle race conditions.
|
1037
|
+
if (resolver_ == nullptr) return;
|
1038
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
1039
|
+
<< "client_channel=" << this << ": got resolver result";
|
1040
|
+
// Grab resolver result health callback.
|
1041
|
+
auto resolver_callback = std::move(result.result_health_callback);
|
1042
|
+
absl::Status resolver_result_status;
|
1043
|
+
// We only want to trace the address resolution in the follow cases:
|
1044
|
+
// (a) Address resolution resulted in service config change.
|
1045
|
+
// (b) Address resolution that causes number of backends to go from
|
1046
|
+
// zero to non-zero.
|
1047
|
+
// (c) Address resolution that causes number of backends to go from
|
1048
|
+
// non-zero to zero.
|
1049
|
+
// (d) Address resolution that causes a new LB policy to be created.
|
1050
|
+
//
|
1051
|
+
// We track a list of strings to eventually be concatenated and traced.
|
1052
|
+
std::vector<const char*> trace_strings;
|
1053
|
+
const bool resolution_contains_addresses =
|
1054
|
+
result.addresses.ok() && !result.addresses->empty();
|
1055
|
+
if (!resolution_contains_addresses &&
|
1056
|
+
previous_resolution_contained_addresses_) {
|
1057
|
+
trace_strings.push_back("Address list became empty");
|
1058
|
+
} else if (resolution_contains_addresses &&
|
1059
|
+
!previous_resolution_contained_addresses_) {
|
1060
|
+
trace_strings.push_back("Address list became non-empty");
|
1061
|
+
}
|
1062
|
+
previous_resolution_contained_addresses_ = resolution_contains_addresses;
|
1063
|
+
std::string service_config_error_string_storage;
|
1064
|
+
if (!result.service_config.ok()) {
|
1065
|
+
service_config_error_string_storage =
|
1066
|
+
result.service_config.status().ToString();
|
1067
|
+
trace_strings.push_back(service_config_error_string_storage.c_str());
|
1068
|
+
}
|
1069
|
+
// Choose the service config.
|
1070
|
+
RefCountedPtr<ServiceConfig> service_config;
|
1071
|
+
RefCountedPtr<ConfigSelector> config_selector;
|
1072
|
+
if (!result.service_config.ok()) {
|
1073
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
1074
|
+
<< "client_channel=" << this
|
1075
|
+
<< ": resolver returned service config error: "
|
1076
|
+
<< result.service_config.status();
|
1077
|
+
// If the service config was invalid, then fallback to the
|
1078
|
+
// previously returned service config, if any.
|
1079
|
+
if (saved_service_config_ != nullptr) {
|
1080
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
1081
|
+
<< "client_channel=" << this
|
1082
|
+
<< ": resolver returned invalid service config; "
|
1083
|
+
"continuing to use previous service config";
|
1084
|
+
service_config = saved_service_config_;
|
1085
|
+
config_selector = saved_config_selector_;
|
1086
|
+
} else {
|
1087
|
+
// We received a service config error and we don't have a
|
1088
|
+
// previous service config to fall back to. Put the channel into
|
1089
|
+
// TRANSIENT_FAILURE.
|
1090
|
+
OnResolverErrorLocked(result.service_config.status());
|
1091
|
+
trace_strings.push_back("no valid service config");
|
1092
|
+
resolver_result_status =
|
1093
|
+
absl::UnavailableError("no valid service config");
|
1094
|
+
}
|
1095
|
+
} else if (*result.service_config == nullptr) {
|
1096
|
+
// Resolver did not return any service config.
|
1097
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
1098
|
+
<< "client_channel=" << this
|
1099
|
+
<< ": resolver returned no service config; using default service "
|
1100
|
+
"config for channel";
|
1101
|
+
service_config = default_service_config_;
|
1102
|
+
} else {
|
1103
|
+
// Use ServiceConfig and ConfigSelector returned by resolver.
|
1104
|
+
service_config = std::move(*result.service_config);
|
1105
|
+
config_selector = result.args.GetObjectRef<ConfigSelector>();
|
1106
|
+
}
|
1107
|
+
// Remove the config selector from channel args so that we're not holding
|
1108
|
+
// unnecessary refs that cause it to be destroyed somewhere other than in
|
1109
|
+
// the WorkSerializer.
|
1110
|
+
result.args = result.args.Remove(GRPC_ARG_CONFIG_SELECTOR);
|
1111
|
+
// Note: The only case in which service_config is null here is if the
|
1112
|
+
// resolver returned a service config error and we don't have a previous
|
1113
|
+
// service config to fall back to.
|
1114
|
+
if (service_config != nullptr) {
|
1115
|
+
// Extract global config for client channel.
|
1116
|
+
const internal::ClientChannelGlobalParsedConfig* parsed_service_config =
|
1117
|
+
static_cast<const internal::ClientChannelGlobalParsedConfig*>(
|
1118
|
+
service_config->GetGlobalParsedConfig(
|
1119
|
+
service_config_parser_index_));
|
1120
|
+
// Choose LB policy config.
|
1121
|
+
RefCountedPtr<LoadBalancingPolicy::Config> lb_policy_config =
|
1122
|
+
ChooseLbPolicy(result, parsed_service_config);
|
1123
|
+
// Check if the ServiceConfig has changed.
|
1124
|
+
const bool service_config_changed =
|
1125
|
+
saved_service_config_ == nullptr ||
|
1126
|
+
service_config->json_string() != saved_service_config_->json_string();
|
1127
|
+
// Check if the ConfigSelector has changed.
|
1128
|
+
const bool config_selector_changed = !ConfigSelector::Equals(
|
1129
|
+
saved_config_selector_.get(), config_selector.get());
|
1130
|
+
// If either has changed, apply the global parameters now.
|
1131
|
+
if (service_config_changed || config_selector_changed) {
|
1132
|
+
// Update service config in control plane.
|
1133
|
+
UpdateServiceConfigInControlPlaneLocked(
|
1134
|
+
std::move(service_config), std::move(config_selector),
|
1135
|
+
std::string(lb_policy_config->name()));
|
1136
|
+
// TODO(ncteisen): might be worth somehow including a snippet of the
|
1137
|
+
// config in the trace, at the risk of bloating the trace logs.
|
1138
|
+
trace_strings.push_back("Service config changed");
|
1139
|
+
} else {
|
1140
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
1141
|
+
<< "client_channel=" << this << ": service config not changed";
|
1142
|
+
}
|
1143
|
+
// Create or update LB policy, as needed.
|
1144
|
+
ChannelArgs new_args = result.args;
|
1145
|
+
resolver_result_status = CreateOrUpdateLbPolicyLocked(
|
1146
|
+
std::move(lb_policy_config),
|
1147
|
+
parsed_service_config->health_check_service_name(), std::move(result));
|
1148
|
+
// Start using new service config for calls.
|
1149
|
+
// This needs to happen after the LB policy has been updated, since
|
1150
|
+
// the ConfigSelector may need the LB policy to know about new
|
1151
|
+
// destinations before it can send RPCs to those destinations.
|
1152
|
+
if (service_config_changed || config_selector_changed) {
|
1153
|
+
UpdateServiceConfigInDataPlaneLocked(new_args);
|
1154
|
+
}
|
1155
|
+
}
|
1156
|
+
// Invoke resolver callback if needed.
|
1157
|
+
if (resolver_callback != nullptr) {
|
1158
|
+
resolver_callback(std::move(resolver_result_status));
|
1159
|
+
}
|
1160
|
+
// Add channel trace event.
|
1161
|
+
if (!trace_strings.empty()) {
|
1162
|
+
std::string message =
|
1163
|
+
absl::StrCat("Resolution event: ", absl::StrJoin(trace_strings, ", "));
|
1164
|
+
if (channelz_node_ != nullptr) {
|
1165
|
+
channelz_node_->AddTraceEvent(channelz::ChannelTrace::Severity::Info,
|
1166
|
+
grpc_slice_from_cpp_string(message));
|
1167
|
+
}
|
1168
|
+
}
|
1169
|
+
}
|
1170
|
+
|
1171
|
+
void ClientChannel::OnResolverErrorLocked(absl::Status status) {
|
1172
|
+
if (resolver_ == nullptr) return;
|
1173
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
1174
|
+
<< "client_channel=" << this
|
1175
|
+
<< ": resolver transient failure: " << status;
|
1176
|
+
// If we already have an LB policy from a previous resolution
|
1177
|
+
// result, then we continue to let it set the connectivity state.
|
1178
|
+
// Otherwise, we go into TRANSIENT_FAILURE.
|
1179
|
+
if (lb_policy_ == nullptr) {
|
1180
|
+
// Update connectivity state.
|
1181
|
+
UpdateStateLocked(GRPC_CHANNEL_TRANSIENT_FAILURE, status,
|
1182
|
+
"resolver failure");
|
1183
|
+
// Send updated resolver result.
|
1184
|
+
resolver_data_for_calls_.Set(
|
1185
|
+
MaybeRewriteIllegalStatusCode(status, "resolver"));
|
1186
|
+
}
|
1187
|
+
}
|
1188
|
+
|
1189
|
+
absl::Status ClientChannel::CreateOrUpdateLbPolicyLocked(
|
1190
|
+
RefCountedPtr<LoadBalancingPolicy::Config> lb_policy_config,
|
1191
|
+
const absl::optional<std::string>& health_check_service_name,
|
1192
|
+
Resolver::Result result) {
|
1193
|
+
// Construct update.
|
1194
|
+
LoadBalancingPolicy::UpdateArgs update_args;
|
1195
|
+
if (!result.addresses.ok()) {
|
1196
|
+
update_args.addresses = result.addresses.status();
|
1197
|
+
} else {
|
1198
|
+
update_args.addresses = std::make_shared<EndpointAddressesListIterator>(
|
1199
|
+
std::move(*result.addresses));
|
1200
|
+
}
|
1201
|
+
update_args.config = std::move(lb_policy_config);
|
1202
|
+
update_args.resolution_note = std::move(result.resolution_note);
|
1203
|
+
update_args.args = std::move(result.args);
|
1204
|
+
// Add health check service name to channel args.
|
1205
|
+
if (health_check_service_name.has_value()) {
|
1206
|
+
update_args.args = update_args.args.Set(GRPC_ARG_HEALTH_CHECK_SERVICE_NAME,
|
1207
|
+
*health_check_service_name);
|
1208
|
+
}
|
1209
|
+
// Create policy if needed.
|
1210
|
+
if (lb_policy_ == nullptr) {
|
1211
|
+
lb_policy_ = CreateLbPolicyLocked(update_args.args);
|
1212
|
+
}
|
1213
|
+
// Update the policy.
|
1214
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
1215
|
+
<< "client_channel=" << this << ": Updating child policy "
|
1216
|
+
<< lb_policy_.get();
|
1217
|
+
return lb_policy_->UpdateLocked(std::move(update_args));
|
1218
|
+
}
|
1219
|
+
|
1220
|
+
// Creates a new LB policy.
|
1221
|
+
OrphanablePtr<LoadBalancingPolicy> ClientChannel::CreateLbPolicyLocked(
|
1222
|
+
const ChannelArgs& args) {
|
1223
|
+
// The LB policy will start in state CONNECTING but will not
|
1224
|
+
// necessarily send us an update synchronously, so set state to
|
1225
|
+
// CONNECTING (in case the resolver had previously failed and put the
|
1226
|
+
// channel into TRANSIENT_FAILURE) and make sure we have a queueing picker.
|
1227
|
+
UpdateStateAndPickerLocked(
|
1228
|
+
GRPC_CHANNEL_CONNECTING, absl::Status(), "started resolving",
|
1229
|
+
MakeRefCounted<LoadBalancingPolicy::QueuePicker>(nullptr));
|
1230
|
+
// Now create the LB policy.
|
1231
|
+
LoadBalancingPolicy::Args lb_policy_args;
|
1232
|
+
lb_policy_args.work_serializer = work_serializer_;
|
1233
|
+
lb_policy_args.channel_control_helper =
|
1234
|
+
std::make_unique<ClientChannelControlHelper>(
|
1235
|
+
WeakRefAsSubclass<ClientChannel>());
|
1236
|
+
lb_policy_args.args = args;
|
1237
|
+
OrphanablePtr<LoadBalancingPolicy> lb_policy =
|
1238
|
+
MakeOrphanable<ChildPolicyHandler>(std::move(lb_policy_args),
|
1239
|
+
&client_channel_trace);
|
1240
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
1241
|
+
<< "client_channel=" << this << ": created new LB policy "
|
1242
|
+
<< lb_policy.get();
|
1243
|
+
return lb_policy;
|
1244
|
+
}
|
1245
|
+
|
1246
|
+
void ClientChannel::UpdateServiceConfigInControlPlaneLocked(
|
1247
|
+
RefCountedPtr<ServiceConfig> service_config,
|
1248
|
+
RefCountedPtr<ConfigSelector> config_selector, std::string lb_policy_name) {
|
1249
|
+
std::string service_config_json(service_config->json_string());
|
1250
|
+
// Update service config.
|
1251
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
1252
|
+
<< "client_channel=" << this << ": using service config: \""
|
1253
|
+
<< service_config_json << "\"";
|
1254
|
+
saved_service_config_ = std::move(service_config);
|
1255
|
+
// Update config selector.
|
1256
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
1257
|
+
<< "client_channel=" << this << ": using ConfigSelector "
|
1258
|
+
<< config_selector.get();
|
1259
|
+
saved_config_selector_ = std::move(config_selector);
|
1260
|
+
// Update the data used by GetChannelInfo().
|
1261
|
+
{
|
1262
|
+
MutexLock lock(&info_mu_);
|
1263
|
+
info_lb_policy_name_ = std::move(lb_policy_name);
|
1264
|
+
info_service_config_json_ = std::move(service_config_json);
|
1265
|
+
}
|
1266
|
+
}
|
1267
|
+
|
1268
|
+
void ClientChannel::UpdateServiceConfigInDataPlaneLocked(
|
1269
|
+
const ChannelArgs& args) {
|
1270
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
1271
|
+
<< "client_channel=" << this << ": switching to ConfigSelector "
|
1272
|
+
<< saved_config_selector_.get();
|
1273
|
+
// Use default config selector if resolver didn't supply one.
|
1274
|
+
RefCountedPtr<ConfigSelector> config_selector = saved_config_selector_;
|
1275
|
+
if (config_selector == nullptr) {
|
1276
|
+
config_selector =
|
1277
|
+
MakeRefCounted<DefaultConfigSelector>(saved_service_config_);
|
1278
|
+
}
|
1279
|
+
// Modify channel args.
|
1280
|
+
ChannelArgs new_args = args.SetObject(this).SetObject(saved_service_config_);
|
1281
|
+
// Construct filter stack.
|
1282
|
+
auto new_blackboard = MakeRefCounted<Blackboard>();
|
1283
|
+
InterceptionChainBuilder builder(new_args, blackboard_.get(),
|
1284
|
+
new_blackboard.get());
|
1285
|
+
if (idle_timeout_ != Duration::Zero()) {
|
1286
|
+
builder.AddOnServerTrailingMetadata([this](ServerMetadata&) {
|
1287
|
+
if (idle_state_.DecreaseCallCount()) StartIdleTimer();
|
1288
|
+
});
|
1289
|
+
}
|
1290
|
+
CoreConfiguration::Get().channel_init().AddToInterceptionChainBuilder(
|
1291
|
+
GRPC_CLIENT_CHANNEL, builder);
|
1292
|
+
// Add filters returned by the config selector (e.g., xDS HTTP filters).
|
1293
|
+
config_selector->AddFilters(builder);
|
1294
|
+
// TODO(roth, ctiller): When we implement the retry interceptor, that
|
1295
|
+
// needs to be added *after* the filters added by the config selector.
|
1296
|
+
const bool enable_retries =
|
1297
|
+
!channel_args_.WantMinimalStack() &&
|
1298
|
+
channel_args_.GetBool(GRPC_ARG_ENABLE_RETRIES).value_or(true);
|
1299
|
+
if (enable_retries) {
|
1300
|
+
Crash("call v3 stack does not yet support retries");
|
1301
|
+
}
|
1302
|
+
// Create call destination.
|
1303
|
+
auto top_of_stack_call_destination = builder.Build(call_destination_);
|
1304
|
+
blackboard_ = std::move(new_blackboard);
|
1305
|
+
// Send result to data plane.
|
1306
|
+
if (!top_of_stack_call_destination.ok()) {
|
1307
|
+
resolver_data_for_calls_.Set(MaybeRewriteIllegalStatusCode(
|
1308
|
+
top_of_stack_call_destination.status(), "channel construction"));
|
1309
|
+
} else {
|
1310
|
+
resolver_data_for_calls_.Set(ResolverDataForCalls{
|
1311
|
+
std::move(config_selector), std::move(*top_of_stack_call_destination)});
|
1312
|
+
}
|
1313
|
+
}
|
1314
|
+
|
1315
|
+
void ClientChannel::UpdateStateLocked(grpc_connectivity_state state,
|
1316
|
+
const absl::Status& status,
|
1317
|
+
const char* reason) {
|
1318
|
+
if (state != GRPC_CHANNEL_SHUTDOWN &&
|
1319
|
+
state_tracker_.state() == GRPC_CHANNEL_SHUTDOWN) {
|
1320
|
+
Crash("Illegal transition SHUTDOWN -> anything");
|
1321
|
+
}
|
1322
|
+
state_tracker_.SetState(state, status, reason);
|
1323
|
+
if (channelz_node_ != nullptr) {
|
1324
|
+
channelz_node_->SetConnectivityState(state);
|
1325
|
+
channelz_node_->AddTraceEvent(
|
1326
|
+
channelz::ChannelTrace::Severity::Info,
|
1327
|
+
grpc_slice_from_static_string(
|
1328
|
+
channelz::ChannelNode::GetChannelConnectivityStateChangeString(
|
1329
|
+
state)));
|
1330
|
+
}
|
1331
|
+
}
|
1332
|
+
|
1333
|
+
void ClientChannel::UpdateStateAndPickerLocked(
|
1334
|
+
grpc_connectivity_state state, const absl::Status& status,
|
1335
|
+
const char* reason,
|
1336
|
+
RefCountedPtr<LoadBalancingPolicy::SubchannelPicker> picker) {
|
1337
|
+
UpdateStateLocked(state, status, reason);
|
1338
|
+
picker_.Set(std::move(picker));
|
1339
|
+
}
|
1340
|
+
|
1341
|
+
void ClientChannel::StartIdleTimer() {
|
1342
|
+
GRPC_TRACE_LOG(client_channel, INFO)
|
1343
|
+
<< "client_channel=" << this << ": idle timer started";
|
1344
|
+
auto self = WeakRefAsSubclass<ClientChannel>();
|
1345
|
+
auto promise = Loop([self]() {
|
1346
|
+
return TrySeq(Sleep(Timestamp::Now() + self->idle_timeout_),
|
1347
|
+
[self]() -> Poll<LoopCtl<absl::Status>> {
|
1348
|
+
if (self->idle_state_.CheckTimer()) {
|
1349
|
+
return Continue{};
|
1350
|
+
} else {
|
1351
|
+
return absl::OkStatus();
|
1352
|
+
}
|
1353
|
+
});
|
1354
|
+
});
|
1355
|
+
auto arena = SimpleArenaAllocator(0)->MakeArena();
|
1356
|
+
arena->SetContext<grpc_event_engine::experimental::EventEngine>(
|
1357
|
+
event_engine());
|
1358
|
+
idle_activity_.Set(MakeActivity(
|
1359
|
+
std::move(promise), ExecCtxWakeupScheduler{},
|
1360
|
+
[self = std::move(self)](absl::Status status) mutable {
|
1361
|
+
if (status.ok()) {
|
1362
|
+
self->work_serializer_->Run(
|
1363
|
+
[self]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(*self->work_serializer_) {
|
1364
|
+
self->DestroyResolverAndLbPolicyLocked();
|
1365
|
+
self->UpdateStateAndPickerLocked(
|
1366
|
+
GRPC_CHANNEL_IDLE, absl::OkStatus(),
|
1367
|
+
"channel entering IDLE", nullptr);
|
1368
|
+
// TODO(roth): In case there's a race condition, we
|
1369
|
+
// might need to check for any calls that are
|
1370
|
+
// queued waiting for a resolver result or an LB
|
1371
|
+
// pick.
|
1372
|
+
},
|
1373
|
+
DEBUG_LOCATION);
|
1374
|
+
}
|
1375
|
+
},
|
1376
|
+
std::move(arena)));
|
1377
|
+
}
|
1378
|
+
|
1379
|
+
absl::Status ClientChannel::ApplyServiceConfigToCall(
|
1380
|
+
ConfigSelector& config_selector,
|
1381
|
+
ClientMetadata& client_initial_metadata) const {
|
1382
|
+
GRPC_TRACE_LOG(client_channel_call, INFO)
|
1383
|
+
<< "client_channel=" << this << ": " << GetContext<Activity>()->DebugTag()
|
1384
|
+
<< " service config to call";
|
1385
|
+
// Create a ClientChannelServiceConfigCallData for the call. This stores
|
1386
|
+
// a ref to the ServiceConfig and caches the right set of parsed configs
|
1387
|
+
// to use for the call. The ClientChannelServiceConfigCallData will store
|
1388
|
+
// itself in the call context, so that it can be accessed by filters
|
1389
|
+
// below us in the stack, and it will be cleaned up when the call ends.
|
1390
|
+
auto* service_config_call_data =
|
1391
|
+
GetContext<Arena>()->New<ClientChannelServiceConfigCallData>(
|
1392
|
+
GetContext<Arena>());
|
1393
|
+
// Use the ConfigSelector to determine the config for the call.
|
1394
|
+
absl::Status call_config_status = config_selector.GetCallConfig(
|
1395
|
+
{&client_initial_metadata, GetContext<Arena>(),
|
1396
|
+
service_config_call_data});
|
1397
|
+
if (!call_config_status.ok()) {
|
1398
|
+
return MaybeRewriteIllegalStatusCode(call_config_status, "ConfigSelector");
|
1399
|
+
}
|
1400
|
+
// Apply our own method params to the call.
|
1401
|
+
auto* method_params = DownCast<ClientChannelMethodParsedConfig*>(
|
1402
|
+
service_config_call_data->GetMethodParsedConfig(
|
1403
|
+
service_config_parser_index_));
|
1404
|
+
if (method_params != nullptr) {
|
1405
|
+
// If the service config specifies a deadline, update the call's
|
1406
|
+
// deadline timer.
|
1407
|
+
if (method_params->timeout() != Duration::Zero()) {
|
1408
|
+
Call* call = GetContext<Call>();
|
1409
|
+
const Timestamp per_method_deadline =
|
1410
|
+
Timestamp::FromCycleCounterRoundUp(call->start_time()) +
|
1411
|
+
method_params->timeout();
|
1412
|
+
call->UpdateDeadline(per_method_deadline);
|
1413
|
+
}
|
1414
|
+
// If the service config set wait_for_ready and the application
|
1415
|
+
// did not explicitly set it, use the value from the service config.
|
1416
|
+
auto* wait_for_ready =
|
1417
|
+
client_initial_metadata.GetOrCreatePointer(WaitForReady());
|
1418
|
+
if (method_params->wait_for_ready().has_value() &&
|
1419
|
+
!wait_for_ready->explicitly_set) {
|
1420
|
+
wait_for_ready->value = method_params->wait_for_ready().value();
|
1421
|
+
}
|
1422
|
+
}
|
1423
|
+
return absl::OkStatus();
|
1424
|
+
}
|
1425
|
+
|
1426
|
+
} // namespace grpc_core
|