grpc 1.58.3 → 1.59.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Makefile +48 -33
- data/include/grpc/event_engine/event_engine.h +6 -10
- data/include/grpc/impl/channel_arg_names.h +4 -0
- data/include/grpc/support/port_platform.h +74 -1
- data/src/core/ext/filters/channel_idle/channel_idle_filter.cc +22 -9
- data/src/core/ext/filters/client_channel/client_channel.cc +422 -56
- data/src/core/ext/filters/client_channel/client_channel.h +52 -8
- data/src/core/ext/filters/client_channel/client_channel_plugin.cc +15 -1
- data/src/core/ext/filters/client_channel/dynamic_filters.h +2 -0
- data/src/core/ext/filters/client_channel/{http_proxy.cc → http_proxy_mapper.cc} +1 -1
- data/src/core/ext/filters/client_channel/{http_proxy.h → http_proxy_mapper.h} +3 -3
- data/src/core/ext/filters/client_channel/lb_policy/endpoint_list.cc +188 -0
- data/src/core/ext/filters/client_channel/lb_policy/endpoint_list.h +214 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +17 -4
- data/src/core/ext/filters/client_channel/lb_policy/health_check_client.cc +41 -6
- data/src/core/ext/filters/client_channel/lb_policy/health_check_client_internal.h +5 -3
- data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.cc +32 -103
- data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.h +0 -7
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +416 -139
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.h +16 -0
- data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.cc +434 -459
- data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +410 -26
- data/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h +14 -46
- data/src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/weighted_round_robin.cc +851 -57
- data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +16 -10
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc +47 -32
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_override_host.cc +55 -3
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +105 -175
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc +14 -7
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc +24 -6
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.h +36 -2
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +54 -44
- data/src/core/ext/filters/client_channel/subchannel.cc +33 -0
- data/src/core/ext/filters/client_channel/subchannel.h +9 -0
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +11 -6
- data/src/core/ext/transport/chttp2/transport/flow_control.cc +28 -22
- data/src/core/ext/transport/chttp2/transport/flow_control.h +27 -4
- data/src/core/ext/transport/chttp2/transport/frame_data.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_goaway.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_ping.cc +9 -0
- data/src/core/ext/transport/chttp2/transport/frame_ping.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_settings.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_settings.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_window_update.h +1 -1
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +34 -36
- data/src/core/ext/transport/chttp2/transport/hpack_parser.h +3 -3
- data/src/core/ext/transport/chttp2/transport/internal.h +66 -47
- data/src/core/ext/transport/chttp2/transport/{frame.h → legacy_frame.h} +3 -3
- data/src/core/ext/transport/chttp2/transport/parsing.cc +4 -2
- data/src/core/ext/transport/chttp2/transport/ping_abuse_policy.cc +10 -0
- data/src/core/ext/transport/chttp2/transport/ping_abuse_policy.h +4 -0
- data/src/core/ext/transport/chttp2/transport/stream_lists.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/writing.cc +2 -1
- data/src/core/ext/transport/inproc/inproc_transport.cc +9 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.c +16 -18
- data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.h +75 -83
- data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.c +27 -29
- data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.h +102 -110
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.c +16 -18
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.h +73 -81
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.c +65 -67
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.h +294 -302
- data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.h +20 -28
- data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.c +5 -7
- data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.h +24 -32
- data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.h +19 -27
- data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.h +10 -18
- data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.h +10 -18
- data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.c +42 -44
- data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.h +141 -149
- data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.h +8 -16
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.c +5 -7
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.h +1 -9
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.h +4 -12
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.c +36 -38
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.h +157 -165
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.c +87 -89
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.h +372 -380
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.c +13 -15
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.h +55 -63
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.c +111 -113
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.h +441 -449
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.h +8 -16
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.c +23 -25
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.h +88 -96
- data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.c +40 -42
- data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.h +180 -188
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.c +26 -28
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.h +108 -116
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.h +9 -17
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.c +65 -67
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.h +245 -253
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.c +27 -29
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.h +119 -127
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.h +6 -14
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.h +8 -16
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.h +20 -28
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.c +49 -51
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.h +184 -192
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.c +49 -51
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.h +225 -233
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.h +13 -21
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.c +63 -65
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.h +246 -254
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.c +5 -7
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.h +19 -27
- data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.c +5 -7
- data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.h +19 -27
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.h +30 -38
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.h +28 -36
- data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.h +9 -17
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.c +12 -14
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.h +48 -56
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.c +23 -25
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.h +92 -100
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.c +27 -29
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.h +108 -116
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.h +5 -13
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.c +38 -40
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.h +167 -175
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.c +34 -36
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.h +162 -170
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.c +10 -12
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.h +37 -45
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.h +13 -21
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.c +6 -8
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.h +18 -26
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.c +22 -24
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.h +97 -105
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.c +24 -26
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.h +111 -119
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.c +43 -45
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.h +183 -191
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.c +20 -22
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.h +102 -110
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.c +253 -255
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.h +1108 -1116
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.h +31 -39
- data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.c +35 -37
- data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.h +150 -158
- data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.h +10 -18
- data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.h +8 -16
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.h +13 -21
- data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.c +5 -7
- data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.h +19 -27
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.c +14 -16
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.h +53 -61
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opentelemetry.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opentelemetry.upb.h +8 -16
- data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.h +5 -13
- data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.h +24 -32
- data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.c +1 -3
- data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.h +1 -9
- data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.h +23 -31
- data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.h +23 -31
- data/src/core/ext/upb-generated/envoy/data/accesslog/v3/accesslog.upb.c +114 -116
- data/src/core/ext/upb-generated/envoy/data/accesslog/v3/accesslog.upb.h +372 -380
- data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +9 -17
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.h +30 -38
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.c +21 -23
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.h +81 -89
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +24 -32
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.c +12 -14
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.h +52 -60
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +14 -22
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.c +114 -116
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +468 -476
- data/src/core/ext/upb-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.h +5 -13
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +25 -33
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/common/v3/common.upb.c +11 -13
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +40 -48
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.h +4 -12
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.h +27 -35
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.h +5 -13
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.c +1 -3
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.h +1 -9
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.c +35 -37
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.h +165 -173
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.c +9 -11
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +32 -40
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.c +39 -41
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +169 -177
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +16 -24
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.c +1 -3
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.h +1 -9
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.c +55 -57
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.h +241 -249
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.h +31 -39
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.c +23 -25
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.h +98 -106
- data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.h +11 -19
- data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.h +18 -26
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/filter_state.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/filter_state.upb.h +9 -17
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.c +6 -8
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.h +16 -24
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.c +6 -8
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.h +24 -32
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.h +13 -21
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.c +3 -5
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.h +10 -18
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.h +6 -14
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.c +6 -8
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.h +20 -28
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/status_code_input.upb.c +1 -3
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/status_code_input.upb.h +1 -9
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.h +33 -41
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.h +18 -26
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.h +31 -39
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.c +8 -10
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.h +34 -42
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.c +14 -16
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.h +47 -55
- data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.h +13 -21
- data/src/core/ext/upb-generated/envoy/type/v3/http.upb.c +1 -3
- data/src/core/ext/upb-generated/envoy/type/v3/http.upb.h +1 -9
- data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.c +2 -4
- data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.h +4 -12
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.h +10 -18
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.c +7 -9
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.h +19 -27
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_strategy.upb.c +6 -8
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_strategy.upb.h +20 -28
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.c +1 -3
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.h +1 -9
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.h +10 -18
- data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.c +4 -6
- data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.h +12 -20
- data/src/core/ext/upb-generated/google/api/annotations.upb.c +2 -4
- data/src/core/ext/upb-generated/google/api/annotations.upb.h +1 -9
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.c +45 -47
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.h +190 -198
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.c +54 -56
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.h +210 -218
- data/src/core/ext/upb-generated/google/api/http.upb.c +15 -17
- data/src/core/ext/upb-generated/google/api/http.upb.h +60 -68
- data/src/core/ext/upb-generated/google/api/httpbody.upb.c +4 -6
- data/src/core/ext/upb-generated/google/api/httpbody.upb.h +15 -23
- data/src/core/ext/upb-generated/google/protobuf/any.upb.c +3 -5
- data/src/core/ext/upb-generated/google/protobuf/any.upb.h +7 -15
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.c +359 -204
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.h +1340 -760
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.c +3 -5
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.h +7 -15
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.c +1 -3
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.h +1 -9
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.c +11 -13
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.h +43 -51
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.c +3 -5
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.h +7 -15
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.c +10 -12
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.h +28 -36
- data/src/core/ext/upb-generated/google/rpc/status.upb.c +4 -6
- data/src/core/ext/upb-generated/google/rpc/status.upb.h +15 -23
- data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.c +11 -13
- data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.h +35 -43
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.c +10 -12
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.h +28 -36
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.c +48 -50
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.h +190 -198
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.c +5 -7
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.h +15 -23
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.c +3 -5
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.h +7 -15
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.c +21 -23
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.h +80 -88
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.c +9 -11
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.h +29 -37
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls_config.upb.c +32 -34
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls_config.upb.h +147 -155
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.c +10 -12
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.h +13 -21
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.c +4 -6
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.h +7 -15
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.c +2 -4
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.h +1 -9
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.c +4 -6
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.h +7 -15
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.c +3 -5
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.h +4 -12
- data/src/core/ext/upb-generated/validate/validate.upb.c +201 -203
- data/src/core/ext/upb-generated/validate/validate.upb.h +924 -932
- data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.c +10 -12
- data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.h +13 -21
- data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.c +4 -6
- data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.h +7 -15
- data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.c +2 -4
- data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.h +1 -9
- data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.c +9 -11
- data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.h +16 -24
- data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.c +3 -5
- data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.h +4 -12
- data/src/core/ext/upb-generated/xds/core/v3/authority.upb.c +2 -4
- data/src/core/ext/upb-generated/xds/core/v3/authority.upb.h +4 -12
- data/src/core/ext/upb-generated/xds/core/v3/cidr.upb.c +3 -5
- data/src/core/ext/upb-generated/xds/core/v3/cidr.upb.h +8 -16
- data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.c +6 -8
- data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.h +20 -28
- data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.c +4 -6
- data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.h +9 -17
- data/src/core/ext/upb-generated/xds/core/v3/extension.upb.c +3 -5
- data/src/core/ext/upb-generated/xds/core/v3/extension.upb.h +8 -16
- data/src/core/ext/upb-generated/xds/core/v3/resource.upb.c +4 -6
- data/src/core/ext/upb-generated/xds/core/v3/resource.upb.h +12 -20
- data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.c +9 -11
- data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.h +35 -43
- data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.c +5 -7
- data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.h +14 -22
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.c +16 -18
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.h +43 -51
- data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.c +3 -5
- data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.h +13 -21
- data/src/core/ext/upb-generated/xds/type/matcher/v3/cel.upb.c +2 -4
- data/src/core/ext/upb-generated/xds/type/matcher/v3/cel.upb.h +5 -13
- data/src/core/ext/upb-generated/xds/type/matcher/v3/domain.upb.c +4 -6
- data/src/core/ext/upb-generated/xds/type/matcher/v3/domain.upb.h +21 -29
- data/src/core/ext/upb-generated/xds/type/matcher/v3/http_inputs.upb.c +1 -3
- data/src/core/ext/upb-generated/xds/type/matcher/v3/http_inputs.upb.h +1 -9
- data/src/core/ext/upb-generated/xds/type/matcher/v3/ip.upb.c +5 -7
- data/src/core/ext/upb-generated/xds/type/matcher/v3/ip.upb.h +24 -32
- data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.c +24 -26
- data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.h +103 -111
- data/src/core/ext/upb-generated/xds/type/matcher/v3/range.upb.c +10 -12
- data/src/core/ext/upb-generated/xds/type/matcher/v3/range.upb.h +61 -69
- data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.c +3 -5
- data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.h +9 -17
- data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.c +8 -10
- data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.h +33 -41
- data/src/core/ext/upb-generated/xds/type/v3/cel.upb.c +5 -7
- data/src/core/ext/upb-generated/xds/type/v3/cel.upb.h +18 -26
- data/src/core/ext/upb-generated/xds/type/v3/range.upb.c +7 -9
- data/src/core/ext/upb-generated/xds/type/v3/range.upb.h +19 -27
- data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.c +3 -5
- data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.h +8 -16
- data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.c +367 -290
- data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.h +10 -0
- data/src/core/ext/xds/xds_client.cc +6 -9
- data/src/core/ext/xds/xds_client.h +2 -2
- data/src/core/ext/xds/xds_cluster.cc +30 -42
- data/src/core/ext/xds/xds_cluster.h +0 -4
- data/src/core/ext/xds/xds_endpoint.cc +12 -19
- data/src/core/ext/xds/xds_endpoint.h +0 -1
- data/src/core/ext/xds/xds_http_filters.cc +1 -4
- data/src/core/ext/xds/xds_listener.cc +14 -14
- data/src/core/ext/xds/xds_listener.h +13 -3
- data/src/core/ext/xds/xds_resource_type.h +1 -7
- data/src/core/ext/xds/xds_resource_type_impl.h +9 -11
- data/src/core/ext/xds/xds_route_config.cc +10 -11
- data/src/core/ext/xds/xds_route_config.h +1 -1
- data/src/core/ext/xds/xds_server_config_fetcher.cc +53 -28
- data/src/core/ext/xds/xds_transport_grpc.cc +11 -1
- data/src/core/lib/backoff/random_early_detection.cc +4 -2
- data/src/core/lib/backoff/random_early_detection.h +2 -4
- data/src/core/lib/channel/call_tracer.cc +7 -1
- data/src/core/lib/channel/call_tracer.h +4 -1
- data/src/core/lib/channel/channelz_registry.h +4 -2
- data/src/core/lib/channel/connected_channel.cc +1 -1
- data/src/core/lib/config/config_vars.h +1 -1
- data/src/core/lib/config/core_configuration.cc +2 -1
- data/src/core/lib/config/core_configuration.h +5 -4
- data/src/core/lib/debug/stats_data.cc +146 -51
- data/src/core/lib/debug/stats_data.h +81 -20
- data/src/core/lib/event_engine/cf_engine/cf_engine.cc +3 -0
- data/src/core/lib/event_engine/cf_engine/cf_engine.h +3 -0
- data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc +3 -0
- data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.h +3 -0
- data/src/core/lib/event_engine/cf_engine/cftype_unique_ref.h +3 -0
- data/src/core/lib/event_engine/cf_engine/dns_service_resolver.cc +15 -3
- data/src/core/lib/event_engine/cf_engine/dns_service_resolver.h +3 -0
- data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.cc +1 -1
- data/src/core/lib/event_engine/thread_pool/thread_count.h +15 -0
- data/src/core/lib/event_engine/thread_pool/thread_pool_factory.cc +3 -15
- data/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.cc +10 -4
- data/src/core/lib/experiments/config.cc +9 -1
- data/src/core/lib/experiments/experiments.cc +144 -60
- data/src/core/lib/experiments/experiments.h +146 -41
- data/src/core/lib/gprpp/fork.h +1 -1
- data/src/core/lib/gprpp/manual_constructor.h +1 -2
- data/src/core/lib/gprpp/no_destruct.h +1 -1
- data/src/core/lib/gprpp/per_cpu.cc +2 -0
- data/src/core/lib/gprpp/per_cpu.h +36 -7
- data/src/core/lib/gprpp/ref_counted_ptr.h +63 -0
- data/src/core/lib/gprpp/work_serializer.cc +297 -25
- data/src/core/lib/gprpp/work_serializer.h +25 -9
- data/src/core/lib/iomgr/combiner.cc +54 -15
- data/src/core/lib/iomgr/combiner.h +8 -3
- data/src/core/lib/iomgr/event_engine_shims/endpoint.cc +2 -4
- data/src/core/lib/iomgr/exec_ctx.cc +12 -0
- data/src/core/lib/iomgr/exec_ctx.h +55 -19
- data/src/core/lib/iomgr/polling_entity.cc +10 -0
- data/src/core/lib/iomgr/polling_entity.h +2 -0
- data/src/core/lib/iomgr/port.h +14 -0
- data/src/core/lib/iomgr/tcp_posix.cc +17 -14
- data/src/core/lib/load_balancing/lb_policy.h +10 -9
- data/src/core/lib/promise/arena_promise.h +5 -1
- data/src/core/lib/promise/detail/seq_state.h +418 -0
- data/src/core/lib/promise/latch.h +1 -0
- data/src/core/lib/promise/loop.h +8 -5
- data/src/core/lib/promise/pipe.h +24 -24
- data/src/core/lib/promise/poll.h +4 -6
- data/src/core/lib/resolver/server_address.h +1 -0
- data/src/core/lib/resource_quota/memory_quota.cc +58 -2
- data/src/core/lib/resource_quota/memory_quota.h +4 -1
- data/src/core/lib/security/credentials/ssl/ssl_credentials.cc +115 -9
- data/src/core/lib/security/credentials/ssl/ssl_credentials.h +14 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_match.cc +86 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.cc +0 -59
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_verifier.h +2 -0
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.cc +7 -57
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.h +1 -1
- data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +2 -14
- data/src/core/lib/slice/slice.h +6 -0
- data/src/core/lib/slice/slice_buffer.cc +15 -0
- data/src/core/lib/slice/slice_buffer.h +16 -4
- data/src/core/lib/slice/slice_refcount.h +1 -1
- data/src/core/lib/surface/call.cc +92 -34
- data/src/core/lib/surface/call.h +4 -0
- data/src/core/lib/surface/channel.cc +7 -4
- data/src/core/lib/surface/channel_init.h +3 -2
- data/src/core/lib/surface/server.cc +45 -5
- data/src/core/lib/surface/server.h +18 -6
- data/src/core/lib/surface/version.cc +2 -2
- data/src/core/lib/transport/batch_builder.cc +3 -5
- data/src/core/lib/transport/metadata_batch.cc +6 -0
- data/src/core/lib/transport/metadata_batch.h +20 -1
- data/src/core/lib/transport/parsed_metadata.h +2 -4
- data/src/core/lib/transport/simple_slice_based_metadata.h +1 -2
- data/src/core/lib/transport/transport.h +21 -11
- data/src/core/tsi/ssl_transport_security.cc +7 -0
- data/src/core/tsi/ssl_transport_security.h +4 -0
- data/src/ruby/ext/grpc/extconf.rb +1 -1
- data/src/ruby/ext/grpc/rb_channel_args.c +6 -4
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/pb/src/proto/grpc/testing/messages_pb.rb +4 -1
- data/third_party/abseil-cpp/absl/random/bit_gen_ref.h +185 -0
- data/third_party/upb/upb/collections/array.c +6 -0
- data/third_party/upb/upb/collections/array.h +6 -0
- data/third_party/upb/upb/collections/map.c +7 -0
- data/third_party/upb/upb/collections/map.h +5 -0
- data/third_party/upb/upb/collections/map_sorter_internal.h +1 -1
- data/third_party/upb/upb/collections/message_value.h +8 -1
- data/third_party/upb/upb/generated_code_support.h +54 -0
- data/third_party/upb/upb/hash/common.c +5 -0
- data/third_party/upb/upb/hash/common.h +1 -0
- data/third_party/upb/upb/hash/str_table.h +1 -0
- data/third_party/upb/upb/message/accessors.c +25 -1
- data/third_party/upb/upb/message/accessors.h +46 -25
- data/third_party/upb/upb/message/accessors_internal.h +69 -3
- data/third_party/upb/upb/message/extension_internal.h +1 -1
- data/third_party/upb/upb/message/internal/map_entry.h +64 -0
- data/third_party/upb/upb/message/internal.h +2 -6
- data/third_party/upb/upb/message/message.c +0 -6
- data/third_party/upb/upb/message/message.h +1 -1
- data/third_party/upb/upb/message/tagged_ptr.h +89 -0
- data/third_party/upb/upb/mini_descriptor/build_enum.c +150 -0
- data/third_party/upb/upb/mini_descriptor/build_enum.h +63 -0
- data/third_party/upb/upb/{mini_table → mini_descriptor}/decode.c +122 -374
- data/third_party/upb/upb/{mini_table → mini_descriptor}/decode.h +11 -50
- data/third_party/upb/upb/mini_descriptor/internal/base92.c +46 -0
- data/third_party/upb/upb/mini_descriptor/internal/base92.h +81 -0
- data/third_party/upb/upb/mini_descriptor/internal/decoder.h +73 -0
- data/third_party/upb/upb/{mini_table → mini_descriptor/internal}/encode.c +58 -32
- data/third_party/upb/upb/{mini_table/encode_internal.h → mini_descriptor/internal/encode.h} +3 -4
- data/third_party/upb/upb/{mini_table/encode_internal.hpp → mini_descriptor/internal/encode.hpp} +1 -1
- data/third_party/upb/upb/mini_descriptor/internal/modifiers.h +50 -0
- data/third_party/upb/upb/{mini_table/common_internal.h → mini_descriptor/internal/wire_constants.h} +3 -23
- data/third_party/upb/upb/mini_descriptor/link.c +142 -0
- data/third_party/upb/upb/mini_descriptor/link.h +104 -0
- data/third_party/upb/upb/mini_table/{types.h → enum.h} +19 -9
- data/third_party/upb/upb/mini_table/extension.h +40 -0
- data/third_party/upb/upb/mini_table/extension_registry.c +1 -1
- data/third_party/upb/upb/mini_table/extension_registry.h +2 -1
- data/third_party/upb/upb/mini_table/field.h +118 -0
- data/third_party/upb/upb/{json_decode.h → mini_table/file.h} +5 -6
- data/third_party/upb/upb/mini_table/{enum_internal.h → internal/enum.h} +7 -19
- data/third_party/upb/upb/mini_table/{extension_internal.h → internal/extension.h} +8 -8
- data/third_party/upb/upb/mini_table/{field_internal.h → internal/field.h} +10 -66
- data/third_party/upb/upb/mini_table/{file_internal.h → internal/file.h} +6 -4
- data/third_party/upb/upb/mini_table/internal/message.c +39 -0
- data/third_party/upb/upb/mini_table/{message_internal.h → internal/message.h} +14 -37
- data/third_party/upb/upb/mini_table/{sub_internal.h → internal/sub.h} +7 -6
- data/third_party/upb/upb/mini_table/{common.c → message.c} +2 -33
- data/third_party/upb/upb/mini_table/{common.h → message.h} +12 -77
- data/third_party/upb/upb/{json_encode.h → mini_table/sub.h} +5 -6
- data/third_party/upb/upb/reflection/def.hpp +16 -4
- data/third_party/upb/upb/reflection/def_pool_internal.h +1 -1
- data/third_party/upb/upb/reflection/desc_state_internal.h +1 -1
- data/third_party/upb/upb/reflection/enum_def.c +1 -1
- data/third_party/upb/upb/reflection/field_def.c +2 -1
- data/third_party/upb/upb/reflection/message.c +2 -2
- data/third_party/upb/upb/reflection/message_def.c +3 -1
- data/third_party/upb/upb/wire/decode.c +68 -29
- data/third_party/upb/upb/wire/decode.h +40 -0
- data/third_party/upb/upb/wire/encode.c +23 -13
- metadata +43 -27
- data/src/core/lib/event_engine/thread_pool/original_thread_pool.cc +0 -256
- data/src/core/lib/event_engine/thread_pool/original_thread_pool.h +0 -137
@@ -150,7 +150,8 @@ class XdsServerConfigFetcher::ListenerWatcher
|
|
150
150
|
xds_client_.reset(DEBUG_LOCATION, "ListenerWatcher");
|
151
151
|
}
|
152
152
|
|
153
|
-
void OnResourceChanged(
|
153
|
+
void OnResourceChanged(
|
154
|
+
std::shared_ptr<const XdsListenerResource> listener) override;
|
154
155
|
|
155
156
|
void OnError(absl::Status status) override;
|
156
157
|
|
@@ -236,7 +237,9 @@ class XdsServerConfigFetcher::ListenerWatcher::FilterChainMatchManager
|
|
236
237
|
class RouteConfigWatcher;
|
237
238
|
struct RdsUpdateState {
|
238
239
|
RouteConfigWatcher* watcher;
|
239
|
-
absl::optional<
|
240
|
+
absl::optional<
|
241
|
+
absl::StatusOr<std::shared_ptr<const XdsRouteConfigResource>>>
|
242
|
+
rds_update;
|
240
243
|
};
|
241
244
|
|
242
245
|
class XdsServerConfigSelector;
|
@@ -249,8 +252,9 @@ class XdsServerConfigFetcher::ListenerWatcher::FilterChainMatchManager
|
|
249
252
|
|
250
253
|
// Helper functions invoked by RouteConfigWatcher when there are updates to
|
251
254
|
// RDS resources.
|
252
|
-
void OnRouteConfigChanged(
|
253
|
-
|
255
|
+
void OnRouteConfigChanged(
|
256
|
+
const std::string& resource_name,
|
257
|
+
std::shared_ptr<const XdsRouteConfigResource> route_config);
|
254
258
|
void OnError(const std::string& resource_name, absl::Status status);
|
255
259
|
void OnResourceDoesNotExist(const std::string& resource_name);
|
256
260
|
|
@@ -258,6 +262,9 @@ class XdsServerConfigFetcher::ListenerWatcher::FilterChainMatchManager
|
|
258
262
|
// This ref is only kept around till the FilterChainMatchManager becomes
|
259
263
|
// ready.
|
260
264
|
RefCountedPtr<ListenerWatcher> listener_watcher_;
|
265
|
+
// TODO(roth): Consider holding a ref to the LDS resource and storing
|
266
|
+
// a pointer to the filter chain data within that LDS resource, rather
|
267
|
+
// than copying the filter chain data here.
|
261
268
|
XdsListenerResource::FilterChainMap filter_chain_map_;
|
262
269
|
absl::optional<XdsListenerResource::FilterChainData> default_filter_chain_;
|
263
270
|
Mutex mu_;
|
@@ -284,7 +291,8 @@ class XdsServerConfigFetcher::ListenerWatcher::FilterChainMatchManager::
|
|
284
291
|
: resource_name_(std::move(resource_name)),
|
285
292
|
filter_chain_match_manager_(std::move(filter_chain_match_manager)) {}
|
286
293
|
|
287
|
-
void OnResourceChanged(
|
294
|
+
void OnResourceChanged(
|
295
|
+
std::shared_ptr<const XdsRouteConfigResource> route_config) override {
|
288
296
|
filter_chain_match_manager_->OnRouteConfigChanged(resource_name_,
|
289
297
|
std::move(route_config));
|
290
298
|
}
|
@@ -311,7 +319,7 @@ class XdsServerConfigFetcher::ListenerWatcher::FilterChainMatchManager::
|
|
311
319
|
public:
|
312
320
|
static absl::StatusOr<RefCountedPtr<XdsServerConfigSelector>> Create(
|
313
321
|
const XdsHttpFilterRegistry& http_filter_registry,
|
314
|
-
XdsRouteConfigResource rds_update,
|
322
|
+
std::shared_ptr<const XdsRouteConfigResource> rds_update,
|
315
323
|
const std::vector<XdsListenerResource::HttpConnectionManager::HttpFilter>&
|
316
324
|
http_filters);
|
317
325
|
~XdsServerConfigSelector() override = default;
|
@@ -324,6 +332,9 @@ class XdsServerConfigFetcher::ListenerWatcher::FilterChainMatchManager::
|
|
324
332
|
struct Route {
|
325
333
|
// true if an action other than kNonForwardingAction is configured.
|
326
334
|
bool unsupported_action;
|
335
|
+
// TODO(roth): Consider holding a ref to the RDS resource and storing
|
336
|
+
// a pointer to the matchers within that RDS resource, rather than
|
337
|
+
// copying the matchers here.
|
327
338
|
XdsRouteConfigResource::Route::Matchers matchers;
|
328
339
|
RefCountedPtr<ServiceConfig> method_config;
|
329
340
|
};
|
@@ -376,7 +387,8 @@ class XdsServerConfigFetcher::ListenerWatcher::FilterChainMatchManager::
|
|
376
387
|
public:
|
377
388
|
StaticXdsServerConfigSelectorProvider(
|
378
389
|
RefCountedPtr<GrpcXdsClient> xds_client,
|
379
|
-
absl::StatusOr<XdsRouteConfigResource
|
390
|
+
absl::StatusOr<std::shared_ptr<const XdsRouteConfigResource>>
|
391
|
+
static_resource,
|
380
392
|
std::vector<XdsListenerResource::HttpConnectionManager::HttpFilter>
|
381
393
|
http_filters)
|
382
394
|
: xds_client_(std::move(xds_client)),
|
@@ -407,7 +419,11 @@ class XdsServerConfigFetcher::ListenerWatcher::FilterChainMatchManager::
|
|
407
419
|
|
408
420
|
private:
|
409
421
|
RefCountedPtr<GrpcXdsClient> xds_client_;
|
410
|
-
absl::StatusOr<XdsRouteConfigResource
|
422
|
+
absl::StatusOr<std::shared_ptr<const XdsRouteConfigResource>>
|
423
|
+
static_resource_;
|
424
|
+
// TODO(roth): Consider holding a ref to the LDS resource and storing
|
425
|
+
// a pointer to the HTTP filters within that LDS resource, rather than
|
426
|
+
// copying the HTTP filters here.
|
411
427
|
std::vector<XdsListenerResource::HttpConnectionManager::HttpFilter>
|
412
428
|
http_filters_;
|
413
429
|
std::unique_ptr<ServerConfigSelectorProvider::ServerConfigSelectorWatcher>
|
@@ -422,7 +438,8 @@ class XdsServerConfigFetcher::ListenerWatcher::FilterChainMatchManager::
|
|
422
438
|
public:
|
423
439
|
DynamicXdsServerConfigSelectorProvider(
|
424
440
|
RefCountedPtr<GrpcXdsClient> xds_client, std::string resource_name,
|
425
|
-
absl::StatusOr<XdsRouteConfigResource
|
441
|
+
absl::StatusOr<std::shared_ptr<const XdsRouteConfigResource>>
|
442
|
+
initial_resource,
|
426
443
|
std::vector<XdsListenerResource::HttpConnectionManager::HttpFilter>
|
427
444
|
http_filters);
|
428
445
|
|
@@ -440,19 +457,24 @@ class XdsServerConfigFetcher::ListenerWatcher::FilterChainMatchManager::
|
|
440
457
|
private:
|
441
458
|
class RouteConfigWatcher;
|
442
459
|
|
443
|
-
void OnRouteConfigChanged(
|
460
|
+
void OnRouteConfigChanged(
|
461
|
+
std::shared_ptr<const XdsRouteConfigResource> rds_update);
|
444
462
|
void OnError(absl::Status status);
|
445
463
|
void OnResourceDoesNotExist();
|
446
464
|
|
447
465
|
RefCountedPtr<GrpcXdsClient> xds_client_;
|
448
466
|
std::string resource_name_;
|
467
|
+
// TODO(roth): Consider holding a ref to the LDS resource and storing
|
468
|
+
// a pointer to the HTTP filters within that LDS resource, rather than
|
469
|
+
// copying the HTTP filters here.
|
449
470
|
std::vector<XdsListenerResource::HttpConnectionManager::HttpFilter>
|
450
471
|
http_filters_;
|
451
472
|
RouteConfigWatcher* route_config_watcher_ = nullptr;
|
452
473
|
Mutex mu_;
|
453
474
|
std::unique_ptr<ServerConfigSelectorProvider::ServerConfigSelectorWatcher>
|
454
475
|
watcher_ ABSL_GUARDED_BY(mu_);
|
455
|
-
absl::StatusOr<XdsRouteConfigResource
|
476
|
+
absl::StatusOr<std::shared_ptr<const XdsRouteConfigResource>> resource_
|
477
|
+
ABSL_GUARDED_BY(mu_);
|
456
478
|
};
|
457
479
|
|
458
480
|
// A watcher implementation for updating the RDS resource used by
|
@@ -465,7 +487,8 @@ class XdsServerConfigFetcher::ListenerWatcher::FilterChainMatchManager::
|
|
465
487
|
WeakRefCountedPtr<DynamicXdsServerConfigSelectorProvider> parent)
|
466
488
|
: parent_(std::move(parent)) {}
|
467
489
|
|
468
|
-
void OnResourceChanged(
|
490
|
+
void OnResourceChanged(
|
491
|
+
std::shared_ptr<const XdsRouteConfigResource> route_config) override {
|
469
492
|
parent_->OnRouteConfigChanged(std::move(route_config));
|
470
493
|
}
|
471
494
|
|
@@ -551,14 +574,14 @@ XdsServerConfigFetcher::ListenerWatcher::ListenerWatcher(
|
|
551
574
|
listening_address_(std::move(listening_address)) {}
|
552
575
|
|
553
576
|
void XdsServerConfigFetcher::ListenerWatcher::OnResourceChanged(
|
554
|
-
XdsListenerResource listener) {
|
577
|
+
std::shared_ptr<const XdsListenerResource> listener) {
|
555
578
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_xds_server_config_fetcher_trace)) {
|
556
579
|
gpr_log(GPR_INFO,
|
557
580
|
"[ListenerWatcher %p] Received LDS update from xds client %p: %s",
|
558
|
-
this, xds_client_.get(), listener
|
581
|
+
this, xds_client_.get(), listener->ToString().c_str());
|
559
582
|
}
|
560
583
|
auto* tcp_listener =
|
561
|
-
absl::get_if<XdsListenerResource::TcpListener>(&listener
|
584
|
+
absl::get_if<XdsListenerResource::TcpListener>(&listener->listener);
|
562
585
|
if (tcp_listener == nullptr) {
|
563
586
|
MutexLock lock(&mu_);
|
564
587
|
OnFatalError(
|
@@ -573,8 +596,7 @@ void XdsServerConfigFetcher::ListenerWatcher::OnResourceChanged(
|
|
573
596
|
}
|
574
597
|
auto new_filter_chain_match_manager = MakeRefCounted<FilterChainMatchManager>(
|
575
598
|
xds_client_->Ref(DEBUG_LOCATION, "FilterChainMatchManager"),
|
576
|
-
|
577
|
-
std::move(tcp_listener->default_filter_chain));
|
599
|
+
tcp_listener->filter_chain_map, tcp_listener->default_filter_chain);
|
578
600
|
MutexLock lock(&mu_);
|
579
601
|
if (filter_chain_match_manager_ == nullptr ||
|
580
602
|
!(new_filter_chain_match_manager->filter_chain_map() ==
|
@@ -824,8 +846,9 @@ XdsServerConfigFetcher::ListenerWatcher::FilterChainMatchManager::
|
|
824
846
|
}
|
825
847
|
|
826
848
|
void XdsServerConfigFetcher::ListenerWatcher::FilterChainMatchManager::
|
827
|
-
OnRouteConfigChanged(
|
828
|
-
|
849
|
+
OnRouteConfigChanged(
|
850
|
+
const std::string& resource_name,
|
851
|
+
std::shared_ptr<const XdsRouteConfigResource> route_config) {
|
829
852
|
RefCountedPtr<ListenerWatcher> listener_watcher;
|
830
853
|
{
|
831
854
|
MutexLock lock(&mu_);
|
@@ -1091,7 +1114,8 @@ absl::StatusOr<ChannelArgs> XdsServerConfigFetcher::ListenerWatcher::
|
|
1091
1114
|
filter_chain->http_connection_manager.route_config,
|
1092
1115
|
// RDS resource name
|
1093
1116
|
[&](const std::string& rds_name) {
|
1094
|
-
absl::StatusOr<XdsRouteConfigResource
|
1117
|
+
absl::StatusOr<std::shared_ptr<const XdsRouteConfigResource>>
|
1118
|
+
initial_resource;
|
1095
1119
|
{
|
1096
1120
|
MutexLock lock(&mu_);
|
1097
1121
|
initial_resource = rds_map_[rds_name].rds_update.value();
|
@@ -1104,7 +1128,7 @@ absl::StatusOr<ChannelArgs> XdsServerConfigFetcher::ListenerWatcher::
|
|
1104
1128
|
filter_chain->http_connection_manager.http_filters);
|
1105
1129
|
},
|
1106
1130
|
// inline RouteConfig
|
1107
|
-
[&](const XdsRouteConfigResource
|
1131
|
+
[&](const std::shared_ptr<const XdsRouteConfigResource>& route_config) {
|
1108
1132
|
server_config_selector_provider =
|
1109
1133
|
MakeRefCounted<StaticXdsServerConfigSelectorProvider>(
|
1110
1134
|
xds_client_->Ref(DEBUG_LOCATION,
|
@@ -1140,19 +1164,19 @@ absl::StatusOr<
|
|
1140
1164
|
XdsServerConfigFetcher::ListenerWatcher::FilterChainMatchManager::
|
1141
1165
|
XdsServerConfigSelector::Create(
|
1142
1166
|
const XdsHttpFilterRegistry& http_filter_registry,
|
1143
|
-
XdsRouteConfigResource rds_update,
|
1167
|
+
std::shared_ptr<const XdsRouteConfigResource> rds_update,
|
1144
1168
|
const std::vector<
|
1145
1169
|
XdsListenerResource::HttpConnectionManager::HttpFilter>&
|
1146
1170
|
http_filters) {
|
1147
1171
|
auto config_selector = MakeRefCounted<XdsServerConfigSelector>();
|
1148
|
-
for (auto& vhost : rds_update
|
1172
|
+
for (auto& vhost : rds_update->virtual_hosts) {
|
1149
1173
|
config_selector->virtual_hosts_.emplace_back();
|
1150
1174
|
auto& virtual_host = config_selector->virtual_hosts_.back();
|
1151
|
-
virtual_host.domains =
|
1175
|
+
virtual_host.domains = vhost.domains;
|
1152
1176
|
for (auto& route : vhost.routes) {
|
1153
1177
|
virtual_host.routes.emplace_back();
|
1154
1178
|
auto& config_selector_route = virtual_host.routes.back();
|
1155
|
-
config_selector_route.matchers =
|
1179
|
+
config_selector_route.matchers = route.matchers;
|
1156
1180
|
config_selector_route.unsupported_action =
|
1157
1181
|
absl::get_if<XdsRouteConfigResource::Route::NonForwardingAction>(
|
1158
1182
|
&route.action) == nullptr;
|
@@ -1234,7 +1258,8 @@ XdsServerConfigFetcher::ListenerWatcher::FilterChainMatchManager::
|
|
1234
1258
|
DynamicXdsServerConfigSelectorProvider::
|
1235
1259
|
DynamicXdsServerConfigSelectorProvider(
|
1236
1260
|
RefCountedPtr<GrpcXdsClient> xds_client, std::string resource_name,
|
1237
|
-
absl::StatusOr<XdsRouteConfigResource
|
1261
|
+
absl::StatusOr<std::shared_ptr<const XdsRouteConfigResource>>
|
1262
|
+
initial_resource,
|
1238
1263
|
std::vector<XdsListenerResource::HttpConnectionManager::HttpFilter>
|
1239
1264
|
http_filters)
|
1240
1265
|
: xds_client_(std::move(xds_client)),
|
@@ -1264,7 +1289,7 @@ XdsServerConfigFetcher::ListenerWatcher::FilterChainMatchManager::
|
|
1264
1289
|
std::unique_ptr<
|
1265
1290
|
ServerConfigSelectorProvider::ServerConfigSelectorWatcher>
|
1266
1291
|
watcher) {
|
1267
|
-
absl::StatusOr<XdsRouteConfigResource
|
1292
|
+
absl::StatusOr<std::shared_ptr<const XdsRouteConfigResource>> resource;
|
1268
1293
|
{
|
1269
1294
|
MutexLock lock(&mu_);
|
1270
1295
|
GPR_ASSERT(watcher_ == nullptr);
|
@@ -1288,7 +1313,7 @@ void XdsServerConfigFetcher::ListenerWatcher::FilterChainMatchManager::
|
|
1288
1313
|
|
1289
1314
|
void XdsServerConfigFetcher::ListenerWatcher::FilterChainMatchManager::
|
1290
1315
|
DynamicXdsServerConfigSelectorProvider::OnRouteConfigChanged(
|
1291
|
-
XdsRouteConfigResource rds_update) {
|
1316
|
+
std::shared_ptr<const XdsRouteConfigResource> rds_update) {
|
1292
1317
|
MutexLock lock(&mu_);
|
1293
1318
|
resource_ = std::move(rds_update);
|
1294
1319
|
if (watcher_ == nullptr) {
|
@@ -28,6 +28,7 @@
|
|
28
28
|
|
29
29
|
#include <grpc/byte_buffer.h>
|
30
30
|
#include <grpc/byte_buffer_reader.h>
|
31
|
+
#include <grpc/event_engine/event_engine.h>
|
31
32
|
#include <grpc/grpc.h>
|
32
33
|
#include <grpc/impl/channel_arg_names.h>
|
33
34
|
#include <grpc/impl/connectivity_state.h>
|
@@ -42,11 +43,13 @@
|
|
42
43
|
#include "src/core/lib/channel/channel_fwd.h"
|
43
44
|
#include "src/core/lib/channel/channel_stack.h"
|
44
45
|
#include "src/core/lib/config/core_configuration.h"
|
46
|
+
#include "src/core/lib/event_engine/default_event_engine.h"
|
45
47
|
#include "src/core/lib/gprpp/debug_location.h"
|
46
48
|
#include "src/core/lib/gprpp/orphanable.h"
|
47
49
|
#include "src/core/lib/gprpp/ref_counted_ptr.h"
|
48
50
|
#include "src/core/lib/gprpp/time.h"
|
49
51
|
#include "src/core/lib/iomgr/closure.h"
|
52
|
+
#include "src/core/lib/iomgr/exec_ctx.h"
|
50
53
|
#include "src/core/lib/iomgr/pollset_set.h"
|
51
54
|
#include "src/core/lib/security/credentials/channel_creds_registry.h"
|
52
55
|
#include "src/core/lib/security/credentials/credentials.h"
|
@@ -302,7 +305,14 @@ void GrpcXdsTransportFactory::GrpcXdsTransport::Orphan() {
|
|
302
305
|
GPR_ASSERT(client_channel != nullptr);
|
303
306
|
client_channel->RemoveConnectivityWatcher(watcher_);
|
304
307
|
}
|
305
|
-
|
308
|
+
// Do an async hop before unreffing. This avoids a deadlock upon
|
309
|
+
// shutdown in the case where the xDS channel is itself an xDS channel
|
310
|
+
// (e.g., when using one control plane to find another control plane).
|
311
|
+
grpc_event_engine::experimental::GetDefaultEventEngine()->Run([this]() {
|
312
|
+
ApplicationCallbackExecCtx application_exec_ctx;
|
313
|
+
ExecCtx exec_ctx;
|
314
|
+
Unref();
|
315
|
+
});
|
306
316
|
}
|
307
317
|
|
308
318
|
OrphanablePtr<XdsTransportFactory::XdsTransport::StreamingCall>
|
@@ -16,12 +16,14 @@
|
|
16
16
|
|
17
17
|
#include "src/core/lib/backoff/random_early_detection.h"
|
18
18
|
|
19
|
+
#include "absl/random/distributions.h"
|
20
|
+
|
19
21
|
namespace grpc_core {
|
20
22
|
|
21
|
-
bool RandomEarlyDetection::Reject(uint64_t size) {
|
23
|
+
bool RandomEarlyDetection::Reject(uint64_t size, absl::BitGenRef bitsrc) const {
|
22
24
|
if (size <= soft_limit_) return false;
|
23
25
|
if (size < hard_limit_) {
|
24
|
-
return absl::Bernoulli(
|
26
|
+
return absl::Bernoulli(bitsrc,
|
25
27
|
static_cast<double>(size - soft_limit_) /
|
26
28
|
static_cast<double>(hard_limit_ - soft_limit_));
|
27
29
|
}
|
@@ -21,7 +21,7 @@
|
|
21
21
|
|
22
22
|
#include <cstdint>
|
23
23
|
|
24
|
-
#include "absl/random/
|
24
|
+
#include "absl/random/bit_gen_ref.h"
|
25
25
|
|
26
26
|
namespace grpc_core {
|
27
27
|
|
@@ -38,7 +38,7 @@ class RandomEarlyDetection {
|
|
38
38
|
bool MustReject(uint64_t size) { return size >= hard_limit_; }
|
39
39
|
|
40
40
|
// Returns true if the item should be rejected.
|
41
|
-
bool Reject(uint64_t size);
|
41
|
+
bool Reject(uint64_t size, absl::BitGenRef bitsrc) const;
|
42
42
|
|
43
43
|
uint64_t soft_limit() const { return soft_limit_; }
|
44
44
|
uint64_t hard_limit() const { return hard_limit_; }
|
@@ -55,8 +55,6 @@ class RandomEarlyDetection {
|
|
55
55
|
uint64_t soft_limit_;
|
56
56
|
// The hard limit is the size at which we reject all items.
|
57
57
|
uint64_t hard_limit_;
|
58
|
-
// The bit generator used to generate random numbers.
|
59
|
-
absl::InsecureBitGen bitgen_;
|
60
58
|
};
|
61
59
|
|
62
60
|
} // namespace grpc_core
|
@@ -46,7 +46,13 @@ ServerCallTracerFactory* ServerCallTracerFactory::Get(
|
|
46
46
|
const ChannelArgs& channel_args) {
|
47
47
|
ServerCallTracerFactory* factory =
|
48
48
|
channel_args.GetObject<ServerCallTracerFactory>();
|
49
|
-
|
49
|
+
if (factory == nullptr) {
|
50
|
+
factory = g_server_call_tracer_factory_;
|
51
|
+
}
|
52
|
+
if (factory && factory->IsServerTraced(channel_args)) {
|
53
|
+
return factory;
|
54
|
+
}
|
55
|
+
return nullptr;
|
50
56
|
}
|
51
57
|
|
52
58
|
void ServerCallTracerFactory::RegisterGlobal(ServerCallTracerFactory* factory) {
|
@@ -139,7 +139,7 @@ class ClientCallTracer : public CallTracerAnnotationInterface {
|
|
139
139
|
|
140
140
|
// Records a new attempt for the associated call. \a transparent denotes
|
141
141
|
// whether the attempt is being made as a transparent retry or as a
|
142
|
-
// non-transparent retry/
|
142
|
+
// non-transparent retry/hedging attempt. (There will be at least one attempt
|
143
143
|
// even if the call is not being retried.) The `ClientCallTracer` object
|
144
144
|
// retains ownership to the newly created `CallAttemptTracer` object.
|
145
145
|
// RecordEnd() serves as an indication that the call stack is done with all
|
@@ -170,6 +170,9 @@ class ServerCallTracerFactory {
|
|
170
170
|
|
171
171
|
virtual ServerCallTracer* CreateNewServerCallTracer(Arena* arena) = 0;
|
172
172
|
|
173
|
+
// Returns true if a server is to be traced, false otherwise.
|
174
|
+
virtual bool IsServerTraced(const ChannelArgs& /*args*/) { return true; }
|
175
|
+
|
173
176
|
// Use this method to get the server call tracer factory from channel args,
|
174
177
|
// instead of directly fetching it with `GetObject`.
|
175
178
|
static ServerCallTracerFactory* Get(const ChannelArgs& channel_args);
|
@@ -25,6 +25,8 @@
|
|
25
25
|
#include <map>
|
26
26
|
#include <string>
|
27
27
|
|
28
|
+
#include "absl/base/thread_annotations.h"
|
29
|
+
|
28
30
|
#include "src/core/lib/channel/channelz.h"
|
29
31
|
#include "src/core/lib/gprpp/ref_counted_ptr.h"
|
30
32
|
#include "src/core/lib/gprpp/sync.h"
|
@@ -90,8 +92,8 @@ class ChannelzRegistry {
|
|
90
92
|
|
91
93
|
// protects members
|
92
94
|
Mutex mu_;
|
93
|
-
std::map<intptr_t, BaseNode*> node_map_;
|
94
|
-
intptr_t uuid_generator_ = 0;
|
95
|
+
std::map<intptr_t, BaseNode*> node_map_ ABSL_GUARDED_BY(mu_);
|
96
|
+
intptr_t uuid_generator_ ABSL_GUARDED_BY(mu_) = 0;
|
95
97
|
};
|
96
98
|
|
97
99
|
} // namespace channelz
|
@@ -548,7 +548,7 @@ ArenaPromise<ServerMetadataHandle> MakeClientCallPromise(
|
|
548
548
|
}
|
549
549
|
if (!done_recv_messages) {
|
550
550
|
auto p = recv_messages();
|
551
|
-
if (
|
551
|
+
if (p.ready()) {
|
552
552
|
// NOTE: ignore errors here, they'll be collected in the
|
553
553
|
// recv_trailing_metadata.
|
554
554
|
done_recv_messages = true;
|
@@ -49,7 +49,8 @@ CoreConfiguration::CoreConfiguration(Builder* builder)
|
|
49
49
|
certificate_provider_registry_(
|
50
50
|
builder->certificate_provider_registry_.Build()) {}
|
51
51
|
|
52
|
-
void CoreConfiguration::RegisterBuilder(
|
52
|
+
void CoreConfiguration::RegisterBuilder(
|
53
|
+
absl::AnyInvocable<void(Builder*)> builder) {
|
53
54
|
GPR_ASSERT(config_.load(std::memory_order_relaxed) == nullptr &&
|
54
55
|
"CoreConfiguration was already instantiated before builder "
|
55
56
|
"registration was completed");
|
@@ -18,7 +18,8 @@
|
|
18
18
|
#include <grpc/support/port_platform.h>
|
19
19
|
|
20
20
|
#include <atomic>
|
21
|
-
|
21
|
+
|
22
|
+
#include "absl/functional/any_invocable.h"
|
22
23
|
|
23
24
|
#include <grpc/support/log.h>
|
24
25
|
|
@@ -36,7 +37,7 @@ namespace grpc_core {
|
|
36
37
|
|
37
38
|
// Global singleton that stores library configuration - factories, etc...
|
38
39
|
// that plugins might choose to extend.
|
39
|
-
class CoreConfiguration {
|
40
|
+
class GRPC_DLL CoreConfiguration {
|
40
41
|
public:
|
41
42
|
CoreConfiguration(const CoreConfiguration&) = delete;
|
42
43
|
CoreConfiguration& operator=(const CoreConfiguration&) = delete;
|
@@ -98,7 +99,7 @@ class CoreConfiguration {
|
|
98
99
|
|
99
100
|
// Stores a builder for RegisterBuilder
|
100
101
|
struct RegisteredBuilder {
|
101
|
-
|
102
|
+
absl::AnyInvocable<void(Builder*)> builder;
|
102
103
|
RegisteredBuilder* next;
|
103
104
|
};
|
104
105
|
|
@@ -154,7 +155,7 @@ class CoreConfiguration {
|
|
154
155
|
// Attach a registration function globally.
|
155
156
|
// Each registration function is called *in addition to*
|
156
157
|
// BuildCoreConfiguration for the default core configuration.
|
157
|
-
static void RegisterBuilder(
|
158
|
+
static void RegisterBuilder(absl::AnyInvocable<void(Builder*)> builder);
|
158
159
|
|
159
160
|
// Drop the core configuration. Users must ensure no other threads are
|
160
161
|
// accessing the configuration.
|