grpc 1.54.2 → 1.61.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Makefile +1384 -955
- data/include/grpc/event_engine/event_engine.h +88 -55
- data/include/grpc/event_engine/internal/memory_allocator_impl.h +6 -0
- data/include/grpc/event_engine/internal/slice_cast.h +12 -0
- data/include/grpc/event_engine/memory_allocator.h +5 -3
- data/include/grpc/event_engine/slice.h +5 -0
- data/include/grpc/grpc_audit_logging.h +96 -0
- data/include/grpc/grpc_crl_provider.h +94 -0
- data/include/grpc/grpc_security.h +57 -1
- data/include/grpc/impl/call.h +29 -0
- data/include/grpc/impl/channel_arg_names.h +400 -0
- data/include/grpc/impl/grpc_types.h +1 -348
- data/include/grpc/impl/slice_type.h +1 -1
- data/include/grpc/module.modulemap +5 -0
- data/include/grpc/support/json.h +218 -0
- data/include/grpc/support/port_platform.h +103 -24
- data/src/core/ext/filters/backend_metrics/backend_metric_filter.cc +61 -16
- data/src/core/ext/filters/backend_metrics/backend_metric_filter.h +20 -6
- data/src/core/ext/filters/channel_idle/channel_idle_filter.cc +49 -46
- data/src/core/ext/filters/channel_idle/channel_idle_filter.h +18 -10
- data/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.cc +326 -0
- data/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.h +143 -0
- data/src/core/ext/filters/client_channel/backend_metric.cc +5 -2
- data/src/core/ext/filters/client_channel/channel_connectivity.cc +4 -4
- data/src/core/ext/filters/client_channel/client_channel.cc +610 -200
- data/src/core/ext/filters/client_channel/client_channel.h +80 -29
- data/src/core/ext/filters/client_channel/client_channel_channelz.cc +20 -19
- data/src/core/ext/filters/client_channel/client_channel_internal.h +24 -59
- data/src/core/ext/filters/client_channel/client_channel_plugin.cc +21 -8
- data/src/core/ext/filters/client_channel/client_channel_service_config.cc +2 -2
- data/src/core/ext/filters/client_channel/config_selector.h +9 -36
- data/src/core/ext/filters/client_channel/connector.h +2 -3
- data/src/core/ext/filters/client_channel/dynamic_filters.cc +0 -1
- data/src/core/ext/filters/client_channel/dynamic_filters.h +5 -3
- data/src/core/ext/filters/client_channel/global_subchannel_pool.cc +1 -1
- data/src/core/ext/filters/client_channel/http_proxy_mapper.cc +305 -0
- data/src/core/ext/filters/client_channel/http_proxy_mapper.h +53 -0
- data/src/core/ext/filters/client_channel/lb_policy/address_filtering.cc +60 -52
- data/src/core/ext/filters/client_channel/lb_policy/address_filtering.h +27 -12
- data/src/core/ext/filters/client_channel/lb_policy/backend_metric_data.h +3 -0
- data/src/core/ext/filters/client_channel/lb_policy/child_policy_handler.cc +32 -40
- data/src/core/ext/filters/client_channel/lb_policy/endpoint_list.cc +187 -0
- data/src/core/ext/filters/client_channel/lb_policy/endpoint_list.h +220 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.cc +0 -2
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +253 -237
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.cc +20 -19
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.h +4 -4
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc +5 -4
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h +4 -2
- data/src/core/ext/filters/client_channel/lb_policy/health_check_client.cc +520 -0
- data/src/core/ext/filters/client_channel/lb_policy/health_check_client.h +52 -0
- data/src/core/ext/filters/client_channel/lb_policy/health_check_client_internal.h +204 -0
- data/src/core/ext/filters/client_channel/lb_policy/oob_backend_metric.cc +15 -13
- data/src/core/ext/filters/client_channel/lb_policy/oob_backend_metric_internal.h +2 -0
- data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.cc +270 -191
- data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.h +2 -2
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +901 -203
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.h +36 -0
- data/src/core/ext/filters/client_channel/lb_policy/priority/priority.cc +22 -48
- data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.cc +495 -490
- data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.h +16 -1
- data/src/core/ext/filters/client_channel/lb_policy/rls/rls.cc +115 -151
- data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +421 -40
- data/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h +37 -35
- data/src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/static_stride_scheduler.cc +76 -6
- data/src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/weighted_round_robin.cc +919 -110
- data/src/core/ext/filters/client_channel/lb_policy/weighted_target/weighted_target.cc +31 -63
- data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +535 -546
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_channel_args.h +8 -0
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_impl.cc +256 -194
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_manager.cc +32 -76
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_override_host.cc +810 -316
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_override_host.h +2 -6
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_wrr_locality.cc +34 -103
- data/src/core/ext/filters/client_channel/resolver/binder/binder_resolver.cc +5 -6
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc +31 -133
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.h +30 -0
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +102 -11
- 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 +81 -66
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h +11 -7
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_windows.cc +1 -1
- data/src/core/ext/filters/client_channel/resolver/dns/dns_resolver_plugin.cc +66 -0
- data/src/core/ext/filters/client_channel/resolver/dns/dns_resolver_plugin.h +27 -0
- data/src/core/ext/filters/client_channel/resolver/dns/event_engine/event_engine_client_channel_resolver.cc +588 -0
- data/src/core/ext/filters/client_channel/resolver/dns/event_engine/event_engine_client_channel_resolver.h +35 -0
- data/src/core/ext/filters/client_channel/resolver/dns/event_engine/service_config_helper.cc +97 -0
- data/src/core/ext/filters/client_channel/resolver/dns/event_engine/service_config_helper.h +32 -0
- data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc +5 -17
- data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.h +24 -0
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc +76 -189
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.h +46 -27
- data/src/core/ext/filters/client_channel/resolver/google_c2p/google_c2p_resolver.cc +32 -30
- data/src/core/ext/filters/client_channel/resolver/polling_resolver.cc +17 -13
- data/src/core/ext/filters/client_channel/resolver/polling_resolver.h +1 -0
- data/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.cc +31 -19
- data/src/core/ext/filters/client_channel/resolver/xds/xds_dependency_manager.cc +1031 -0
- data/src/core/ext/filters/client_channel/resolver/xds/xds_dependency_manager.h +277 -0
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +517 -513
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver_attributes.h +62 -0
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver_trace.cc +25 -0
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver_trace.h +30 -0
- data/src/core/ext/filters/client_channel/retry_filter.cc +40 -2531
- data/src/core/ext/filters/client_channel/retry_filter.h +92 -1
- data/src/core/ext/filters/client_channel/retry_filter_legacy_call_data.cc +2051 -0
- data/src/core/ext/filters/client_channel/retry_filter_legacy_call_data.h +442 -0
- data/src/core/ext/filters/client_channel/retry_service_config.cc +10 -9
- data/src/core/ext/filters/client_channel/service_config_channel_arg_filter.cc +64 -102
- data/src/core/ext/filters/client_channel/subchannel.cc +54 -202
- data/src/core/ext/filters/client_channel/subchannel.h +23 -48
- data/src/core/ext/filters/client_channel/subchannel_interface_internal.h +3 -0
- data/src/core/ext/filters/client_channel/subchannel_stream_client.cc +0 -1
- data/src/core/ext/filters/deadline/deadline_filter.cc +21 -24
- data/src/core/ext/filters/deadline/deadline_filter.h +0 -4
- data/src/core/ext/filters/fault_injection/fault_injection_filter.cc +18 -13
- data/src/core/ext/filters/fault_injection/fault_injection_filter.h +13 -4
- data/src/core/ext/filters/fault_injection/fault_injection_service_config_parser.cc +1 -1
- data/src/core/ext/filters/http/client/http_client_filter.cc +30 -39
- data/src/core/ext/filters/http/client/http_client_filter.h +10 -5
- data/src/core/ext/filters/http/client_authority_filter.cc +23 -25
- data/src/core/ext/filters/http/client_authority_filter.h +12 -4
- data/src/core/ext/filters/http/http_filters_plugin.cc +58 -38
- data/src/core/ext/filters/http/message_compress/compression_filter.cc +59 -87
- data/src/core/ext/filters/http/message_compress/compression_filter.h +54 -12
- data/src/core/ext/filters/http/message_compress/legacy_compression_filter.cc +325 -0
- data/src/core/ext/filters/http/message_compress/legacy_compression_filter.h +139 -0
- data/src/core/ext/filters/http/server/http_server_filter.cc +55 -53
- data/src/core/ext/filters/http/server/http_server_filter.h +11 -4
- data/src/core/ext/filters/message_size/message_size_filter.cc +79 -108
- data/src/core/ext/filters/message_size/message_size_filter.h +35 -23
- data/src/core/ext/filters/rbac/rbac_filter.cc +46 -113
- data/src/core/ext/filters/rbac/rbac_filter.h +18 -29
- data/src/core/ext/filters/rbac/rbac_service_config_parser.cc +162 -72
- data/src/core/ext/filters/server_config_selector/server_config_selector_filter.cc +32 -21
- data/src/core/ext/filters/stateful_session/stateful_session_filter.cc +180 -109
- data/src/core/ext/filters/stateful_session/stateful_session_filter.h +54 -11
- data/src/core/ext/gcp/metadata_query.cc +0 -1
- data/src/core/ext/transport/chttp2/alpn/alpn.cc +1 -1
- data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +5 -7
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +36 -36
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +1177 -1063
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +68 -4
- data/src/core/ext/transport/chttp2/transport/context_list_entry.h +80 -0
- data/src/core/ext/transport/chttp2/transport/decode_huff.cc +6569 -174
- data/src/core/ext/transport/chttp2/transport/decode_huff.h +2278 -441
- data/src/core/ext/transport/chttp2/transport/flow_control.cc +87 -168
- data/src/core/ext/transport/chttp2/transport/flow_control.h +85 -12
- data/src/core/ext/transport/chttp2/transport/frame.cc +506 -0
- data/src/core/ext/transport/chttp2/transport/frame.h +193 -22
- data/src/core/ext/transport/chttp2/transport/frame_data.cc +4 -3
- data/src/core/ext/transport/chttp2/transport/frame_data.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_goaway.cc +0 -2
- data/src/core/ext/transport/chttp2/transport/frame_goaway.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_ping.cc +23 -26
- data/src/core/ext/transport/chttp2/transport/frame_ping.h +1 -4
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc +10 -3
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_settings.cc +34 -82
- data/src/core/ext/transport/chttp2/transport/frame_settings.h +5 -8
- data/src/core/ext/transport/chttp2/transport/frame_window_update.cc +1 -3
- data/src/core/ext/transport/chttp2/transport/frame_window_update.h +1 -1
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +16 -22
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.h +8 -3
- data/src/core/ext/transport/chttp2/transport/hpack_encoder_table.h +3 -4
- data/src/core/ext/transport/chttp2/transport/hpack_parse_result.cc +184 -0
- data/src/core/ext/transport/chttp2/transport/hpack_parse_result.h +351 -0
- data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +640 -547
- data/src/core/ext/transport/chttp2/transport/hpack_parser.h +160 -12
- data/src/core/ext/transport/chttp2/transport/hpack_parser_table.cc +48 -33
- data/src/core/ext/transport/chttp2/transport/hpack_parser_table.h +19 -5
- data/src/core/ext/transport/chttp2/transport/http2_settings.cc +122 -32
- data/src/core/ext/transport/chttp2/transport/http2_settings.h +142 -37
- data/src/core/ext/transport/chttp2/transport/internal.h +228 -181
- data/src/core/ext/transport/chttp2/transport/legacy_frame.h +43 -0
- data/src/core/ext/transport/chttp2/transport/max_concurrent_streams_policy.cc +44 -0
- data/src/core/ext/transport/chttp2/transport/max_concurrent_streams_policy.h +67 -0
- data/src/core/ext/transport/chttp2/transport/parsing.cc +168 -60
- data/src/core/ext/transport/chttp2/transport/ping_abuse_policy.cc +90 -0
- data/src/core/ext/transport/chttp2/transport/ping_abuse_policy.h +59 -0
- data/src/core/ext/transport/chttp2/transport/ping_callbacks.cc +108 -0
- data/src/core/ext/transport/chttp2/transport/ping_callbacks.h +115 -0
- data/src/core/ext/transport/chttp2/transport/ping_rate_policy.cc +120 -0
- data/src/core/ext/transport/chttp2/transport/ping_rate_policy.h +88 -0
- data/src/core/ext/transport/chttp2/transport/stream_lists.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/write_size_policy.cc +60 -0
- data/src/core/ext/transport/chttp2/transport/write_size_policy.h +66 -0
- data/src/core/ext/transport/chttp2/transport/writing.cc +238 -179
- data/src/core/ext/transport/inproc/inproc_transport.cc +163 -1229
- data/src/core/ext/transport/inproc/inproc_transport.h +0 -4
- data/src/core/ext/transport/inproc/legacy_inproc_transport.cc +1303 -0
- data/src/core/ext/transport/inproc/legacy_inproc_transport.h +30 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/certs.upb.h +725 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/certs.upb_minitable.c +149 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/certs.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb.h +827 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb_minitable.c +180 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump.upb.h +733 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump.upb_minitable.c +157 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump_shared.upb.h +2772 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump_shared.upb_minitable.c +532 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump_shared.upb_minitable.h +48 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/init_dump.upb.h +248 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/init_dump.upb_minitable.c +66 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/init_dump.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/listeners.upb.h +280 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/listeners.upb_minitable.c +74 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/listeners.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/memory.upb.h +162 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/memory.upb_minitable.c +56 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/memory.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/metrics.upb.h +122 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/metrics.upb_minitable.c +49 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/metrics.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/mutex_stats.upb.h +117 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/mutex_stats.upb_minitable.c +49 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/mutex_stats.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb.h +928 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb_minitable.c +150 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/tap.upb.h +117 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/tap.upb_minitable.c +54 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/tap.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/annotations/deprecation.upb.h +122 -0
- data/src/core/ext/upb-gen/envoy/annotations/deprecation.upb_minitable.c +58 -0
- data/src/core/ext/upb-gen/envoy/annotations/deprecation.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/envoy/annotations/resource.upb.h +109 -0
- data/src/core/ext/upb-gen/envoy/annotations/resource.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/envoy/annotations/resource.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/accesslog/v3/accesslog.upb.h +1753 -0
- data/src/core/ext/upb-gen/envoy/config/accesslog/v3/accesslog.upb_minitable.c +375 -0
- data/src/core/ext/upb-gen/envoy/config/accesslog/v3/accesslog.upb_minitable.h +45 -0
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb.h +3420 -0
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb_minitable.c +612 -0
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb_minitable.h +49 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb.h +526 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb_minitable.c +125 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb.h +3890 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb_minitable.c +729 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb_minitable.h +53 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/filter.upb.h +117 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/filter.upb_minitable.c +54 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/filter.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb.h +659 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb_minitable.c +123 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/common/matcher/v3/matcher.upb.h +1830 -0
- data/src/core/ext/upb-gen/envoy/config/common/matcher/v3/matcher.upb_minitable.c +395 -0
- data/src/core/ext/upb-gen/envoy/config/common/matcher/v3/matcher.upb_minitable.h +44 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb.h +1041 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb_minitable.c +224 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb_minitable.h +37 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/backoff.upb.h +129 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/backoff.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/backoff.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb.h +2420 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb_minitable.c +577 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb_minitable.h +53 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/config_source.upb.h +1130 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/config_source.upb_minitable.c +225 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/config_source.upb_minitable.h +36 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/event_service_config.upb.h +110 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/event_service_config.upb_minitable.c +51 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/event_service_config.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/extension.upb.h +116 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/extension.upb_minitable.c +53 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/extension.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_method_list.upb.h +250 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_method_list.upb_minitable.c +68 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_method_list.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_service.upb.h +1688 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_service.upb_minitable.c +378 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_service.upb_minitable.h +43 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/health_check.upb.h +1938 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/health_check.upb_minitable.c +315 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/health_check.upb_minitable.h +38 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_uri.upb.h +144 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_uri.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_uri.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb.h +2245 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb_minitable.c +481 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb_minitable.h +45 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb.h +238 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb_minitable.c +70 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/resolver.upb.h +232 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/resolver.upb_minitable.c +72 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/resolver.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb.h +287 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb_minitable.c +76 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/substitution_format_string.upb.h +255 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/substitution_format_string.upb_minitable.c +66 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/substitution_format_string.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/udp_socket_config.upb.h +129 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/udp_socket_config.upb_minitable.c +54 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/udp_socket_config.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint.upb.h +489 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint.upb_minitable.c +138 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb.h +993 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb_minitable.c +229 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb_minitable.h +36 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/load_report.upb.h +911 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/load_report.upb_minitable.c +179 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/load_report.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/api_listener.upb.h +101 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/api_listener.upb_minitable.c +50 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/api_listener.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb.h +1613 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.c +268 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.h +39 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener_components.upb.h +1447 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener_components.upb_minitable.c +260 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener_components.upb_minitable.h +36 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/quic_config.upb.h +327 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/quic_config.upb_minitable.c +86 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/quic_config.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/udp_listener_config.upb.h +197 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/udp_listener_config.upb_minitable.c +77 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/udp_listener_config.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/metrics_service.upb.h +183 -0
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/metrics_service.upb_minitable.c +64 -0
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/metrics_service.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb.h +974 -0
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb_minitable.c +219 -0
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb_minitable.h +37 -0
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb.h +1183 -0
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb_minitable.c +250 -0
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb_minitable.h +39 -0
- data/src/core/ext/upb-gen/envoy/config/rbac/v3/rbac.upb.h +1704 -0
- data/src/core/ext/upb-gen/envoy/config/rbac/v3/rbac.upb_minitable.c +348 -0
- data/src/core/ext/upb-gen/envoy/config/rbac/v3/rbac.upb_minitable.h +40 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/route.upb.h +857 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/route.upb_minitable.c +133 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/route.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb.h +9666 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb_minitable.c +1667 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb_minitable.h +87 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/scoped_route.upb.h +341 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/scoped_route.upb_minitable.c +97 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/scoped_route.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/config/tap/v3/common.upb.h +1515 -0
- data/src/core/ext/upb-gen/envoy/config/tap/v3/common.upb_minitable.c +325 -0
- data/src/core/ext/upb-gen/envoy/config/tap/v3/common.upb_minitable.h +41 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/datadog.upb.h +119 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/datadog.upb_minitable.c +51 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/datadog.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/dynamic_ot.upb.h +118 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/dynamic_ot.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/dynamic_ot.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/http_tracer.upb.h +190 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/http_tracer.upb_minitable.c +73 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/http_tracer.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/lightstep.upb.h +202 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/lightstep.upb_minitable.c +62 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/lightstep.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opencensus.upb.h +409 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opencensus.upb_minitable.c +81 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opencensus.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb.h +115 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb_minitable.c +52 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/service.upb.h +102 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/service.upb_minitable.c +51 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/service.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/skywalking.upb.h +254 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/skywalking.upb_minitable.c +85 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/skywalking.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/trace.upb.h +49 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/trace.upb_minitable.c +33 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/trace.upb_minitable.h +39 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/xray.upb.h +256 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/xray.upb_minitable.c +87 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/xray.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb.h +201 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb_minitable.c +65 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb.h +2691 -0
- data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb_minitable.c +555 -0
- data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb_minitable.h +45 -0
- data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +134 -0
- data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb_minitable.c +46 -0
- data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/common/fault/v3/fault.upb.h +428 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/common/fault/v3/fault.upb_minitable.c +116 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/common/fault/v3/fault.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb.h +656 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb_minitable.c +141 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +266 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/rbac/v3/rbac.upb_minitable.c +87 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/rbac/v3/rbac.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb.h +462 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb_minitable.c +101 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +194 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb_minitable.c +72 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +3943 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.c +679 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.h +50 -0
- data/src/core/ext/upb-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.h +101 -0
- data/src/core/ext/upb-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb_minitable.c +50 -0
- data/src/core/ext/upb-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +239 -0
- 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 +67 -0
- 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 +30 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +488 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.c +135 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.h +86 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb_minitable.c +44 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.h +250 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb_minitable.c +68 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.h +101 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb_minitable.c +50 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/cert.upb.h +39 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/cert.upb_minitable.c +28 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/cert.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb.h +1469 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb_minitable.c +262 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb_minitable.h +36 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +361 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb_minitable.c +108 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +1467 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls.upb_minitable.c +267 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls.upb_minitable.h +36 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +217 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb_minitable.c +72 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb.h +712 -0
- data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb_minitable.c +151 -0
- data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/ads.upb.h +73 -0
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/ads.upb_minitable.c +38 -0
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/ads.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/discovery.upb.h +2141 -0
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/discovery.upb_minitable.c +402 -0
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/discovery.upb_minitable.h +43 -0
- data/src/core/ext/upb-gen/envoy/service/load_stats/v3/lrs.upb.h +324 -0
- data/src/core/ext/upb-gen/envoy/service/load_stats/v3/lrs.upb_minitable.c +84 -0
- data/src/core/ext/upb-gen/envoy/service/load_stats/v3/lrs.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/service/status/v3/csds.upb.h +925 -0
- data/src/core/ext/upb-gen/envoy/service/status/v3/csds.upb_minitable.c +183 -0
- data/src/core/ext/upb-gen/envoy/service/status/v3/csds.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb.h +131 -0
- data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb_minitable.c +54 -0
- data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/type/http/v3/path_transformation.upb.h +312 -0
- data/src/core/ext/upb-gen/envoy/type/http/v3/path_transformation.upb_minitable.c +86 -0
- data/src/core/ext/upb-gen/envoy/type/http/v3/path_transformation.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/filter_state.upb.h +124 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/filter_state.upb_minitable.c +53 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/filter_state.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/http_inputs.upb.h +299 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/http_inputs.upb_minitable.c +105 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/http_inputs.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/metadata.upb.h +260 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/metadata.upb_minitable.c +76 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/metadata.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/node.upb.h +166 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/node.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/node.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/number.upb.h +130 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/number.upb_minitable.c +54 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/number.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/path.upb.h +110 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/path.upb_minitable.c +51 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/path.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/regex.upb.h +271 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/regex.upb_minitable.c +96 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/regex.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb.h +109 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb_minitable.c +43 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/string.upb.h +306 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/string.upb_minitable.c +81 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/string.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/struct.upb.h +230 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/struct.upb_minitable.c +70 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/struct.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/value.upb.h +347 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/value.upb_minitable.c +92 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/value.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/type/metadata/v3/metadata.upb.h +525 -0
- data/src/core/ext/upb-gen/envoy/type/metadata/v3/metadata.upb_minitable.c +127 -0
- data/src/core/ext/upb-gen/envoy/type/metadata/v3/metadata.upb_minitable.h +36 -0
- data/src/core/ext/upb-gen/envoy/type/tracing/v3/custom_tag.upb.h +506 -0
- data/src/core/ext/upb-gen/envoy/type/tracing/v3/custom_tag.upb_minitable.c +139 -0
- data/src/core/ext/upb-gen/envoy/type/tracing/v3/custom_tag.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/type/v3/hash_policy.upb.h +227 -0
- data/src/core/ext/upb-gen/envoy/type/v3/hash_policy.upb_minitable.c +76 -0
- data/src/core/ext/upb-gen/envoy/type/v3/hash_policy.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/type/v3/http.upb.h +38 -0
- data/src/core/ext/upb-gen/envoy/type/v3/http.upb_minitable.c +26 -0
- data/src/core/ext/upb-gen/envoy/type/v3/http.upb_minitable.h +29 -0
- data/src/core/ext/upb-gen/envoy/type/v3/http_status.upb.h +148 -0
- data/src/core/ext/upb-gen/envoy/type/v3/http_status.upb_minitable.c +46 -0
- data/src/core/ext/upb-gen/envoy/type/v3/http_status.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/type/v3/percent.upb.h +162 -0
- data/src/core/ext/upb-gen/envoy/type/v3/percent.upb_minitable.c +64 -0
- data/src/core/ext/upb-gen/envoy/type/v3/percent.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/type/v3/range.upb.h +238 -0
- data/src/core/ext/upb-gen/envoy/type/v3/range.upb_minitable.c +84 -0
- data/src/core/ext/upb-gen/envoy/type/v3/range.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_strategy.upb.h +232 -0
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_strategy.upb_minitable.c +75 -0
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_strategy.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_unit.upb.h +42 -0
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_unit.upb_minitable.c +26 -0
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_unit.upb_minitable.h +29 -0
- data/src/core/ext/upb-gen/envoy/type/v3/semantic_version.upb.h +117 -0
- data/src/core/ext/upb-gen/envoy/type/v3/semantic_version.upb_minitable.c +49 -0
- data/src/core/ext/upb-gen/envoy/type/v3/semantic_version.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/type/v3/token_bucket.upb.h +146 -0
- data/src/core/ext/upb-gen/envoy/type/v3/token_bucket.upb_minitable.c +57 -0
- data/src/core/ext/upb-gen/envoy/type/v3/token_bucket.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/google/api/annotations.upb.h +56 -0
- data/src/core/ext/upb-gen/google/api/annotations.upb_minitable.c +38 -0
- data/src/core/ext/upb-gen/google/api/annotations.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/checked.upb.h +1743 -0
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/checked.upb_minitable.c +369 -0
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/checked.upb_minitable.h +42 -0
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/syntax.upb.h +1829 -0
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/syntax.upb_minitable.c +399 -0
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/syntax.upb_minitable.h +43 -0
- data/src/core/ext/upb-gen/google/api/http.upb.h +496 -0
- data/src/core/ext/upb-gen/google/api/http.upb_minitable.c +111 -0
- data/src/core/ext/upb-gen/google/api/http.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/google/api/httpbody.upb.h +165 -0
- data/src/core/ext/upb-gen/google/api/httpbody.upb_minitable.c +52 -0
- data/src/core/ext/upb-gen/google/api/httpbody.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/google/protobuf/any.upb.h +99 -0
- data/src/core/ext/upb-gen/google/protobuf/any.upb_minitable.c +46 -0
- data/src/core/ext/upb-gen/google/protobuf/any.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/google/protobuf/descriptor.upb.h +6397 -0
- data/src/core/ext/upb-gen/google/protobuf/descriptor.upb_minitable.c +1357 -0
- data/src/core/ext/upb-gen/google/protobuf/descriptor.upb_minitable.h +78 -0
- data/src/core/ext/upb-gen/google/protobuf/duration.upb.h +99 -0
- data/src/core/ext/upb-gen/google/protobuf/duration.upb_minitable.c +46 -0
- data/src/core/ext/upb-gen/google/protobuf/duration.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/google/protobuf/empty.upb.h +69 -0
- data/src/core/ext/upb-gen/google/protobuf/empty.upb_minitable.c +35 -0
- data/src/core/ext/upb-gen/google/protobuf/empty.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/google/protobuf/struct.upb.h +422 -0
- data/src/core/ext/upb-gen/google/protobuf/struct.upb_minitable.c +115 -0
- data/src/core/ext/upb-gen/google/protobuf/struct.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/google/protobuf/timestamp.upb.h +99 -0
- data/src/core/ext/upb-gen/google/protobuf/timestamp.upb_minitable.c +46 -0
- data/src/core/ext/upb-gen/google/protobuf/timestamp.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/google/protobuf/wrappers.upb.h +508 -0
- data/src/core/ext/upb-gen/google/protobuf/wrappers.upb_minitable.c +163 -0
- data/src/core/ext/upb-gen/google/protobuf/wrappers.upb_minitable.h +38 -0
- data/src/core/ext/upb-gen/google/rpc/status.upb.h +165 -0
- data/src/core/ext/upb-gen/google/rpc/status.upb_minitable.c +52 -0
- data/src/core/ext/upb-gen/google/rpc/status.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/opencensus/proto/trace/v1/trace_config.upb.h +385 -0
- data/src/core/ext/upb-gen/opencensus/proto/trace/v1/trace_config.upb_minitable.c +106 -0
- data/src/core/ext/upb-gen/opencensus/proto/trace/v1/trace_config.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/altscontext.upb.h +237 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/altscontext.upb_minitable.c +79 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/altscontext.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/handshaker.upb.h +1658 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/handshaker.upb_minitable.c +342 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/handshaker.upb_minitable.h +41 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/transport_security_common.upb.h +197 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/transport_security_common.upb_minitable.c +69 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/transport_security_common.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/src/proto/grpc/health/v1/health.upb.h +144 -0
- data/src/core/ext/upb-gen/src/proto/grpc/health/v1/health.upb_minitable.c +58 -0
- data/src/core/ext/upb-gen/src/proto/grpc/health/v1/health.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lb/v1/load_balancer.upb.h +877 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lb/v1/load_balancer.upb_minitable.c +221 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lb/v1/load_balancer.upb_minitable.h +38 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls.upb.h +297 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls.upb_minitable.c +92 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls_config.upb.h +1333 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls_config.upb_minitable.c +243 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls_config.upb_minitable.h +38 -0
- data/src/core/ext/upb-gen/udpa/annotations/migrate.upb.h +322 -0
- data/src/core/ext/upb-gen/udpa/annotations/migrate.upb_minitable.c +118 -0
- data/src/core/ext/upb-gen/udpa/annotations/migrate.upb_minitable.h +37 -0
- data/src/core/ext/upb-gen/udpa/annotations/security.upb.h +125 -0
- data/src/core/ext/upb-gen/udpa/annotations/security.upb_minitable.c +59 -0
- data/src/core/ext/upb-gen/udpa/annotations/security.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/udpa/annotations/sensitive.upb.h +55 -0
- data/src/core/ext/upb-gen/udpa/annotations/sensitive.upb_minitable.c +37 -0
- data/src/core/ext/upb-gen/udpa/annotations/sensitive.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/udpa/annotations/status.upb.h +131 -0
- data/src/core/ext/upb-gen/udpa/annotations/status.upb_minitable.c +58 -0
- data/src/core/ext/upb-gen/udpa/annotations/status.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/udpa/annotations/versioning.upb.h +109 -0
- data/src/core/ext/upb-gen/udpa/annotations/versioning.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/udpa/annotations/versioning.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/validate/validate.upb.h +6507 -0
- data/src/core/ext/upb-gen/validate/validate.upb_minitable.c +943 -0
- data/src/core/ext/upb-gen/validate/validate.upb_minitable.h +57 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb.h +322 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb_minitable.c +118 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb_minitable.h +37 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/security.upb.h +125 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/security.upb_minitable.c +59 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/security.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb.h +55 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb_minitable.c +37 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/status.upb.h +336 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/status.upb_minitable.c +117 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/status.upb_minitable.h +36 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb.h +109 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/core/v3/authority.upb.h +87 -0
- data/src/core/ext/upb-gen/xds/core/v3/authority.upb_minitable.c +45 -0
- data/src/core/ext/upb-gen/xds/core/v3/authority.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/core/v3/cidr.upb.h +116 -0
- data/src/core/ext/upb-gen/xds/core/v3/cidr.upb_minitable.c +53 -0
- data/src/core/ext/upb-gen/xds/core/v3/cidr.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/core/v3/collection_entry.upb.h +234 -0
- data/src/core/ext/upb-gen/xds/core/v3/collection_entry.upb_minitable.c +78 -0
- data/src/core/ext/upb-gen/xds/core/v3/collection_entry.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/core/v3/context_params.upb.h +134 -0
- data/src/core/ext/upb-gen/xds/core/v3/context_params.upb_minitable.c +62 -0
- data/src/core/ext/upb-gen/xds/core/v3/context_params.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/core/v3/extension.upb.h +115 -0
- data/src/core/ext/upb-gen/xds/core/v3/extension.upb_minitable.c +52 -0
- data/src/core/ext/upb-gen/xds/core/v3/extension.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource.upb.h +144 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource_locator.upb.h +331 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource_locator.upb_minitable.c +84 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource_locator.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource_name.upb.h +146 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource_name.upb_minitable.c +59 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource_name.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/data/orca/v3/orca_load_report.upb.h +350 -0
- data/src/core/ext/upb-gen/xds/data/orca/v3/orca_load_report.upb_minitable.c +126 -0
- data/src/core/ext/upb-gen/xds/data/orca/v3/orca_load_report.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/xds/service/orca/v3/orca.upb.h +161 -0
- data/src/core/ext/upb-gen/xds/service/orca/v3/orca.upb_minitable.c +52 -0
- data/src/core/ext/upb-gen/xds/service/orca/v3/orca.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb.h +101 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb_minitable.c +50 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/domain.upb.h +263 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/domain.upb_minitable.c +72 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/domain.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/http_inputs.upb.h +71 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/http_inputs.upb_minitable.c +36 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/http_inputs.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/ip.upb.h +282 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/ip.upb_minitable.c +75 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/ip.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/matcher.upb.h +1107 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/matcher.upb_minitable.c +265 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/matcher.upb_minitable.h +39 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/range.upb.h +726 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/range.upb_minitable.c +157 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/range.upb_minitable.h +35 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/regex.upb.h +159 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/regex.upb_minitable.c +58 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/regex.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/string.upb.h +304 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/string.upb_minitable.c +79 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/string.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/type/v3/cel.upb.h +233 -0
- data/src/core/ext/upb-gen/xds/type/v3/cel.upb_minitable.c +79 -0
- data/src/core/ext/upb-gen/xds/type/v3/cel.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/type/v3/range.upb.h +235 -0
- data/src/core/ext/upb-gen/xds/type/v3/range.upb_minitable.c +82 -0
- data/src/core/ext/upb-gen/xds/type/v3/range.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/xds/type/v3/typed_struct.upb.h +114 -0
- data/src/core/ext/upb-gen/xds/type/v3/typed_struct.upb_minitable.c +51 -0
- data/src/core/ext/upb-gen/xds/type/v3/typed_struct.upb_minitable.h +30 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/certs.upbdefs.c +83 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/certs.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/clusters.upbdefs.c +127 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/clusters.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump.upbdefs.c +101 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump_shared.upbdefs.c +276 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump_shared.upbdefs.h +125 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/init_dump.upbdefs.c +42 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/init_dump.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/listeners.upbdefs.c +55 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/listeners.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/memory.upbdefs.c +48 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/memory.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/metrics.upbdefs.c +45 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/metrics.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/mutex_stats.upbdefs.c +45 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/mutex_stats.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/server_info.upbdefs.c +141 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/server_info.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/tap.upbdefs.c +50 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/tap.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/annotations/deprecation.upbdefs.c +47 -0
- data/src/core/ext/upbdefs-gen/envoy/annotations/deprecation.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/envoy/annotations/resource.upbdefs.c +37 -0
- data/src/core/ext/upbdefs-gen/envoy/annotations/resource.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/accesslog/v3/accesslog.upbdefs.c +233 -0
- data/src/core/ext/upbdefs-gen/envoy/config/accesslog/v3/accesslog.upbdefs.h +110 -0
- data/src/core/ext/upbdefs-gen/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +422 -0
- data/src/core/ext/upbdefs-gen/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +130 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/circuit_breaker.upbdefs.c +97 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/circuit_breaker.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/cluster.upbdefs.c +566 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/cluster.upbdefs.h +150 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/filter.upbdefs.c +50 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/filter.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/outlier_detection.upbdefs.c +137 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/outlier_detection.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/common/matcher/v3/matcher.upbdefs.c +205 -0
- data/src/core/ext/upbdefs-gen/envoy/config/common/matcher/v3/matcher.upbdefs.h +105 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/address.upbdefs.c +131 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/address.upbdefs.h +70 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/backoff.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/backoff.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/base.upbdefs.c +270 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/base.upbdefs.h +150 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/config_source.upbdefs.c +167 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/config_source.upbdefs.h +65 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/event_service_config.upbdefs.c +52 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/event_service_config.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/extension.upbdefs.c +46 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/extension.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_method_list.upbdefs.c +52 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_method_list.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_service.upbdefs.c +236 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_service.upbdefs.h +100 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/health_check.upbdefs.c +244 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/health_check.upbdefs.h +75 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_uri.upbdefs.c +52 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_uri.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/protocol.upbdefs.c +310 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/protocol.upbdefs.h +110 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/proxy_protocol.upbdefs.c +56 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/proxy_protocol.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/resolver.upbdefs.c +54 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/resolver.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/socket_option.upbdefs.c +60 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/socket_option.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/substitution_format_string.upbdefs.c +69 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/substitution_format_string.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/udp_socket_config.upbdefs.c +48 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/udp_socket_config.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint.upbdefs.c +98 -0
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint_components.upbdefs.c +139 -0
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint_components.upbdefs.h +65 -0
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/load_report.upbdefs.c +135 -0
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/load_report.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/api_listener.upbdefs.c +47 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/api_listener.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.c +231 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.h +80 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener_components.upbdefs.c +189 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener_components.upbdefs.h +65 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/quic_config.upbdefs.c +100 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/quic_config.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/udp_listener_config.upbdefs.c +70 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/udp_listener_config.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/metrics_service.upbdefs.c +75 -0
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/metrics_service.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/stats.upbdefs.c +124 -0
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/stats.upbdefs.h +70 -0
- data/src/core/ext/upbdefs-gen/envoy/config/overload/v3/overload.upbdefs.c +141 -0
- data/src/core/ext/upbdefs-gen/envoy/config/overload/v3/overload.upbdefs.h +80 -0
- data/src/core/ext/upbdefs-gen/envoy/config/rbac/v3/rbac.upbdefs.c +222 -0
- data/src/core/ext/upbdefs-gen/envoy/config/rbac/v3/rbac.upbdefs.h +85 -0
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route.upbdefs.c +122 -0
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route_components.upbdefs.c +979 -0
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route_components.upbdefs.h +320 -0
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/scoped_route.upbdefs.c +76 -0
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/scoped_route.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/config/tap/v3/common.upbdefs.c +198 -0
- data/src/core/ext/upbdefs-gen/envoy/config/tap/v3/common.upbdefs.h +90 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/datadog.upbdefs.c +55 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/datadog.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/dynamic_ot.upbdefs.c +56 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/dynamic_ot.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/http_tracer.upbdefs.c +56 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/http_tracer.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/lightstep.upbdefs.c +71 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/lightstep.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opencensus.upbdefs.c +98 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opencensus.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opentelemetry.upbdefs.c +44 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opentelemetry.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/service.upbdefs.c +51 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/service.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/skywalking.upbdefs.c +70 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/skywalking.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/trace.upbdefs.c +60 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/trace.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/xray.upbdefs.c +74 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/xray.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/zipkin.upbdefs.c +78 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/zipkin.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/data/accesslog/v3/accesslog.upbdefs.c +401 -0
- data/src/core/ext/upbdefs-gen/envoy/data/accesslog/v3/accesslog.upbdefs.h +110 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.c +49 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/common/fault/v3/fault.upbdefs.c +91 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/common/fault/v3/fault.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c +122 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/fault/v3/fault.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.c +79 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/router/v3/router.upbdefs.c +104 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/router/v3/router.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.c +59 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +601 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +135 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.c +49 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.c +47 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +214 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.h +65 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.c +90 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.c +257 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.h +65 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.c +57 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upbdefs.c +133 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/ads.upbdefs.c +57 -0
- data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/ads.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/discovery.upbdefs.c +199 -0
- data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/discovery.upbdefs.h +100 -0
- data/src/core/ext/upbdefs-gen/envoy/service/load_stats/v3/lrs.upbdefs.c +75 -0
- data/src/core/ext/upbdefs-gen/envoy/service/load_stats/v3/lrs.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/service/status/v3/csds.upbdefs.c +154 -0
- data/src/core/ext/upbdefs-gen/envoy/service/status/v3/csds.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/cookie.upbdefs.c +45 -0
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/cookie.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/path_transformation.upbdefs.c +55 -0
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/path_transformation.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/filter_state.upbdefs.c +47 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/filter_state.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/http_inputs.upbdefs.c +54 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/http_inputs.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/metadata.upbdefs.c +60 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/metadata.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/node.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/node.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/number.upbdefs.c +51 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/number.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/path.upbdefs.c +50 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/path.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/regex.upbdefs.c +70 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/regex.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/status_code_input.upbdefs.c +39 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/status_code_input.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/string.upbdefs.c +64 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/string.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/struct.upbdefs.c +57 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/struct.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/value.upbdefs.c +74 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/value.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/type/metadata/v3/metadata.upbdefs.c +77 -0
- data/src/core/ext/upbdefs-gen/envoy/type/metadata/v3/metadata.upbdefs.h +65 -0
- data/src/core/ext/upbdefs-gen/envoy/type/tracing/v3/custom_tag.upbdefs.c +84 -0
- data/src/core/ext/upbdefs-gen/envoy/type/tracing/v3/custom_tag.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/hash_policy.upbdefs.c +52 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/hash_policy.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/http.upbdefs.c +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/http.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/http_status.upbdefs.c +93 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/http_status.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/percent.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/percent.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/range.upbdefs.c +47 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/range.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_strategy.upbdefs.c +68 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_strategy.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_unit.upbdefs.c +38 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_unit.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/semantic_version.upbdefs.c +43 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/semantic_version.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/token_bucket.upbdefs.c +56 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/token_bucket.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/google/api/annotations.upbdefs.c +39 -0
- data/src/core/ext/upbdefs-gen/google/api/annotations.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/checked.upbdefs.c +153 -0
- data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/checked.upbdefs.h +95 -0
- data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/syntax.upbdefs.c +152 -0
- data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/syntax.upbdefs.h +100 -0
- data/src/core/ext/upbdefs-gen/google/api/http.upbdefs.c +51 -0
- data/src/core/ext/upbdefs-gen/google/api/http.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/google/api/httpbody.upbdefs.c +38 -0
- data/src/core/ext/upbdefs-gen/google/api/httpbody.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/any.upbdefs.c +33 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/any.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/descriptor.upbdefs.c +488 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/descriptor.upbdefs.h +190 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/duration.upbdefs.c +34 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/duration.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/empty.upbdefs.c +31 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/empty.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/struct.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/struct.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/timestamp.upbdefs.c +34 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/timestamp.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/wrappers.upbdefs.c +44 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/wrappers.upbdefs.h +75 -0
- data/src/core/ext/upbdefs-gen/google/rpc/status.upbdefs.c +36 -0
- data/src/core/ext/upbdefs-gen/google/rpc/status.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/opencensus/proto/trace/v1/trace_config.upbdefs.c +66 -0
- data/src/core/ext/upbdefs-gen/opencensus/proto/trace/v1/trace_config.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/src/proto/grpc/lookup/v1/rls_config.upbdefs.c +98 -0
- data/src/core/ext/upbdefs-gen/src/proto/grpc/lookup/v1/rls_config.upbdefs.h +75 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/migrate.upbdefs.c +61 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/migrate.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/security.upbdefs.c +46 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/security.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/sensitive.upbdefs.c +33 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/sensitive.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/status.upbdefs.c +45 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/status.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/versioning.upbdefs.c +38 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/versioning.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/validate/validate.upbdefs.c +282 -0
- data/src/core/ext/upbdefs-gen/validate/validate.upbdefs.h +145 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/migrate.upbdefs.c +62 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/migrate.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/security.upbdefs.c +46 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/security.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/sensitive.upbdefs.c +34 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/sensitive.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/status.upbdefs.c +63 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/status.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/versioning.upbdefs.c +39 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/versioning.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/authority.upbdefs.c +37 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/authority.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/cidr.upbdefs.c +44 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/cidr.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/collection_entry.upbdefs.c +55 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/collection_entry.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/context_params.upbdefs.c +38 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/context_params.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/extension.upbdefs.c +40 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/extension.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource.upbdefs.c +44 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource_locator.upbdefs.c +60 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource_locator.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource_name.upbdefs.c +45 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource_name.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/cel.upbdefs.c +42 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/cel.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/domain.upbdefs.c +50 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/domain.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/http_inputs.upbdefs.c +35 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/http_inputs.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/ip.upbdefs.c +54 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/ip.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/matcher.upbdefs.c +125 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/matcher.upbdefs.h +80 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/range.upbdefs.c +70 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/range.upbdefs.h +60 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/regex.upbdefs.c +39 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/regex.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/string.upbdefs.c +51 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/string.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.c +59 -0
- data/src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.c +35 -0
- data/src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.c +36 -0
- data/src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.h +35 -0
- data/src/core/ext/xds/certificate_provider_store.cc +10 -14
- data/src/core/ext/xds/certificate_provider_store.h +1 -6
- data/src/core/ext/xds/file_watcher_certificate_provider_factory.cc +30 -43
- data/src/core/ext/xds/file_watcher_certificate_provider_factory.h +14 -9
- data/src/core/ext/xds/upb_utils.h +1 -1
- data/src/core/ext/xds/xds_api.cc +69 -34
- data/src/core/ext/xds/xds_api.h +7 -6
- data/src/core/ext/xds/xds_audit_logger_registry.cc +122 -0
- data/src/core/ext/xds/xds_audit_logger_registry.h +68 -0
- data/src/core/ext/xds/xds_bootstrap.cc +3 -3
- data/src/core/ext/xds/xds_bootstrap.h +3 -0
- data/src/core/ext/xds/xds_bootstrap_grpc.cc +65 -51
- data/src/core/ext/xds/xds_bootstrap_grpc.h +10 -13
- data/src/core/ext/xds/xds_certificate_provider.cc +88 -287
- data/src/core/ext/xds/xds_certificate_provider.h +44 -111
- data/src/core/ext/xds/xds_channel_stack_modifier.cc +17 -28
- data/src/core/ext/xds/xds_channel_stack_modifier.h +3 -5
- data/src/core/ext/xds/xds_client.cc +447 -421
- data/src/core/ext/xds/xds_client.h +33 -24
- data/src/core/ext/xds/xds_client_grpc.cc +15 -7
- data/src/core/ext/xds/xds_client_grpc.h +16 -2
- data/src/core/ext/xds/xds_client_stats.h +11 -2
- data/src/core/ext/xds/xds_cluster.cc +203 -119
- data/src/core/ext/xds/xds_cluster.h +12 -7
- data/src/core/ext/xds/xds_cluster_specifier_plugin.cc +22 -14
- data/src/core/ext/xds/xds_cluster_specifier_plugin.h +2 -2
- data/src/core/ext/xds/xds_common_types.cc +21 -15
- data/src/core/ext/xds/xds_endpoint.cc +111 -72
- data/src/core/ext/xds/xds_endpoint.h +8 -5
- data/src/core/ext/xds/xds_health_status.cc +13 -18
- data/src/core/ext/xds/xds_health_status.h +10 -28
- data/src/core/ext/xds/xds_http_fault_filter.cc +16 -14
- data/src/core/ext/xds/xds_http_fault_filter.h +1 -1
- data/src/core/ext/xds/xds_http_filters.cc +1 -5
- data/src/core/ext/xds/xds_http_filters.h +3 -2
- data/src/core/ext/xds/xds_http_rbac_filter.cc +154 -72
- data/src/core/ext/xds/xds_http_rbac_filter.h +1 -1
- data/src/core/ext/xds/xds_http_stateful_session_filter.cc +16 -16
- data/src/core/ext/xds/xds_http_stateful_session_filter.h +1 -1
- data/src/core/ext/xds/xds_lb_policy_registry.cc +60 -36
- data/src/core/ext/xds/xds_listener.cc +38 -27
- data/src/core/ext/xds/xds_listener.h +14 -4
- data/src/core/ext/xds/xds_resource_type.h +3 -9
- data/src/core/ext/xds/xds_resource_type_impl.h +11 -11
- data/src/core/ext/xds/xds_route_config.cc +95 -41
- data/src/core/ext/xds/xds_route_config.h +3 -2
- data/src/core/ext/xds/xds_server_config_fetcher.cc +110 -81
- data/src/core/ext/xds/xds_transport.h +3 -0
- data/src/core/ext/xds/xds_transport_grpc.cc +61 -52
- data/src/core/ext/xds/xds_transport_grpc.h +4 -0
- data/src/core/lib/address_utils/parse_address.cc +63 -1
- data/src/core/lib/address_utils/parse_address.h +8 -0
- data/src/core/lib/address_utils/sockaddr_utils.cc +46 -2
- data/src/core/lib/address_utils/sockaddr_utils.h +2 -2
- data/src/core/lib/avl/avl.h +16 -173
- data/src/core/lib/backoff/random_early_detection.cc +4 -2
- data/src/core/lib/backoff/random_early_detection.h +7 -4
- data/src/core/lib/channel/call_tracer.cc +315 -1
- data/src/core/lib/channel/call_tracer.h +63 -4
- data/src/core/lib/channel/channel_args.cc +131 -48
- data/src/core/lib/channel/channel_args.h +125 -16
- data/src/core/lib/channel/channel_args_preconditioning.cc +0 -1
- data/src/core/lib/channel/channel_stack.cc +36 -1
- data/src/core/lib/channel/channel_stack.h +10 -10
- data/src/core/lib/channel/channel_stack_builder.h +4 -15
- data/src/core/lib/channel/channel_stack_builder_impl.cc +1 -19
- data/src/core/lib/channel/channel_stack_trace.cc +19 -0
- data/src/core/lib/channel/channel_stack_trace.h +24 -0
- data/src/core/lib/channel/channel_trace.cc +17 -13
- data/src/core/lib/channel/channelz.cc +163 -135
- data/src/core/lib/channel/channelz.h +42 -35
- data/src/core/lib/channel/channelz_registry.cc +24 -20
- data/src/core/lib/channel/channelz_registry.h +4 -2
- data/src/core/lib/channel/connected_channel.cc +229 -102
- data/src/core/lib/channel/context.h +3 -0
- data/src/core/lib/channel/promise_based_filter.cc +21 -19
- data/src/core/lib/channel/promise_based_filter.h +1046 -3
- data/src/core/lib/channel/server_call_tracer_filter.cc +43 -42
- data/src/core/lib/channel/status_util.cc +0 -1
- data/src/core/lib/channel/tcp_tracer.h +140 -0
- data/src/core/lib/compression/compression_internal.cc +8 -8
- data/src/core/lib/config/config_vars.cc +19 -18
- data/src/core/lib/config/config_vars.h +5 -5
- data/src/core/lib/config/config_vars_non_generated.cc +0 -2
- data/src/core/lib/config/core_configuration.cc +2 -2
- data/src/core/lib/config/core_configuration.h +5 -4
- data/src/core/lib/config/load_config.cc +13 -0
- data/src/core/lib/config/load_config.h +6 -0
- data/src/core/lib/debug/event_log.h +1 -1
- data/src/core/lib/debug/stats_data.cc +202 -35
- data/src/core/lib/debug/stats_data.h +103 -1
- data/src/core/lib/debug/trace.cc +31 -56
- data/src/core/lib/debug/trace.h +14 -4
- data/src/core/lib/event_engine/ares_resolver.cc +747 -0
- data/src/core/lib/event_engine/ares_resolver.h +151 -0
- data/src/core/lib/event_engine/cf_engine/cf_engine.cc +221 -0
- data/src/core/lib/event_engine/cf_engine/cf_engine.h +89 -0
- data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc +357 -0
- data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.h +149 -0
- data/src/core/lib/event_engine/cf_engine/cftype_unique_ref.h +82 -0
- data/src/core/lib/event_engine/cf_engine/dns_service_resolver.cc +249 -0
- data/src/core/lib/event_engine/cf_engine/dns_service_resolver.h +120 -0
- data/src/core/lib/event_engine/channel_args_endpoint_config.cc +2 -0
- data/src/core/lib/event_engine/default_event_engine.cc +13 -1
- data/src/core/lib/event_engine/default_event_engine_factory.cc +14 -2
- data/src/core/lib/event_engine/event_engine.cc +0 -14
- data/src/core/lib/event_engine/forkable.cc +65 -65
- data/src/core/lib/event_engine/forkable.h +46 -25
- data/src/core/lib/event_engine/grpc_polled_fd.h +92 -0
- data/src/core/lib/event_engine/handle_containers.h +0 -4
- data/src/core/lib/event_engine/nameser.h +102 -0
- data/src/core/lib/event_engine/poller.h +2 -2
- data/src/core/lib/event_engine/posix.h +4 -0
- data/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.cc +11 -15
- data/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.h +2 -3
- data/src/core/lib/event_engine/posix_engine/ev_poll_posix.cc +39 -24
- data/src/core/lib/event_engine/posix_engine/ev_poll_posix.h +12 -10
- data/src/core/lib/event_engine/posix_engine/event_poller.h +3 -1
- data/src/core/lib/event_engine/posix_engine/event_poller_posix_default.cc +23 -4
- data/src/core/lib/event_engine/posix_engine/event_poller_posix_default.h +3 -1
- data/src/core/lib/event_engine/posix_engine/grpc_polled_fd_posix.h +205 -0
- data/src/core/lib/event_engine/posix_engine/internal_errqueue.cc +0 -2
- data/src/core/lib/event_engine/posix_engine/lockfree_event.cc +7 -18
- data/src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.cc +132 -0
- data/src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.h +61 -0
- data/src/core/lib/event_engine/posix_engine/posix_endpoint.cc +29 -16
- data/src/core/lib/event_engine/posix_engine/posix_endpoint.h +12 -2
- data/src/core/lib/event_engine/posix_engine/posix_engine.cc +150 -68
- data/src/core/lib/event_engine/posix_engine/posix_engine.h +37 -30
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener.cc +70 -31
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener.h +12 -8
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.cc +15 -5
- data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.cc +59 -8
- data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.h +16 -0
- data/src/core/lib/event_engine/posix_engine/timer.h +10 -37
- data/src/core/lib/event_engine/posix_engine/timer_manager.cc +17 -27
- data/src/core/lib/event_engine/posix_engine/timer_manager.h +1 -4
- data/src/core/lib/event_engine/posix_engine/traced_buffer_list.cc +2 -0
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_eventfd.cc +0 -1
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_pipe.cc +0 -1
- data/src/core/lib/event_engine/ref_counted_dns_resolver_interface.h +55 -0
- data/src/core/lib/event_engine/shim.cc +13 -3
- data/src/core/lib/event_engine/slice_buffer.cc +0 -1
- data/src/core/lib/event_engine/tcp_socket_utils.cc +67 -8
- data/src/core/lib/event_engine/tcp_socket_utils.h +3 -0
- data/src/core/lib/event_engine/thread_pool/thread_count.cc +58 -0
- data/src/core/lib/event_engine/thread_pool/thread_count.h +176 -0
- data/src/core/lib/event_engine/thread_pool/thread_pool.h +50 -0
- data/src/core/lib/event_engine/thread_pool/thread_pool_factory.cc +49 -0
- data/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.cc +527 -0
- data/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.h +223 -0
- data/src/core/lib/event_engine/thready_event_engine/thready_event_engine.cc +157 -0
- data/src/core/lib/event_engine/thready_event_engine/thready_event_engine.h +104 -0
- data/src/core/lib/event_engine/trace.cc +1 -0
- data/src/core/lib/event_engine/trace.h +6 -0
- data/src/core/lib/event_engine/windows/grpc_polled_fd_windows.cc +823 -0
- data/src/core/lib/event_engine/windows/grpc_polled_fd_windows.h +75 -0
- data/src/core/lib/event_engine/windows/iocp.cc +4 -3
- data/src/core/lib/event_engine/windows/iocp.h +3 -3
- data/src/core/lib/event_engine/windows/native_windows_dns_resolver.cc +114 -0
- data/src/core/lib/event_engine/windows/native_windows_dns_resolver.h +51 -0
- data/src/core/lib/event_engine/windows/win_socket.cc +24 -17
- data/src/core/lib/event_engine/windows/win_socket.h +23 -11
- data/src/core/lib/event_engine/windows/windows_endpoint.cc +77 -77
- data/src/core/lib/event_engine/windows/windows_endpoint.h +17 -13
- data/src/core/lib/event_engine/windows/windows_engine.cc +102 -54
- data/src/core/lib/event_engine/windows/windows_engine.h +30 -20
- data/src/core/lib/event_engine/windows/windows_listener.cc +5 -6
- data/src/core/lib/event_engine/windows/windows_listener.h +3 -2
- data/src/core/lib/event_engine/work_queue/basic_work_queue.cc +65 -0
- data/src/core/lib/event_engine/work_queue/basic_work_queue.h +74 -0
- data/src/core/lib/event_engine/work_queue/work_queue.h +66 -0
- data/src/core/lib/experiments/config.cc +134 -30
- data/src/core/lib/experiments/config.h +36 -5
- data/src/core/lib/experiments/experiments.cc +733 -31
- data/src/core/lib/experiments/experiments.h +336 -38
- data/src/core/lib/gpr/alloc.cc +1 -0
- data/src/core/lib/gpr/log_internal.h +55 -0
- data/src/core/lib/gpr/posix/time.cc +5 -0
- data/src/core/lib/gprpp/crash.cc +10 -0
- data/src/core/lib/gprpp/crash.h +3 -0
- data/src/core/lib/gprpp/debug_location.h +13 -0
- data/src/core/lib/gprpp/directory_reader.h +48 -0
- data/src/core/lib/gprpp/dual_ref_counted.h +45 -16
- data/src/core/lib/gprpp/fork.cc +8 -9
- data/src/core/lib/gprpp/fork.h +7 -6
- data/src/core/lib/gprpp/host_port.cc +0 -2
- data/src/core/lib/gprpp/if_list.h +4530 -0
- data/src/core/lib/gprpp/manual_constructor.h +1 -2
- data/src/core/lib/gprpp/match.h +1 -1
- data/src/core/lib/gprpp/no_destruct.h +1 -1
- data/src/core/lib/gprpp/orphanable.h +30 -3
- data/src/core/lib/gprpp/per_cpu.cc +35 -0
- data/src/core/lib/gprpp/per_cpu.h +61 -9
- data/src/core/lib/gprpp/posix/directory_reader.cc +82 -0
- data/src/core/lib/gprpp/posix/stat.cc +0 -1
- data/src/core/lib/gprpp/ref_counted.h +72 -29
- data/src/core/lib/gprpp/ref_counted_ptr.h +133 -27
- data/src/core/lib/gprpp/ref_counted_string.cc +44 -0
- data/src/core/lib/gprpp/ref_counted_string.h +161 -0
- data/src/core/lib/gprpp/sorted_pack.h +3 -12
- data/src/core/lib/gprpp/status_helper.cc +2 -4
- data/src/core/lib/gprpp/status_helper.h +16 -15
- data/src/core/lib/gprpp/strerror.cc +0 -2
- data/src/core/lib/gprpp/time.cc +1 -1
- data/src/core/lib/gprpp/time.h +13 -1
- data/src/core/lib/gprpp/type_list.h +32 -0
- data/src/core/lib/gprpp/validation_errors.cc +8 -4
- data/src/core/lib/gprpp/validation_errors.h +16 -9
- data/src/core/lib/gprpp/windows/directory_reader.cc +80 -0
- data/src/core/lib/gprpp/work_serializer.cc +323 -12
- data/src/core/lib/gprpp/work_serializer.h +30 -9
- data/src/core/lib/gprpp/xxhash_inline.h +29 -0
- data/src/core/lib/http/format_request.cc +0 -1
- data/src/core/lib/http/httpcli.cc +0 -2
- data/src/core/lib/http/httpcli.h +6 -9
- data/src/core/lib/http/httpcli_security_connector.cc +1 -0
- data/src/core/lib/iomgr/buffer_list.cc +2 -0
- data/src/core/lib/iomgr/buffer_list.h +0 -1
- data/src/core/lib/iomgr/cfstream_handle.cc +1 -1
- data/src/core/lib/iomgr/combiner.cc +24 -18
- data/src/core/lib/iomgr/combiner.h +8 -3
- data/src/core/lib/iomgr/endpoint_cfstream.cc +10 -8
- data/src/core/lib/iomgr/error.cc +32 -2
- data/src/core/lib/iomgr/error.h +9 -10
- data/src/core/lib/iomgr/ev_apple.cc +12 -12
- data/src/core/lib/iomgr/ev_epoll1_linux.cc +15 -10
- data/src/core/lib/iomgr/ev_poll_posix.cc +6 -5
- data/src/core/lib/iomgr/event_engine_shims/endpoint.cc +57 -27
- data/src/core/lib/iomgr/event_engine_shims/endpoint.h +16 -0
- data/src/core/lib/iomgr/event_engine_shims/tcp_client.cc +3 -2
- data/src/core/lib/iomgr/exec_ctx.cc +12 -0
- data/src/core/lib/iomgr/exec_ctx.h +66 -19
- data/src/core/lib/iomgr/iocp_windows.cc +24 -3
- data/src/core/lib/iomgr/iocp_windows.h +11 -0
- data/src/core/lib/iomgr/iomgr_posix_cfstream.cc +1 -1
- 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/pollset.h +4 -5
- data/src/core/lib/iomgr/port.h +24 -0
- data/src/core/lib/iomgr/resolve_address.cc +13 -1
- data/src/core/lib/iomgr/resolve_address.h +17 -3
- data/src/core/lib/iomgr/sockaddr_posix.h +7 -0
- data/src/core/lib/iomgr/socket_utils_common_posix.cc +46 -2
- data/src/core/lib/iomgr/socket_utils_posix.cc +5 -0
- data/src/core/lib/iomgr/socket_utils_posix.h +9 -0
- data/src/core/lib/iomgr/socket_windows.cc +61 -7
- data/src/core/lib/iomgr/socket_windows.h +9 -2
- data/src/core/lib/iomgr/tcp_client_cfstream.cc +14 -3
- data/src/core/lib/iomgr/tcp_client_posix.cc +12 -4
- data/src/core/lib/iomgr/tcp_posix.cc +48 -22
- data/src/core/lib/iomgr/tcp_server_posix.cc +184 -120
- data/src/core/lib/iomgr/tcp_server_utils_posix.h +13 -1
- data/src/core/lib/iomgr/tcp_server_utils_posix_common.cc +26 -2
- data/src/core/lib/iomgr/tcp_server_windows.cc +1 -1
- data/src/core/lib/iomgr/tcp_windows.cc +1 -3
- data/src/core/lib/iomgr/timer_generic.cc +17 -16
- data/src/core/lib/iomgr/timer_manager.cc +7 -1
- data/src/core/lib/iomgr/timer_manager.h +2 -0
- data/src/core/lib/iomgr/vsock.cc +59 -0
- data/src/core/lib/iomgr/vsock.h +38 -0
- data/src/core/lib/iomgr/wakeup_fd_posix.h +3 -6
- data/src/core/lib/json/json.h +2 -218
- data/src/core/lib/json/json_object_loader.cc +24 -25
- data/src/core/lib/json/json_object_loader.h +30 -19
- data/src/core/lib/json/json_reader.cc +69 -43
- data/src/core/lib/json/json_reader.h +34 -0
- data/src/core/lib/json/json_util.cc +10 -15
- data/src/core/lib/json/json_util.h +5 -4
- data/src/core/lib/json/json_writer.cc +24 -25
- data/src/core/lib/json/json_writer.h +33 -0
- data/src/core/lib/load_balancing/delegating_helper.h +116 -0
- data/src/core/lib/load_balancing/lb_policy.h +51 -14
- data/src/core/lib/load_balancing/lb_policy_registry.cc +9 -9
- data/src/core/lib/load_balancing/subchannel_interface.h +6 -0
- data/src/core/lib/matchers/matchers.cc +3 -5
- data/src/core/lib/matchers/matchers.h +2 -1
- data/src/core/lib/promise/activity.cc +20 -1
- data/src/core/lib/promise/activity.h +12 -1
- data/src/core/lib/promise/all_ok.h +80 -0
- data/src/core/lib/promise/arena_promise.h +5 -1
- data/src/core/lib/promise/cancel_callback.h +0 -2
- data/src/core/lib/promise/context.h +0 -1
- data/src/core/lib/promise/detail/basic_seq.h +1 -372
- data/src/core/lib/promise/detail/join_state.h +2077 -0
- data/src/core/lib/promise/detail/promise_factory.h +1 -1
- data/src/core/lib/promise/detail/promise_like.h +8 -1
- data/src/core/lib/promise/detail/seq_state.h +5801 -0
- data/src/core/lib/promise/detail/status.h +42 -5
- data/src/core/lib/promise/for_each.h +13 -3
- data/src/core/lib/promise/if.h +4 -1
- data/src/core/lib/promise/interceptor_list.h +0 -1
- data/src/core/lib/promise/latch.h +7 -5
- data/src/core/lib/promise/loop.h +9 -6
- data/src/core/lib/promise/map.h +0 -1
- data/src/core/lib/promise/party.cc +64 -46
- data/src/core/lib/promise/party.h +153 -9
- data/src/core/lib/promise/pipe.h +44 -29
- data/src/core/lib/promise/poll.h +43 -19
- data/src/core/lib/promise/prioritized_race.h +94 -0
- data/src/core/lib/promise/promise.h +4 -1
- data/src/core/lib/promise/race.h +0 -1
- data/src/core/lib/promise/seq.h +124 -8
- data/src/core/lib/promise/sleep.cc +2 -1
- data/src/core/lib/promise/sleep.h +5 -10
- data/src/core/lib/promise/status_flag.h +196 -0
- data/src/core/lib/promise/try_join.h +71 -21
- data/src/core/lib/promise/try_seq.h +161 -7
- data/src/core/lib/resolver/endpoint_addresses.cc +147 -0
- data/src/core/lib/resolver/endpoint_addresses.h +164 -0
- data/src/core/lib/resolver/resolver.h +4 -3
- data/src/core/lib/resolver/resolver_factory.h +3 -2
- data/src/core/lib/resolver/resolver_registry.cc +0 -2
- data/src/core/lib/resolver/server_address.h +5 -115
- data/src/core/lib/resource_quota/api.cc +1 -0
- data/src/core/lib/resource_quota/arena.cc +2 -0
- data/src/core/lib/resource_quota/arena.h +44 -10
- data/src/core/lib/resource_quota/memory_quota.cc +135 -28
- data/src/core/lib/resource_quota/memory_quota.h +14 -15
- data/src/core/lib/resource_quota/resource_quota.h +1 -0
- data/src/core/lib/security/authorization/audit_logging.cc +97 -0
- data/src/core/lib/security/authorization/audit_logging.h +73 -0
- data/src/core/lib/security/authorization/authorization_policy_provider.h +1 -1
- data/src/core/lib/security/authorization/grpc_authorization_engine.cc +47 -2
- data/src/core/lib/security/authorization/grpc_authorization_engine.h +18 -1
- data/src/core/lib/security/authorization/grpc_server_authz_filter.cc +15 -12
- data/src/core/lib/security/authorization/grpc_server_authz_filter.h +14 -5
- data/src/core/lib/security/authorization/matchers.cc +0 -1
- data/src/core/lib/security/authorization/rbac_policy.cc +36 -6
- data/src/core/lib/security/authorization/rbac_policy.h +19 -2
- data/src/core/lib/security/authorization/stdout_logger.cc +74 -0
- data/src/core/lib/security/authorization/stdout_logger.h +61 -0
- data/src/core/lib/security/certificate_provider/certificate_provider_factory.h +8 -4
- data/src/core/lib/security/certificate_provider/certificate_provider_registry.cc +8 -18
- data/src/core/lib/security/certificate_provider/certificate_provider_registry.h +14 -8
- data/src/core/lib/security/credentials/alts/alts_credentials.cc +0 -2
- data/src/core/lib/security/credentials/channel_creds_registry.h +51 -27
- data/src/core/lib/security/credentials/channel_creds_registry_init.cc +169 -9
- data/src/core/lib/security/credentials/composite/composite_credentials.cc +2 -2
- data/src/core/lib/security/credentials/composite/composite_credentials.h +4 -2
- data/src/core/lib/security/credentials/external/aws_external_account_credentials.cc +58 -50
- data/src/core/lib/security/credentials/external/aws_external_account_credentials.h +4 -0
- data/src/core/lib/security/credentials/external/aws_request_signer.cc +8 -2
- data/src/core/lib/security/credentials/external/external_account_credentials.cc +132 -87
- data/src/core/lib/security/credentials/external/external_account_credentials.h +10 -0
- data/src/core/lib/security/credentials/external/file_external_account_credentials.cc +27 -21
- data/src/core/lib/security/credentials/external/file_external_account_credentials.h +4 -0
- data/src/core/lib/security/credentials/external/url_external_account_credentials.cc +34 -30
- data/src/core/lib/security/credentials/external/url_external_account_credentials.h +4 -0
- data/src/core/lib/security/credentials/fake/fake_credentials.cc +30 -38
- data/src/core/lib/security/credentials/fake/fake_credentials.h +28 -0
- data/src/core/lib/security/credentials/google_default/google_default_credentials.cc +5 -2
- data/src/core/lib/security/credentials/iam/iam_credentials.cc +0 -1
- data/src/core/lib/security/credentials/insecure/insecure_credentials.cc +0 -2
- data/src/core/lib/security/credentials/jwt/json_token.cc +36 -16
- data/src/core/lib/security/credentials/jwt/json_token.h +4 -0
- data/src/core/lib/security/credentials/jwt/jwt_credentials.cc +10 -5
- data/src/core/lib/security/credentials/jwt/jwt_credentials.h +0 -1
- data/src/core/lib/security/credentials/jwt/jwt_verifier.cc +83 -40
- data/src/core/lib/security/credentials/local/local_credentials.cc +0 -2
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc +18 -16
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.h +0 -1
- data/src/core/lib/security/credentials/plugin/plugin_credentials.cc +2 -2
- data/src/core/lib/security/credentials/ssl/ssl_credentials.cc +116 -10
- data/src/core/lib/security/credentials/ssl/ssl_credentials.h +14 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_distributor.cc +0 -2
- 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 -55
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.h +0 -3
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_verifier.h +2 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.cc +41 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h +28 -1
- data/src/core/lib/security/credentials/tls/grpc_tls_crl_provider.cc +255 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_crl_provider.h +129 -0
- data/src/core/lib/security/credentials/tls/tls_credentials.cc +27 -2
- data/src/core/lib/security/credentials/tls/tls_credentials.h +3 -1
- data/src/core/lib/security/credentials/tls/tls_utils.cc +2 -0
- data/src/core/lib/security/credentials/xds/xds_credentials.cc +22 -29
- data/src/core/lib/security/credentials/xds/xds_credentials.h +2 -4
- data/src/core/lib/security/security_connector/alts/alts_security_connector.cc +2 -5
- data/src/core/lib/security/security_connector/fake/fake_security_connector.cc +1 -1
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.cc +7 -59
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.h +1 -1
- data/src/core/lib/security/security_connector/ssl_utils.cc +11 -3
- data/src/core/lib/security/security_connector/ssl_utils.h +5 -1
- data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +8 -19
- data/src/core/lib/security/security_connector/tls/tls_security_connector.h +2 -2
- data/src/core/lib/security/transport/auth_filters.h +71 -4
- data/src/core/lib/security/transport/client_auth_filter.cc +9 -9
- data/src/core/lib/security/transport/legacy_server_auth_filter.cc +244 -0
- data/src/core/lib/security/transport/secure_endpoint.cc +3 -6
- data/src/core/lib/security/transport/security_handshaker.cc +2 -3
- data/src/core/lib/security/transport/server_auth_filter.cc +70 -92
- data/src/core/lib/security/util/json_util.cc +6 -5
- data/src/core/lib/service_config/service_config_call_data.h +54 -20
- data/src/core/lib/service_config/service_config_impl.cc +13 -6
- data/src/core/lib/slice/slice.h +29 -0
- data/src/core/lib/slice/slice_buffer.cc +15 -0
- data/src/core/lib/slice/slice_buffer.h +19 -4
- data/src/core/lib/slice/slice_refcount.h +1 -1
- data/src/core/lib/surface/builtins.cc +6 -25
- data/src/core/lib/surface/call.cc +935 -270
- data/src/core/lib/surface/call.h +31 -18
- data/src/core/lib/surface/call_log_batch.cc +0 -2
- data/src/core/lib/surface/call_trace.cc +42 -2
- data/src/core/lib/surface/channel.cc +12 -10
- data/src/core/lib/surface/channel.h +2 -8
- data/src/core/lib/surface/channel_init.cc +367 -14
- data/src/core/lib/surface/channel_init.h +177 -28
- data/src/core/lib/surface/completion_queue.cc +12 -4
- data/src/core/lib/surface/event_string.cc +0 -1
- data/src/core/lib/surface/init.cc +21 -47
- data/src/core/lib/surface/lame_client.cc +8 -1
- data/src/core/lib/surface/server.cc +555 -308
- data/src/core/lib/surface/server.h +68 -44
- data/src/core/lib/surface/validate_metadata.cc +37 -22
- data/src/core/lib/surface/validate_metadata.h +13 -3
- data/src/core/lib/surface/version.cc +2 -2
- data/src/core/lib/surface/wait_for_cq_end_op.h +94 -0
- data/src/core/lib/transport/batch_builder.cc +20 -19
- data/src/core/lib/transport/batch_builder.h +48 -38
- data/src/core/lib/transport/bdp_estimator.cc +2 -2
- data/src/core/lib/transport/bdp_estimator.h +2 -2
- data/src/core/lib/transport/call_final_info.cc +38 -0
- data/src/core/lib/transport/call_final_info.h +54 -0
- data/src/core/lib/transport/connectivity_state.cc +3 -4
- data/src/core/lib/transport/connectivity_state.h +4 -0
- data/src/core/lib/transport/error_utils.cc +0 -2
- data/src/core/lib/transport/handshaker.cc +0 -2
- data/src/core/lib/transport/metadata_batch.cc +12 -7
- data/src/core/lib/transport/metadata_batch.h +124 -109
- data/src/core/lib/transport/metadata_compression_traits.h +67 -0
- data/src/core/lib/transport/parsed_metadata.h +32 -20
- data/src/core/lib/transport/simple_slice_based_metadata.h +54 -0
- data/src/core/lib/transport/tcp_connect_handshaker.cc +0 -1
- data/src/core/lib/transport/timeout_encoding.h +2 -2
- data/src/core/lib/transport/transport.cc +80 -67
- data/src/core/lib/transport/transport.h +507 -91
- data/src/core/lib/transport/transport_fwd.h +3 -1
- data/src/core/lib/transport/transport_op_string.cc +0 -2
- data/src/core/lib/uri/uri_parser.cc +0 -1
- data/src/core/plugin_registry/grpc_plugin_registry.cc +7 -6
- data/src/core/plugin_registry/grpc_plugin_registry_extra.cc +2 -3
- data/src/core/tsi/alts/crypt/aes_gcm.cc +142 -89
- data/src/core/tsi/alts/crypt/gsec.h +387 -319
- data/src/core/tsi/alts/frame_protector/alts_frame_protector.cc +11 -7
- data/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +1 -1
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc +5 -7
- data/src/core/tsi/alts/handshaker/transport_security_common_api.cc +1 -1
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.cc +4 -6
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.cc +12 -13
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.h +26 -25
- data/src/core/tsi/ssl/session_cache/ssl_session_cache.cc +9 -1
- data/src/core/tsi/ssl_transport_security.cc +233 -69
- data/src/core/tsi/ssl_transport_security.h +36 -2
- data/src/ruby/bin/math_pb.rb +24 -18
- data/src/ruby/ext/grpc/extconf.rb +80 -18
- data/src/ruby/ext/grpc/rb_call.c +62 -39
- data/src/ruby/ext/grpc/rb_call_credentials.c +0 -1
- data/src/ruby/ext/grpc/rb_channel.c +109 -84
- data/src/ruby/ext/grpc/rb_channel.h +1 -0
- data/src/ruby/ext/grpc/rb_channel_args.c +21 -3
- data/src/ruby/ext/grpc/rb_channel_args.h +4 -0
- data/src/ruby/ext/grpc/rb_channel_credentials.c +0 -1
- data/src/ruby/ext/grpc/rb_compression_options.c +0 -1
- data/src/ruby/ext/grpc/rb_event_thread.c +22 -6
- data/src/ruby/ext/grpc/rb_event_thread.h +1 -0
- data/src/ruby/ext/grpc/rb_grpc.c +192 -31
- data/src/ruby/ext/grpc/rb_grpc.h +8 -4
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +10 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +15 -0
- data/src/ruby/ext/grpc/rb_server.c +62 -45
- data/src/ruby/ext/grpc/rb_server_credentials.c +0 -1
- data/src/ruby/ext/grpc/rb_xds_channel_credentials.c +0 -1
- data/src/ruby/ext/grpc/rb_xds_server_credentials.c +0 -1
- data/src/ruby/lib/grpc/generic/active_call.rb +9 -14
- data/src/ruby/lib/grpc/generic/bidi_call.rb +2 -0
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/pb/grpc/health/v1/health_pb.rb +24 -13
- data/src/ruby/pb/src/proto/grpc/testing/empty_pb.rb +24 -3
- data/src/ruby/pb/src/proto/grpc/testing/messages_pb.rb +33 -111
- data/src/ruby/pb/src/proto/grpc/testing/test_pb.rb +25 -2
- data/src/ruby/pb/src/proto/grpc/testing/test_services_pb.rb +22 -0
- data/src/ruby/pb/test/client.rb +16 -0
- data/src/ruby/spec/generic/rpc_server_spec.rb +3 -3
- data/third_party/abseil-cpp/absl/algorithm/container.h +3 -2
- data/third_party/abseil-cpp/absl/base/attributes.h +58 -5
- data/third_party/abseil-cpp/absl/base/call_once.h +1 -1
- data/third_party/abseil-cpp/absl/base/casts.h +8 -8
- data/third_party/abseil-cpp/absl/base/config.h +89 -106
- data/third_party/abseil-cpp/absl/base/dynamic_annotations.h +26 -1
- data/third_party/abseil-cpp/absl/base/internal/direct_mmap.h +2 -2
- data/third_party/abseil-cpp/absl/base/internal/low_level_alloc.cc +50 -39
- data/third_party/abseil-cpp/absl/base/internal/low_level_alloc.h +2 -1
- data/third_party/abseil-cpp/absl/base/internal/prefetch.h +17 -18
- data/third_party/abseil-cpp/absl/base/internal/raw_logging.cc +32 -3
- data/third_party/abseil-cpp/absl/base/internal/raw_logging.h +24 -4
- data/third_party/abseil-cpp/absl/base/internal/sysinfo.cc +31 -73
- data/third_party/abseil-cpp/absl/base/internal/thread_identity.cc +9 -8
- data/third_party/abseil-cpp/absl/base/internal/thread_identity.h +11 -11
- data/third_party/abseil-cpp/absl/base/internal/throw_delegate.cc +23 -32
- data/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc +2 -3
- data/third_party/abseil-cpp/absl/base/options.h +1 -1
- data/third_party/abseil-cpp/absl/base/policy_checks.h +3 -3
- data/third_party/abseil-cpp/absl/base/prefetch.h +198 -0
- data/third_party/abseil-cpp/absl/container/fixed_array.h +54 -29
- data/third_party/abseil-cpp/absl/container/flat_hash_map.h +5 -1
- data/third_party/abseil-cpp/absl/container/flat_hash_set.h +6 -2
- data/third_party/abseil-cpp/absl/container/inlined_vector.h +167 -79
- data/third_party/abseil-cpp/absl/container/internal/common_policy_traits.h +1 -1
- data/third_party/abseil-cpp/absl/container/internal/compressed_tuple.h +3 -21
- data/third_party/abseil-cpp/absl/container/internal/container_memory.h +1 -1
- data/third_party/abseil-cpp/absl/container/internal/hash_function_defaults.h +46 -0
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler.cc +2 -0
- data/third_party/abseil-cpp/absl/container/internal/inlined_vector.h +85 -26
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_map.h +35 -18
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.cc +70 -29
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.h +437 -236
- data/third_party/abseil-cpp/absl/crc/crc32c.h +8 -1
- data/third_party/abseil-cpp/absl/crc/internal/cpu_detect.cc +14 -8
- data/third_party/abseil-cpp/absl/crc/internal/crc.cc +4 -35
- data/third_party/abseil-cpp/absl/crc/internal/crc.h +2 -10
- data/third_party/abseil-cpp/absl/crc/internal/crc32_x86_arm_combined_simd.h +1 -1
- data/third_party/abseil-cpp/absl/crc/internal/crc_cord_state.cc +1 -1
- data/third_party/abseil-cpp/absl/crc/internal/crc_cord_state.h +4 -4
- data/third_party/abseil-cpp/absl/crc/internal/crc_internal.h +8 -10
- data/third_party/abseil-cpp/absl/crc/internal/crc_memcpy_x86_64.cc +17 -19
- data/third_party/abseil-cpp/absl/crc/internal/crc_x86_arm_combined.cc +8 -8
- data/third_party/abseil-cpp/absl/debugging/internal/elf_mem_image.h +2 -1
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_aarch64-inl.inc +59 -23
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_powerpc-inl.inc +1 -1
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_x86-inl.inc +1 -1
- data/third_party/abseil-cpp/absl/debugging/internal/symbolize.h +1 -1
- data/third_party/abseil-cpp/absl/debugging/symbolize_elf.inc +43 -19
- data/third_party/abseil-cpp/absl/debugging/symbolize_emscripten.inc +3 -0
- data/third_party/abseil-cpp/absl/flags/commandlineflag.h +1 -1
- data/third_party/abseil-cpp/absl/flags/internal/commandlineflag.cc +1 -1
- data/third_party/abseil-cpp/absl/flags/internal/flag.cc +2 -2
- data/third_party/abseil-cpp/absl/flags/internal/flag.h +16 -15
- data/third_party/abseil-cpp/absl/flags/internal/flag_msvc.inc +1 -1
- data/third_party/abseil-cpp/absl/flags/marshalling.cc +43 -2
- data/third_party/abseil-cpp/absl/flags/marshalling.h +5 -0
- data/third_party/abseil-cpp/absl/functional/any_invocable.h +9 -1
- data/third_party/abseil-cpp/absl/functional/bind_front.h +1 -1
- data/third_party/abseil-cpp/absl/functional/function_ref.h +3 -3
- data/third_party/abseil-cpp/absl/functional/internal/any_invocable.h +37 -24
- data/third_party/abseil-cpp/absl/functional/internal/function_ref.h +19 -9
- data/third_party/abseil-cpp/absl/hash/hash.h +7 -4
- data/third_party/abseil-cpp/absl/hash/internal/hash.h +38 -15
- data/third_party/abseil-cpp/absl/hash/internal/low_level_hash.cc +6 -0
- data/third_party/abseil-cpp/absl/meta/type_traits.h +48 -373
- data/third_party/abseil-cpp/absl/numeric/bits.h +4 -4
- data/third_party/abseil-cpp/absl/numeric/int128.cc +20 -8
- data/third_party/abseil-cpp/absl/numeric/int128.h +36 -39
- data/third_party/abseil-cpp/absl/numeric/int128_have_intrinsic.inc +0 -3
- data/third_party/abseil-cpp/absl/numeric/int128_no_intrinsic.inc +47 -30
- data/third_party/abseil-cpp/absl/random/bit_gen_ref.h +185 -0
- data/third_party/abseil-cpp/absl/random/internal/fast_uniform_bits.h +4 -3
- data/third_party/abseil-cpp/absl/random/internal/generate_real.h +1 -1
- data/third_party/abseil-cpp/absl/random/internal/platform.h +1 -1
- data/third_party/abseil-cpp/absl/random/internal/randen_detect.cc +4 -0
- data/third_party/abseil-cpp/absl/random/internal/randen_engine.h +1 -1
- data/third_party/abseil-cpp/absl/random/internal/randen_hwaes.cc +1 -1
- data/third_party/abseil-cpp/absl/random/internal/uniform_helper.h +1 -1
- data/third_party/abseil-cpp/absl/status/internal/status_internal.h +4 -0
- data/third_party/abseil-cpp/absl/status/internal/statusor_internal.h +12 -24
- data/third_party/abseil-cpp/absl/status/status.cc +11 -7
- data/third_party/abseil-cpp/absl/status/status.h +11 -2
- data/third_party/abseil-cpp/absl/status/statusor.h +22 -8
- data/third_party/abseil-cpp/absl/strings/ascii.cc +54 -6
- data/third_party/abseil-cpp/absl/strings/charconv.cc +21 -4
- data/third_party/abseil-cpp/absl/strings/charconv.h +2 -2
- data/third_party/abseil-cpp/absl/strings/cord.cc +1 -2
- data/third_party/abseil-cpp/absl/strings/cord.h +32 -5
- data/third_party/abseil-cpp/absl/strings/cord_analysis.cc +23 -1
- data/third_party/abseil-cpp/absl/strings/cord_analysis.h +18 -0
- data/third_party/abseil-cpp/absl/strings/cord_buffer.h +2 -5
- data/third_party/abseil-cpp/absl/strings/escaping.cc +10 -32
- data/third_party/abseil-cpp/absl/strings/escaping.h +1 -1
- data/third_party/abseil-cpp/absl/strings/internal/charconv_bigint.cc +2 -4
- data/third_party/abseil-cpp/absl/strings/internal/charconv_bigint.h +3 -3
- data/third_party/abseil-cpp/absl/strings/internal/cord_internal.cc +0 -1
- data/third_party/abseil-cpp/absl/strings/internal/cord_internal.h +15 -13
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree.cc +13 -4
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree.h +8 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_consume.cc +5 -3
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_consume.h +4 -7
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_flat.h +8 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_ring.h +2 -2
- data/third_party/abseil-cpp/absl/strings/internal/cordz_handle.cc +46 -20
- data/third_party/abseil-cpp/absl/strings/internal/cordz_handle.h +1 -34
- data/third_party/abseil-cpp/absl/strings/internal/cordz_info.cc +2 -1
- data/third_party/abseil-cpp/absl/strings/internal/escaping.cc +23 -0
- data/third_party/abseil-cpp/absl/strings/internal/escaping.h +1 -0
- data/third_party/abseil-cpp/absl/strings/internal/memutil.cc +2 -77
- data/third_party/abseil-cpp/absl/strings/internal/memutil.h +4 -112
- data/third_party/abseil-cpp/absl/strings/internal/stl_type_traits.h +1 -1
- data/third_party/abseil-cpp/absl/strings/internal/str_format/arg.cc +10 -31
- data/third_party/abseil-cpp/absl/strings/internal/str_format/arg.h +8 -8
- data/third_party/abseil-cpp/absl/strings/internal/str_format/bind.h +5 -20
- data/third_party/abseil-cpp/absl/strings/internal/str_format/constexpr_parser.h +1 -0
- data/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h +1 -1
- data/third_party/abseil-cpp/absl/strings/internal/str_format/float_conversion.cc +9 -9
- data/third_party/abseil-cpp/absl/strings/internal/str_split_internal.h +56 -6
- data/third_party/abseil-cpp/absl/strings/match.cc +87 -0
- data/third_party/abseil-cpp/absl/strings/match.h +19 -0
- data/third_party/abseil-cpp/absl/strings/numbers.cc +154 -122
- data/third_party/abseil-cpp/absl/strings/numbers.h +1 -6
- data/third_party/abseil-cpp/absl/strings/str_cat.cc +7 -50
- data/third_party/abseil-cpp/absl/strings/str_cat.h +83 -15
- data/third_party/abseil-cpp/absl/strings/str_format.h +6 -3
- data/third_party/abseil-cpp/absl/strings/str_split.cc +9 -6
- data/third_party/abseil-cpp/absl/strings/string_view.cc +26 -4
- data/third_party/abseil-cpp/absl/synchronization/internal/create_thread_identity.cc +5 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/futex.h +63 -43
- data/third_party/abseil-cpp/absl/synchronization/internal/futex_waiter.cc +111 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/futex_waiter.h +63 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc +11 -7
- data/third_party/abseil-cpp/absl/synchronization/internal/kernel_timeout.cc +225 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/kernel_timeout.h +122 -114
- data/third_party/abseil-cpp/absl/synchronization/internal/per_thread_sem.cc +12 -8
- data/third_party/abseil-cpp/absl/synchronization/internal/per_thread_sem.h +10 -1
- data/third_party/abseil-cpp/absl/synchronization/internal/pthread_waiter.cc +167 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/pthread_waiter.h +60 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/sem_waiter.cc +122 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/sem_waiter.h +65 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/stdcpp_waiter.cc +91 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/stdcpp_waiter.h +56 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/waiter.h +19 -113
- data/third_party/abseil-cpp/absl/synchronization/internal/waiter_base.cc +42 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/waiter_base.h +90 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/win32_waiter.cc +151 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/win32_waiter.h +70 -0
- data/third_party/abseil-cpp/absl/synchronization/mutex.cc +407 -411
- data/third_party/abseil-cpp/absl/synchronization/mutex.h +152 -118
- data/third_party/abseil-cpp/absl/time/clock.cc +6 -7
- data/third_party/abseil-cpp/absl/time/duration.cc +24 -26
- data/third_party/abseil-cpp/absl/time/internal/cctz/include/cctz/time_zone.h +1 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_fixed.cc +1 -1
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_format.cc +3 -3
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_if.cc +8 -6
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_if.h +6 -3
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_impl.cc +4 -2
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_impl.h +4 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_info.cc +322 -295
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_info.h +8 -17
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_libc.cc +51 -33
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_libc.h +7 -2
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_lookup.cc +128 -2
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_posix.h +1 -1
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/tzfile.h +5 -1
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/zone_info_source.cc +34 -34
- data/third_party/abseil-cpp/absl/time/time.cc +9 -2
- data/third_party/abseil-cpp/absl/time/time.h +115 -15
- data/third_party/abseil-cpp/absl/types/internal/optional.h +0 -52
- data/third_party/abseil-cpp/absl/types/internal/span.h +2 -2
- data/third_party/abseil-cpp/absl/types/internal/variant.h +2 -2
- data/third_party/abseil-cpp/absl/types/optional.h +15 -13
- data/third_party/abseil-cpp/absl/types/span.h +1 -2
- data/third_party/boringssl-with-bazel/err_data.c +554 -553
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_gentm.c +7 -3
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_mbstr.c +9 -8
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_strex.c +7 -7
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_strnid.c +6 -6
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_time.c +34 -1
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_utctm.c +11 -4
- data/third_party/boringssl-with-bazel/src/crypto/asn1/internal.h +3 -3
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_dec.c +10 -6
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_enc.c +7 -4
- data/third_party/boringssl-with-bazel/src/crypto/bio/bio.c +9 -7
- data/third_party/boringssl-with-bazel/src/crypto/bio/bio_mem.c +40 -55
- data/third_party/boringssl-with-bazel/src/crypto/bio/connect.c +7 -7
- data/third_party/boringssl-with-bazel/src/crypto/bio/errno.c +92 -0
- data/third_party/boringssl-with-bazel/src/crypto/bio/fd.c +14 -54
- data/third_party/boringssl-with-bazel/src/crypto/bio/file.c +23 -22
- data/third_party/boringssl-with-bazel/src/crypto/bio/internal.h +16 -6
- data/third_party/boringssl-with-bazel/src/crypto/bio/pair.c +4 -2
- data/third_party/boringssl-with-bazel/src/crypto/bio/socket.c +4 -4
- data/third_party/boringssl-with-bazel/src/crypto/bio/socket_helper.c +11 -2
- data/third_party/boringssl-with-bazel/src/crypto/blake2/blake2.c +31 -22
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/cbs.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/chacha/chacha.c +19 -1
- data/third_party/boringssl-with-bazel/src/crypto/chacha/internal.h +8 -1
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_tls.c +29 -26
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/internal.h +8 -0
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/tls_cbc.c +189 -13
- data/third_party/boringssl-with-bazel/src/crypto/conf/conf.c +31 -192
- data/third_party/boringssl-with-bazel/src/crypto/conf/conf_def.h +3 -7
- data/third_party/boringssl-with-bazel/src/crypto/conf/internal.h +8 -0
- data/third_party/boringssl-with-bazel/src/crypto/cpu_aarch64_apple.c +3 -2
- data/third_party/boringssl-with-bazel/src/crypto/cpu_aarch64_fuchsia.c +0 -1
- data/third_party/boringssl-with-bazel/src/crypto/cpu_aarch64_linux.c +0 -2
- data/third_party/boringssl-with-bazel/src/crypto/cpu_aarch64_openbsd.c +61 -0
- data/third_party/boringssl-with-bazel/src/crypto/cpu_aarch64_sysreg.c +93 -0
- data/third_party/boringssl-with-bazel/src/crypto/cpu_aarch64_win.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/cpu_arm_freebsd.c +0 -1
- data/third_party/boringssl-with-bazel/src/crypto/cpu_arm_linux.c +0 -2
- data/third_party/boringssl-with-bazel/src/crypto/curve25519/curve25519.c +55 -50
- data/third_party/boringssl-with-bazel/src/crypto/curve25519/curve25519_64_adx.c +18 -0
- data/third_party/boringssl-with-bazel/src/crypto/curve25519/curve25519_tables.h +2834 -7442
- data/third_party/boringssl-with-bazel/src/crypto/curve25519/internal.h +26 -8
- data/third_party/boringssl-with-bazel/src/crypto/dh_extra/dh_asn1.c +4 -0
- data/third_party/boringssl-with-bazel/src/crypto/dh_extra/params.c +5 -0
- data/third_party/boringssl-with-bazel/src/crypto/dsa/dsa.c +4 -0
- data/third_party/boringssl-with-bazel/src/crypto/dsa/internal.h +20 -0
- data/third_party/boringssl-with-bazel/src/crypto/ec_extra/ec_asn1.c +110 -72
- data/third_party/boringssl-with-bazel/src/crypto/ec_extra/ec_derive.c +4 -3
- data/third_party/boringssl-with-bazel/src/crypto/ec_extra/hash_to_curve.c +42 -34
- data/third_party/boringssl-with-bazel/src/crypto/ec_extra/internal.h +17 -11
- data/third_party/boringssl-with-bazel/src/crypto/ecdh_extra/ecdh_extra.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/err/err.c +23 -21
- data/third_party/boringssl-with-bazel/src/crypto/evp/evp.c +35 -12
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_ec.c +2 -4
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_ec_asn1.c +3 -7
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_rsa.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/evp/pbkdf.c +3 -3
- data/third_party/boringssl-with-bazel/src/crypto/evp/print.c +7 -6
- data/third_party/boringssl-with-bazel/src/crypto/ex_data.c +34 -72
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bcm.c +2 -1
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/div.c +12 -5
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/gcd.c +5 -6
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/internal.h +12 -6
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/montgomery.c +17 -18
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/montgomery_inv.c +51 -15
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/rsaz_exp.c +7 -7
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/delocate.h +5 -6
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/dh/check.c +37 -8
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/dh/dh.c +41 -19
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/dh/internal.h +9 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/builtin_curves.h +277 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/ec.c +204 -428
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/ec_key.c +4 -4
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/ec_montgomery.c +31 -64
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/felem.c +17 -13
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/internal.h +105 -143
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/oct.c +19 -19
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p224-64.c +16 -18
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p256-nistz.c +27 -30
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p256.c +23 -26
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p256_table.h +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/scalar.c +24 -24
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/simple.c +21 -37
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/simple_mul.c +31 -31
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/wnaf.c +16 -16
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ecdh/ecdh.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ecdsa/ecdsa.c +11 -5
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/hkdf/hkdf.c +112 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/cbc.c +2 -10
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/ctr.c +1 -4
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/gcm.c +115 -133
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/gcm_nohw.c +12 -14
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/internal.h +57 -47
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/ofb.c +1 -8
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/polyval.c +27 -28
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/fork_detect.c +40 -26
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/internal.h +21 -7
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/rand.c +38 -19
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/urandom.c +2 -41
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/internal.h +76 -16
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/padding.c +5 -288
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/rsa.c +143 -83
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/rsa_impl.c +126 -233
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/self_check/self_check.c +113 -24
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/service_indicator/service_indicator.c +4 -7
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/tls/internal.h +8 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/tls/kdf.c +33 -0
- data/third_party/boringssl-with-bazel/src/crypto/hpke/hpke.c +169 -6
- data/third_party/boringssl-with-bazel/src/crypto/internal.h +216 -87
- data/third_party/boringssl-with-bazel/src/crypto/kyber/internal.h +32 -2
- data/third_party/boringssl-with-bazel/src/crypto/kyber/keccak.c +11 -12
- data/third_party/boringssl-with-bazel/src/crypto/kyber/kyber.c +834 -0
- data/third_party/boringssl-with-bazel/src/crypto/mem.c +7 -8
- data/third_party/boringssl-with-bazel/src/crypto/obj/obj.c +25 -46
- data/third_party/boringssl-with-bazel/src/crypto/obj/obj_dat.h +6 -13
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_lib.c +18 -14
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/internal.h +3 -3
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/p5_pbev2.c +3 -3
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8.c +7 -7
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8_x509.c +8 -5
- data/third_party/boringssl-with-bazel/src/crypto/pool/internal.h +1 -0
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/deterministic.c +7 -6
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/forkunsafe.c +6 -12
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/getentropy.c +52 -0
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/ios.c +34 -0
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/trusty.c +38 -0
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/windows.c +41 -19
- data/third_party/boringssl-with-bazel/src/crypto/refcount.c +59 -0
- data/third_party/boringssl-with-bazel/src/crypto/rsa_extra/internal.h +77 -0
- data/third_party/boringssl-with-bazel/src/crypto/rsa_extra/rsa_crypt.c +568 -0
- data/third_party/boringssl-with-bazel/src/crypto/stack/stack.c +152 -72
- data/third_party/boringssl-with-bazel/src/crypto/thread_none.c +0 -8
- data/third_party/boringssl-with-bazel/src/crypto/thread_pthread.c +6 -35
- data/third_party/boringssl-with-bazel/src/crypto/thread_win.c +5 -26
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/internal.h +62 -0
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/pmbtoken.c +240 -72
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/trust_token.c +35 -0
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/voprf.c +588 -130
- data/third_party/boringssl-with-bazel/src/crypto/x509/a_sign.c +27 -18
- data/third_party/boringssl-with-bazel/src/crypto/x509/asn1_gen.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509/by_dir.c +10 -20
- data/third_party/boringssl-with-bazel/src/crypto/x509/by_file.c +0 -3
- data/third_party/boringssl-with-bazel/src/crypto/x509/internal.h +3 -2
- data/third_party/boringssl-with-bazel/src/crypto/x509/name_print.c +17 -39
- data/third_party/boringssl-with-bazel/src/crypto/x509/policy.c +18 -14
- data/third_party/boringssl-with-bazel/src/crypto/x509/t_x509.c +39 -48
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_att.c +1 -141
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_d2.c +1 -3
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_lu.c +19 -25
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_req.c +72 -23
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_trs.c +8 -4
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_v3.c +8 -12
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_vfy.c +22 -24
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_vpm.c +1 -72
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509name.c +22 -29
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509spki.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_crl.c +9 -7
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_name.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_pubkey.c +7 -7
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_x509a.c +2 -2
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/internal.h +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_alt.c +2 -3
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_conf.c +33 -46
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_cpols.c +1 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_info.c +3 -5
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_lib.c +20 -52
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_prn.c +14 -26
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_purp.c +11 -9
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_skey.c +17 -10
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_utl.c +5 -3
- data/third_party/boringssl-with-bazel/src/include/openssl/aead.h +5 -7
- data/third_party/boringssl-with-bazel/src/include/openssl/arm_arch.h +4 -119
- data/third_party/boringssl-with-bazel/src/include/openssl/asm_base.h +207 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/asn1.h +11 -4
- data/third_party/boringssl-with-bazel/src/include/openssl/base.h +37 -112
- data/third_party/boringssl-with-bazel/src/include/openssl/bio.h +19 -13
- data/third_party/boringssl-with-bazel/src/include/openssl/blake2.h +1 -4
- data/third_party/boringssl-with-bazel/src/include/openssl/bn.h +0 -2
- data/third_party/boringssl-with-bazel/src/include/openssl/chacha.h +6 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/conf.h +5 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/dh.h +4 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/dsa.h +0 -21
- data/third_party/boringssl-with-bazel/src/include/openssl/ec.h +28 -11
- data/third_party/boringssl-with-bazel/src/include/openssl/ec_key.h +19 -6
- data/third_party/boringssl-with-bazel/src/include/openssl/evp.h +14 -10
- data/third_party/boringssl-with-bazel/src/include/openssl/hpke.h +34 -2
- data/third_party/boringssl-with-bazel/src/include/openssl/kyber.h +128 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/nid.h +2 -11
- data/third_party/boringssl-with-bazel/src/include/openssl/obj.h +8 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/pem.h +0 -3
- data/third_party/boringssl-with-bazel/src/include/openssl/rand.h +13 -14
- data/third_party/boringssl-with-bazel/src/include/openssl/rsa.h +91 -62
- data/third_party/boringssl-with-bazel/src/include/openssl/span.h +26 -19
- data/third_party/boringssl-with-bazel/src/include/openssl/ssl.h +275 -96
- data/third_party/boringssl-with-bazel/src/include/openssl/stack.h +242 -223
- data/third_party/boringssl-with-bazel/src/include/openssl/target.h +201 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/thread.h +1 -25
- data/third_party/boringssl-with-bazel/src/include/openssl/tls1.h +4 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/trust_token.h +8 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/x509.h +760 -614
- data/third_party/boringssl-with-bazel/src/include/openssl/x509v3.h +45 -12
- data/third_party/boringssl-with-bazel/src/ssl/encrypted_client_hello.cc +11 -6
- data/third_party/boringssl-with-bazel/src/ssl/extensions.cc +10 -68
- data/third_party/boringssl-with-bazel/src/ssl/handoff.cc +20 -20
- data/third_party/boringssl-with-bazel/src/ssl/handshake_client.cc +33 -18
- data/third_party/boringssl-with-bazel/src/ssl/handshake_server.cc +1 -1
- data/third_party/boringssl-with-bazel/src/ssl/internal.h +86 -46
- data/third_party/boringssl-with-bazel/src/ssl/s3_both.cc +37 -18
- data/third_party/boringssl-with-bazel/src/ssl/ssl_asn1.cc +8 -4
- data/third_party/boringssl-with-bazel/src/ssl/ssl_cipher.cc +209 -209
- data/third_party/boringssl-with-bazel/src/ssl/ssl_file.cc +6 -6
- data/third_party/boringssl-with-bazel/src/ssl/ssl_key_share.cc +76 -118
- data/third_party/boringssl-with-bazel/src/ssl/ssl_lib.cc +209 -33
- data/third_party/boringssl-with-bazel/src/ssl/ssl_privkey.cc +17 -4
- data/third_party/boringssl-with-bazel/src/ssl/ssl_session.cc +19 -21
- data/third_party/boringssl-with-bazel/src/ssl/ssl_versions.cc +27 -19
- data/third_party/boringssl-with-bazel/src/ssl/tls13_both.cc +2 -1
- data/third_party/boringssl-with-bazel/src/ssl/tls13_client.cc +2 -3
- data/third_party/boringssl-with-bazel/src/ssl/tls13_enc.cc +5 -21
- data/third_party/boringssl-with-bazel/src/ssl/tls13_server.cc +5 -2
- data/third_party/boringssl-with-bazel/src/third_party/fiat/curve25519_64_adx.h +691 -0
- data/third_party/boringssl-with-bazel/src/third_party/fiat/curve25519_64_msvc.h +1281 -0
- data/third_party/boringssl-with-bazel/src/third_party/fiat/p256_64_msvc.h +2002 -0
- data/third_party/cares/cares/include/ares.h +23 -1
- data/third_party/cares/cares/include/ares_nameser.h +484 -0
- data/third_party/cares/cares/include/ares_rules.h +2 -2
- data/third_party/cares/cares/include/ares_version.h +3 -3
- data/third_party/cares/cares/src/lib/ares__addrinfo2hostent.c +266 -0
- data/third_party/cares/cares/src/lib/ares__addrinfo_localhost.c +240 -0
- data/third_party/cares/cares/src/lib/ares__parse_into_addrinfo.c +49 -80
- data/third_party/cares/cares/src/lib/ares__readaddrinfo.c +37 -43
- data/third_party/cares/cares/src/lib/ares__sortaddrinfo.c +12 -4
- data/third_party/cares/cares/src/lib/ares_data.c +16 -0
- data/third_party/cares/cares/src/lib/ares_data.h +7 -0
- data/third_party/cares/cares/src/lib/ares_destroy.c +8 -0
- data/third_party/cares/cares/src/lib/ares_expand_name.c +17 -6
- data/third_party/cares/cares/src/lib/ares_freeaddrinfo.c +1 -0
- data/third_party/cares/cares/src/lib/ares_getaddrinfo.c +156 -78
- data/third_party/cares/cares/src/lib/ares_gethostbyname.c +130 -326
- data/third_party/cares/cares/src/lib/ares_init.c +97 -485
- data/third_party/cares/cares/src/lib/ares_library_init.c +2 -89
- data/third_party/cares/cares/src/lib/ares_parse_a_reply.c +23 -142
- data/third_party/cares/cares/src/lib/ares_parse_aaaa_reply.c +22 -142
- data/third_party/cares/cares/src/lib/ares_parse_uri_reply.c +184 -0
- data/third_party/cares/cares/src/lib/ares_private.h +30 -16
- data/third_party/cares/cares/src/lib/ares_process.c +55 -16
- data/third_party/cares/cares/src/lib/ares_query.c +1 -35
- data/third_party/cares/cares/src/lib/ares_rand.c +279 -0
- data/third_party/cares/cares/src/lib/ares_send.c +5 -7
- data/third_party/cares/cares/src/lib/ares_strdup.c +12 -19
- data/third_party/cares/cares/src/lib/ares_strsplit.c +44 -128
- data/third_party/cares/cares/src/lib/ares_strsplit.h +9 -10
- data/third_party/cares/cares/src/lib/inet_net_pton.c +78 -116
- data/third_party/cares/cares/src/tools/ares_getopt.h +53 -0
- data/third_party/upb/upb/base/descriptor_constants.h +84 -0
- data/third_party/upb/upb/base/internal/log2.h +38 -0
- data/third_party/upb/upb/base/status.c +61 -0
- data/third_party/upb/upb/base/status.h +46 -0
- data/third_party/upb/upb/base/status.hpp +50 -0
- data/third_party/upb/upb/base/string_view.h +58 -0
- data/third_party/upb/upb/generated_code_support.h +33 -0
- data/third_party/upb/upb/hash/common.c +836 -0
- data/third_party/upb/upb/hash/common.h +174 -0
- data/third_party/upb/upb/hash/int_table.h +82 -0
- data/third_party/upb/upb/hash/str_table.h +142 -0
- data/third_party/upb/upb/json/decode.c +1480 -0
- data/third_party/upb/upb/json/decode.h +55 -0
- data/third_party/upb/upb/json/encode.c +807 -0
- data/third_party/upb/upb/json/encode.h +73 -0
- data/third_party/upb/upb/lex/atoi.c +48 -0
- data/third_party/upb/upb/lex/atoi.h +35 -0
- data/third_party/upb/upb/lex/round_trip.c +47 -0
- data/third_party/upb/upb/lex/round_trip.h +35 -0
- data/third_party/upb/upb/lex/strtod.c +77 -0
- data/third_party/upb/upb/lex/strtod.h +26 -0
- data/third_party/upb/upb/lex/unicode.c +37 -0
- data/third_party/upb/upb/lex/unicode.h +59 -0
- data/third_party/upb/upb/mem/alloc.c +27 -0
- data/third_party/upb/upb/mem/alloc.h +78 -0
- data/third_party/upb/upb/mem/arena.c +368 -0
- data/third_party/upb/upb/mem/arena.h +132 -0
- data/third_party/upb/upb/mem/arena.hpp +54 -0
- data/third_party/upb/upb/mem/internal/arena.h +94 -0
- data/third_party/upb/upb/message/accessors.c +71 -0
- data/third_party/upb/upb/message/accessors.h +380 -0
- data/third_party/upb/upb/message/array.c +154 -0
- data/third_party/upb/upb/message/array.h +98 -0
- data/third_party/upb/upb/message/internal/accessors.h +367 -0
- data/third_party/upb/upb/message/internal/array.h +138 -0
- data/third_party/upb/upb/message/internal/extension.h +63 -0
- data/third_party/upb/upb/message/internal/map.h +173 -0
- data/third_party/upb/upb/message/internal/map_entry.h +66 -0
- data/third_party/upb/upb/message/internal/map_sorter.h +112 -0
- data/third_party/upb/upb/message/internal/message.h +106 -0
- data/third_party/upb/upb/message/internal/types.h +23 -0
- data/third_party/upb/upb/message/map.c +145 -0
- data/third_party/upb/upb/message/map.h +147 -0
- data/third_party/upb/upb/message/map_gencode_util.h +81 -0
- data/third_party/upb/upb/message/map_sorter.c +170 -0
- data/third_party/upb/upb/message/message.c +154 -0
- data/third_party/upb/upb/message/message.h +52 -0
- data/third_party/upb/upb/message/tagged_ptr.h +69 -0
- data/third_party/upb/upb/message/types.h +15 -0
- data/third_party/upb/upb/message/value.h +46 -0
- data/third_party/upb/upb/mini_descriptor/build_enum.c +130 -0
- data/third_party/upb/upb/mini_descriptor/build_enum.h +42 -0
- data/third_party/upb/upb/mini_descriptor/decode.c +870 -0
- data/third_party/upb/upb/mini_descriptor/decode.h +120 -0
- data/third_party/upb/upb/mini_descriptor/internal/base92.c +26 -0
- data/third_party/upb/upb/mini_descriptor/internal/base92.h +63 -0
- data/third_party/upb/upb/mini_descriptor/internal/decoder.h +53 -0
- data/third_party/upb/upb/mini_descriptor/internal/encode.c +323 -0
- data/third_party/upb/upb/mini_descriptor/internal/encode.h +92 -0
- data/third_party/upb/upb/mini_descriptor/internal/encode.hpp +118 -0
- data/third_party/upb/upb/mini_descriptor/internal/modifiers.h +32 -0
- data/third_party/upb/upb/mini_descriptor/internal/wire_constants.h +72 -0
- data/third_party/upb/upb/mini_descriptor/link.c +122 -0
- data/third_party/upb/upb/mini_descriptor/link.h +84 -0
- data/third_party/upb/upb/mini_table/enum.h +38 -0
- data/third_party/upb/upb/mini_table/extension.h +15 -0
- data/third_party/upb/upb/mini_table/extension_registry.c +76 -0
- data/third_party/upb/upb/mini_table/extension_registry.h +85 -0
- data/third_party/upb/upb/mini_table/field.h +98 -0
- data/third_party/upb/upb/mini_table/file.h +15 -0
- data/third_party/upb/upb/mini_table/internal/enum.h +58 -0
- data/third_party/upb/upb/mini_table/internal/extension.h +27 -0
- data/third_party/upb/upb/mini_table/internal/field.h +114 -0
- data/third_party/upb/upb/mini_table/internal/file.h +29 -0
- data/third_party/upb/upb/mini_table/internal/message.c +19 -0
- data/third_party/upb/upb/mini_table/internal/message.h +88 -0
- data/third_party/upb/upb/mini_table/internal/sub.h +18 -0
- data/third_party/upb/upb/mini_table/message.c +77 -0
- data/third_party/upb/upb/mini_table/message.h +85 -0
- data/third_party/upb/upb/mini_table/sub.h +15 -0
- data/third_party/upb/upb/port/atomic.h +83 -0
- data/third_party/upb/upb/port/def.inc +328 -0
- data/third_party/upb/upb/port/undef.inc +55 -0
- data/third_party/upb/upb/port/vsnprintf_compat.h +30 -0
- data/third_party/upb/upb/reflection/common.h +51 -0
- data/third_party/upb/upb/reflection/def.h +24 -0
- data/third_party/upb/upb/reflection/def.hpp +605 -0
- data/third_party/upb/upb/reflection/def_pool.c +443 -0
- data/third_party/upb/upb/reflection/def_pool.h +87 -0
- data/third_party/upb/upb/reflection/def_type.c +30 -0
- data/third_party/upb/upb/reflection/def_type.h +60 -0
- data/third_party/upb/upb/reflection/desc_state.c +33 -0
- data/third_party/upb/upb/reflection/enum_def.c +292 -0
- data/third_party/upb/upb/reflection/enum_def.h +60 -0
- data/third_party/upb/upb/reflection/enum_reserved_range.c +63 -0
- data/third_party/upb/upb/reflection/enum_reserved_range.h +31 -0
- data/third_party/upb/upb/reflection/enum_value_def.c +125 -0
- data/third_party/upb/upb/reflection/enum_value_def.h +37 -0
- data/third_party/upb/upb/reflection/extension_range.c +74 -0
- data/third_party/upb/upb/reflection/extension_range.h +35 -0
- data/third_party/upb/upb/reflection/field_def.c +948 -0
- data/third_party/upb/upb/reflection/field_def.h +74 -0
- data/third_party/upb/upb/reflection/file_def.c +345 -0
- data/third_party/upb/upb/reflection/file_def.h +57 -0
- data/third_party/upb/upb/reflection/internal/def_builder.c +339 -0
- data/third_party/upb/upb/reflection/internal/def_builder.h +137 -0
- data/third_party/upb/upb/reflection/internal/def_pool.h +57 -0
- data/third_party/upb/upb/reflection/internal/desc_state.h +44 -0
- data/third_party/upb/upb/reflection/internal/enum_def.h +36 -0
- data/third_party/upb/upb/reflection/internal/enum_reserved_range.h +35 -0
- data/third_party/upb/upb/reflection/internal/enum_value_def.h +37 -0
- data/third_party/upb/upb/reflection/internal/extension_range.h +34 -0
- data/third_party/upb/upb/reflection/internal/field_def.h +56 -0
- data/third_party/upb/upb/reflection/internal/file_def.h +37 -0
- data/third_party/upb/upb/reflection/internal/message_def.h +43 -0
- data/third_party/upb/upb/reflection/internal/message_reserved_range.h +35 -0
- data/third_party/upb/upb/reflection/internal/method_def.h +33 -0
- data/third_party/upb/upb/reflection/internal/oneof_def.h +37 -0
- data/third_party/upb/upb/reflection/internal/service_def.h +33 -0
- data/third_party/upb/upb/reflection/internal/strdup2.c +33 -0
- data/third_party/upb/upb/reflection/internal/strdup2.h +32 -0
- data/third_party/upb/upb/reflection/message.c +213 -0
- data/third_party/upb/upb/reflection/message.h +89 -0
- data/third_party/upb/upb/reflection/message.hpp +19 -0
- data/third_party/upb/upb/reflection/message_def.c +736 -0
- data/third_party/upb/upb/reflection/message_def.h +156 -0
- data/third_party/upb/upb/reflection/message_reserved_range.c +61 -0
- data/third_party/upb/upb/reflection/message_reserved_range.h +31 -0
- data/third_party/upb/upb/reflection/method_def.c +105 -0
- data/third_party/upb/upb/reflection/method_def.h +39 -0
- data/third_party/upb/upb/reflection/oneof_def.c +208 -0
- data/third_party/upb/upb/reflection/oneof_def.h +47 -0
- data/third_party/upb/upb/reflection/service_def.c +109 -0
- data/third_party/upb/upb/reflection/service_def.h +40 -0
- data/third_party/upb/upb/text/encode.c +457 -0
- data/third_party/upb/upb/text/encode.h +49 -0
- data/third_party/upb/upb/wire/decode.c +1381 -0
- data/third_party/upb/upb/wire/decode.h +132 -0
- data/third_party/upb/upb/wire/decode_fast.c +996 -0
- data/third_party/upb/upb/wire/decode_fast.h +147 -0
- data/third_party/upb/upb/wire/encode.c +638 -0
- data/third_party/upb/upb/wire/encode.h +76 -0
- data/third_party/upb/upb/wire/eps_copy_input_stream.c +19 -0
- data/third_party/upb/upb/wire/eps_copy_input_stream.h +405 -0
- data/third_party/upb/upb/wire/internal/constants.h +27 -0
- data/third_party/upb/upb/wire/internal/decode.h +143 -0
- data/third_party/upb/upb/wire/internal/swap.h +45 -0
- data/third_party/upb/upb/wire/reader.c +47 -0
- data/third_party/upb/upb/wire/reader.h +207 -0
- data/third_party/upb/upb/wire/types.h +21 -0
- data/third_party/utf8_range/range2-neon.c +157 -0
- data/third_party/utf8_range/utf8_range.h +21 -0
- data/third_party/zlib/adler32.c +5 -27
- data/third_party/zlib/compress.c +5 -16
- data/third_party/zlib/crc32.c +86 -162
- data/third_party/zlib/deflate.c +233 -336
- data/third_party/zlib/deflate.h +8 -8
- data/third_party/zlib/gzguts.h +11 -12
- data/third_party/zlib/infback.c +7 -23
- data/third_party/zlib/inffast.c +1 -4
- data/third_party/zlib/inffast.h +1 -1
- data/third_party/zlib/inflate.c +30 -99
- data/third_party/zlib/inftrees.c +6 -11
- data/third_party/zlib/inftrees.h +3 -3
- data/third_party/zlib/trees.c +224 -302
- data/third_party/zlib/uncompr.c +4 -12
- data/third_party/zlib/zconf.h +6 -2
- data/third_party/zlib/zlib.h +191 -188
- data/third_party/zlib/zutil.c +16 -44
- data/third_party/zlib/zutil.h +10 -10
- metadata +1118 -729
- data/src/core/ext/filters/client_channel/health/health_check_client.cc +0 -175
- data/src/core/ext/filters/client_channel/health/health_check_client.h +0 -43
- data/src/core/ext/filters/client_channel/http_proxy.cc +0 -200
- data/src/core/ext/filters/client_channel/http_proxy.h +0 -52
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_attributes.cc +0 -42
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_attributes.h +0 -64
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc +0 -1229
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.h +0 -30
- data/src/core/ext/transport/chttp2/transport/context_list.cc +0 -71
- data/src/core/ext/transport/chttp2/transport/context_list.h +0 -54
- data/src/core/ext/transport/chttp2/transport/stream_map.cc +0 -177
- data/src/core/ext/transport/chttp2/transport/stream_map.h +0 -68
- data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.c +0 -117
- data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.h +0 -502
- data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.c +0 -122
- data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.h +0 -578
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.c +0 -125
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.h +0 -516
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.c +0 -388
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.h +0 -1953
- data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.c +0 -56
- data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.h +0 -159
- data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.c +0 -64
- data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.h +0 -189
- data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.c +0 -46
- data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.h +0 -128
- data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.c +0 -43
- data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.h +0 -106
- data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.c +0 -43
- data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.h +0 -101
- data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.c +0 -106
- data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.h +0 -613
- data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.c +0 -48
- data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.h +0 -107
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.c +0 -60
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.h +0 -81
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.c +0 -53
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.h +0 -103
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.c +0 -270
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.h +0 -1300
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.c +0 -419
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.h +0 -2317
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.c +0 -95
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.h +0 -394
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.c +0 -535
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.h +0 -3040
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.c +0 -48
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.h +0 -107
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.c +0 -89
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.h +0 -549
- data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.c +0 -299
- data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.h +0 -1437
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.c +0 -168
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.h +0 -801
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.c +0 -49
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.h +0 -120
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.c +0 -421
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.h +0 -1891
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.c +0 -163
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.h +0 -806
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.c +0 -47
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.h +0 -104
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.c +0 -47
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.h +0 -107
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.c +0 -58
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.h +0 -159
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.c +0 -269
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.h +0 -1329
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.c +0 -223
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.h +0 -1287
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.c +0 -49
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.h +0 -126
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.c +0 -326
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.h +0 -1796
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.c +0 -58
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.h +0 -179
- data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.c +0 -60
- data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.h +0 -177
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.c +0 -62
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.h +0 -209
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.c +0 -56
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.h +0 -182
- data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.c +0 -48
- data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.h +0 -122
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.c +0 -106
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.h +0 -360
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.c +0 -150
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.h +0 -678
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.c +0 -129
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.h +0 -588
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.c +0 -46
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.h +0 -98
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.c +0 -212
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.h +0 -1185
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.c +0 -186
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.h +0 -969
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.c +0 -68
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.h +0 -282
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.c +0 -59
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.h +0 -186
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.c +0 -53
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.h +0 -140
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.c +0 -165
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.h +0 -748
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.c +0 -174
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.h +0 -757
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.c +0 -242
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.h +0 -1217
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.c +0 -105
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.h +0 -452
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.c +0 -1139
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.h +0 -6695
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.c +0 -79
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.h +0 -267
- data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.c +0 -241
- data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.h +0 -1191
- data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.c +0 -45
- data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.h +0 -101
- data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.c +0 -49
- data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.h +0 -107
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.c +0 -63
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.h +0 -175
- data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.c +0 -52
- data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.h +0 -138
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.c +0 -63
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.h +0 -254
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opentelemetry.upb.c +0 -46
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opentelemetry.upb.h +0 -107
- data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.c +0 -47
- data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.h +0 -98
- data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.c +0 -69
- data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.h +0 -221
- data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.c +0 -33
- data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.h +0 -43
- data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.c +0 -71
- data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.h +0 -226
- data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.c +0 -55
- data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.h +0 -159
- data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.c +0 -42
- data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +0 -89
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.c +0 -96
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.h +0 -395
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.c +0 -94
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.h +0 -445
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.c +0 -71
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +0 -237
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.c +0 -58
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.h +0 -195
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.c +0 -62
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +0 -179
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.c +0 -478
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +0 -2805
- data/src/core/ext/upb-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.c +0 -46
- data/src/core/ext/upb-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.h +0 -98
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.c +0 -56
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +0 -212
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/common/v3/common.upb.c +0 -111
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +0 -444
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.c +0 -58
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.h +0 -216
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.c +0 -46
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.h +0 -98
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.c +0 -28
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.h +0 -38
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.c +0 -177
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.h +0 -932
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.c +0 -88
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +0 -320
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.c +0 -193
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +0 -1085
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.c +0 -62
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +0 -168
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.c +0 -38
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.h +0 -74
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.c +0 -282
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.h +0 -1399
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.c +0 -68
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.h +0 -218
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.c +0 -138
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.h +0 -651
- data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.c +0 -48
- data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.h +0 -116
- data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.c +0 -76
- data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.h +0 -265
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/filter_state.upb.c +0 -47
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/filter_state.upb.h +0 -113
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.c +0 -85
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.h +0 -279
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.c +0 -62
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.h +0 -196
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.c +0 -49
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.h +0 -121
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.c +0 -48
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.h +0 -117
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.c +0 -47
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.h +0 -104
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.c +0 -80
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.h +0 -246
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/status_code_input.upb.c +0 -43
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/status_code_input.upb.h +0 -114
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.c +0 -67
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.h +0 -226
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.c +0 -60
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.h +0 -178
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.c +0 -78
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.h +0 -306
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.c +0 -107
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.h +0 -457
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.c +0 -107
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.h +0 -439
- data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.c +0 -66
- data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.h +0 -213
- data/src/core/ext/upb-generated/envoy/type/v3/http.upb.c +0 -26
- data/src/core/ext/upb-generated/envoy/type/v3/http.upb.h +0 -39
- data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.c +0 -42
- data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.h +0 -143
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.c +0 -54
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.h +0 -147
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.c +0 -66
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.h +0 -208
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_strategy.upb.c +0 -63
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_strategy.upb.h +0 -202
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.c +0 -26
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.h +0 -43
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.c +0 -43
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.h +0 -101
- data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.c +0 -51
- data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.h +0 -131
- data/src/core/ext/upb-generated/google/api/annotations.upb.c +0 -40
- data/src/core/ext/upb-generated/google/api/annotations.upb.h +0 -53
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.c +0 -271
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.h +0 -1280
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.c +0 -283
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.h +0 -1386
- data/src/core/ext/upb-generated/google/api/http.upb.c +0 -81
- data/src/core/ext/upb-generated/google/api/http.upb.h +0 -343
- data/src/core/ext/upb-generated/google/api/httpbody.upb.c +0 -46
- data/src/core/ext/upb-generated/google/api/httpbody.upb.h +0 -115
- data/src/core/ext/upb-generated/google/protobuf/any.upb.c +0 -40
- data/src/core/ext/upb-generated/google/protobuf/any.upb.h +0 -92
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.c +0 -578
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.h +0 -3217
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.c +0 -40
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.h +0 -92
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.c +0 -35
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.h +0 -74
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.c +0 -95
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.h +0 -329
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.c +0 -40
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.h +0 -92
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.c +0 -127
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.h +0 -475
- data/src/core/ext/upb-generated/google/rpc/status.upb.c +0 -46
- data/src/core/ext/upb-generated/google/rpc/status.upb.h +0 -115
- data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.c +0 -84
- data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.h +0 -335
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.c +0 -63
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.h +0 -188
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.c +0 -240
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.h +0 -1173
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.c +0 -57
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.h +0 -182
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.c +0 -50
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.h +0 -139
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.c +0 -161
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.h +0 -705
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.c +0 -70
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.h +0 -216
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls_config.upb.c +0 -175
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls_config.upb.h +0 -792
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.c +0 -110
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.h +0 -290
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.c +0 -55
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.h +0 -112
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.c +0 -38
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.h +0 -46
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.c +0 -54
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.h +0 -119
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.c +0 -53
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.h +0 -103
- data/src/core/ext/upb-generated/validate/validate.upb.c +0 -560
- data/src/core/ext/upb-generated/validate/validate.upb.h +0 -4105
- data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.c +0 -110
- data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.h +0 -290
- data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.c +0 -55
- data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.h +0 -112
- data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.c +0 -38
- data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.h +0 -46
- data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.c +0 -105
- data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.h +0 -306
- data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.c +0 -53
- data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.h +0 -103
- data/src/core/ext/upb-generated/xds/core/v3/authority.upb.c +0 -41
- data/src/core/ext/upb-generated/xds/core/v3/authority.upb.h +0 -83
- data/src/core/ext/upb-generated/xds/core/v3/cidr.upb.c +0 -47
- data/src/core/ext/upb-generated/xds/core/v3/cidr.upb.h +0 -107
- data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.c +0 -66
- data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.h +0 -208
- data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.c +0 -56
- data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.h +0 -119
- data/src/core/ext/upb-generated/xds/core/v3/extension.upb.c +0 -46
- data/src/core/ext/upb-generated/xds/core/v3/extension.upb.h +0 -107
- data/src/core/ext/upb-generated/xds/core/v3/resource.upb.c +0 -49
- data/src/core/ext/upb-generated/xds/core/v3/resource.upb.h +0 -131
- data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.c +0 -68
- data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.h +0 -248
- data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.c +0 -49
- data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.h +0 -125
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.c +0 -89
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.h +0 -254
- data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.c +0 -46
- data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.h +0 -113
- data/src/core/ext/upb-generated/xds/type/matcher/v3/cel.upb.c +0 -46
- data/src/core/ext/upb-generated/xds/type/matcher/v3/cel.upb.h +0 -98
- data/src/core/ext/upb-generated/xds/type/matcher/v3/domain.upb.c +0 -62
- data/src/core/ext/upb-generated/xds/type/matcher/v3/domain.upb.h +0 -174
- data/src/core/ext/upb-generated/xds/type/matcher/v3/http_inputs.upb.c +0 -36
- data/src/core/ext/upb-generated/xds/type/matcher/v3/http_inputs.upb.h +0 -74
- data/src/core/ext/upb-generated/xds/type/matcher/v3/ip.upb.c +0 -65
- data/src/core/ext/upb-generated/xds/type/matcher/v3/ip.upb.h +0 -191
- data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.c +0 -207
- data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.h +0 -914
- data/src/core/ext/upb-generated/xds/type/matcher/v3/range.upb.c +0 -127
- data/src/core/ext/upb-generated/xds/type/matcher/v3/range.upb.h +0 -474
- data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.c +0 -52
- data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.h +0 -151
- data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.c +0 -65
- data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.h +0 -226
- data/src/core/ext/upb-generated/xds/type/v3/cel.upb.c +0 -67
- data/src/core/ext/upb-generated/xds/type/v3/cel.upb.h +0 -214
- data/src/core/ext/upb-generated/xds/type/v3/range.upb.c +0 -64
- data/src/core/ext/upb-generated/xds/type/v3/range.upb.h +0 -208
- data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.c +0 -45
- data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.h +0 -107
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/certs.upbdefs.c +0 -84
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/certs.upbdefs.h +0 -55
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/clusters.upbdefs.c +0 -128
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/clusters.upbdefs.h +0 -50
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump.upbdefs.c +0 -102
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump.upbdefs.h +0 -55
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump_shared.upbdefs.c +0 -277
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump_shared.upbdefs.h +0 -125
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/init_dump.upbdefs.c +0 -43
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/init_dump.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/listeners.upbdefs.c +0 -56
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/listeners.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/memory.upbdefs.c +0 -49
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/memory.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/metrics.upbdefs.c +0 -46
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/metrics.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/mutex_stats.upbdefs.c +0 -46
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/mutex_stats.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/server_info.upbdefs.c +0 -142
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/server_info.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/tap.upbdefs.c +0 -51
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/tap.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.c +0 -48
- data/src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.h +0 -30
- data/src/core/ext/upbdefs-generated/envoy/annotations/resource.upbdefs.c +0 -38
- data/src/core/ext/upbdefs-generated/envoy/annotations/resource.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/config/accesslog/v3/accesslog.upbdefs.c +0 -222
- data/src/core/ext/upbdefs-generated/envoy/config/accesslog/v3/accesslog.upbdefs.h +0 -105
- data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +0 -409
- data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +0 -120
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/circuit_breaker.upbdefs.c +0 -98
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/circuit_breaker.upbdefs.h +0 -45
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.c +0 -567
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.h +0 -150
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/filter.upbdefs.c +0 -51
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/filter.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/outlier_detection.upbdefs.c +0 -138
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/outlier_detection.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/config/common/matcher/v3/matcher.upbdefs.c +0 -206
- data/src/core/ext/upbdefs-generated/envoy/config/common/matcher/v3/matcher.upbdefs.h +0 -105
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.c +0 -132
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.h +0 -70
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.c +0 -54
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.c +0 -271
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.h +0 -150
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/config_source.upbdefs.c +0 -168
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/config_source.upbdefs.h +0 -65
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/event_service_config.upbdefs.c +0 -53
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/event_service_config.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/extension.upbdefs.c +0 -47
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/extension.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_method_list.upbdefs.c +0 -53
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_method_list.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_service.upbdefs.c +0 -235
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_service.upbdefs.h +0 -100
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/health_check.upbdefs.c +0 -234
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/health_check.upbdefs.h +0 -75
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/http_uri.upbdefs.c +0 -53
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/http_uri.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.c +0 -305
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.h +0 -110
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/proxy_protocol.upbdefs.c +0 -57
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/proxy_protocol.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/resolver.upbdefs.c +0 -55
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/resolver.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/socket_option.upbdefs.c +0 -61
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/socket_option.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/substitution_format_string.upbdefs.c +0 -70
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/substitution_format_string.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/udp_socket_config.upbdefs.c +0 -49
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/udp_socket_config.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint.upbdefs.c +0 -99
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint.upbdefs.h +0 -50
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint_components.upbdefs.c +0 -133
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint_components.upbdefs.h +0 -60
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/load_report.upbdefs.c +0 -136
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/load_report.upbdefs.h +0 -55
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/api_listener.upbdefs.c +0 -48
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/api_listener.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.c +0 -227
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.h +0 -80
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.c +0 -190
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.h +0 -65
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/quic_config.upbdefs.c +0 -101
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/quic_config.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.c +0 -71
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/metrics_service.upbdefs.c +0 -69
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/metrics_service.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.c +0 -125
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.h +0 -70
- data/src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.c +0 -134
- data/src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.h +0 -75
- data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.c +0 -217
- data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.h +0 -80
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.c +0 -123
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.h +0 -45
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.c +0 -972
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.h +0 -315
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/scoped_route.upbdefs.c +0 -77
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/scoped_route.upbdefs.h +0 -45
- data/src/core/ext/upbdefs-generated/envoy/config/tap/v3/common.upbdefs.c +0 -199
- data/src/core/ext/upbdefs-generated/envoy/config/tap/v3/common.upbdefs.h +0 -90
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/datadog.upbdefs.c +0 -56
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/datadog.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/dynamic_ot.upbdefs.c +0 -57
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/dynamic_ot.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.c +0 -57
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/lightstep.upbdefs.c +0 -72
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/lightstep.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opencensus.upbdefs.c +0 -99
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opencensus.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opentelemetry.upbdefs.c +0 -45
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opentelemetry.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/service.upbdefs.c +0 -52
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/service.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/skywalking.upbdefs.c +0 -71
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/skywalking.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/trace.upbdefs.c +0 -61
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/trace.upbdefs.h +0 -30
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/xray.upbdefs.c +0 -75
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/xray.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/zipkin.upbdefs.c +0 -79
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/zipkin.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.c +0 -50
- data/src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.c +0 -92
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.h +0 -55
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c +0 -117
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.h +0 -45
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.c +0 -80
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.c +0 -89
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.c +0 -60
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +0 -577
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +0 -130
- data/src/core/ext/upbdefs-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.c +0 -50
- data/src/core/ext/upbdefs-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.c +0 -48
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.h +0 -30
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +0 -213
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.h +0 -65
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.c +0 -91
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.h +0 -45
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.c +0 -258
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.h +0 -65
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.c +0 -58
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/ads.upbdefs.c +0 -58
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/ads.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/discovery.upbdefs.c +0 -200
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/discovery.upbdefs.h +0 -100
- data/src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.c +0 -76
- data/src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.c +0 -153
- data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.h +0 -55
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/cookie.upbdefs.c +0 -46
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/cookie.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/path_transformation.upbdefs.c +0 -56
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/path_transformation.upbdefs.h +0 -50
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/filter_state.upbdefs.c +0 -48
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/filter_state.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/http_inputs.upbdefs.c +0 -55
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/http_inputs.upbdefs.h +0 -55
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/metadata.upbdefs.c +0 -61
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/metadata.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/node.upbdefs.c +0 -54
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/node.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/number.upbdefs.c +0 -52
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/number.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/path.upbdefs.c +0 -51
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/path.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/regex.upbdefs.c +0 -71
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/regex.upbdefs.h +0 -45
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/status_code_input.upbdefs.c +0 -40
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/status_code_input.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/string.upbdefs.c +0 -65
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/string.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/struct.upbdefs.c +0 -58
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/struct.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/value.upbdefs.c +0 -75
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/value.upbdefs.h +0 -45
- data/src/core/ext/upbdefs-generated/envoy/type/metadata/v3/metadata.upbdefs.c +0 -78
- data/src/core/ext/upbdefs-generated/envoy/type/metadata/v3/metadata.upbdefs.h +0 -65
- data/src/core/ext/upbdefs-generated/envoy/type/tracing/v3/custom_tag.upbdefs.c +0 -85
- data/src/core/ext/upbdefs-generated/envoy/type/tracing/v3/custom_tag.upbdefs.h +0 -55
- data/src/core/ext/upbdefs-generated/envoy/type/v3/hash_policy.upbdefs.c +0 -53
- data/src/core/ext/upbdefs-generated/envoy/type/v3/hash_policy.upbdefs.h +0 -45
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http.upbdefs.c +0 -36
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http.upbdefs.h +0 -30
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http_status.upbdefs.c +0 -94
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http_status.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/type/v3/percent.upbdefs.c +0 -54
- data/src/core/ext/upbdefs-generated/envoy/type/v3/percent.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/envoy/type/v3/range.upbdefs.c +0 -48
- data/src/core/ext/upbdefs-generated/envoy/type/v3/range.upbdefs.h +0 -45
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_strategy.upbdefs.c +0 -69
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_strategy.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_unit.upbdefs.c +0 -39
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_unit.upbdefs.h +0 -30
- data/src/core/ext/upbdefs-generated/envoy/type/v3/semantic_version.upbdefs.c +0 -44
- data/src/core/ext/upbdefs-generated/envoy/type/v3/semantic_version.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/type/v3/token_bucket.upbdefs.c +0 -57
- data/src/core/ext/upbdefs-generated/envoy/type/v3/token_bucket.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/google/api/annotations.upbdefs.c +0 -40
- data/src/core/ext/upbdefs-generated/google/api/annotations.upbdefs.h +0 -30
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.c +0 -154
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.h +0 -95
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.c +0 -153
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.h +0 -100
- data/src/core/ext/upbdefs-generated/google/api/http.upbdefs.c +0 -52
- data/src/core/ext/upbdefs-generated/google/api/http.upbdefs.h +0 -45
- data/src/core/ext/upbdefs-generated/google/api/httpbody.upbdefs.c +0 -39
- data/src/core/ext/upbdefs-generated/google/api/httpbody.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/google/protobuf/any.upbdefs.c +0 -34
- data/src/core/ext/upbdefs-generated/google/protobuf/any.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.c +0 -331
- data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.h +0 -165
- data/src/core/ext/upbdefs-generated/google/protobuf/duration.upbdefs.c +0 -35
- data/src/core/ext/upbdefs-generated/google/protobuf/duration.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/google/protobuf/empty.upbdefs.c +0 -32
- data/src/core/ext/upbdefs-generated/google/protobuf/empty.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/google/protobuf/struct.upbdefs.c +0 -54
- data/src/core/ext/upbdefs-generated/google/protobuf/struct.upbdefs.h +0 -50
- data/src/core/ext/upbdefs-generated/google/protobuf/timestamp.upbdefs.c +0 -35
- data/src/core/ext/upbdefs-generated/google/protobuf/timestamp.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/google/protobuf/wrappers.upbdefs.c +0 -45
- data/src/core/ext/upbdefs-generated/google/protobuf/wrappers.upbdefs.h +0 -75
- data/src/core/ext/upbdefs-generated/google/rpc/status.upbdefs.c +0 -37
- data/src/core/ext/upbdefs-generated/google/rpc/status.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/opencensus/proto/trace/v1/trace_config.upbdefs.c +0 -67
- data/src/core/ext/upbdefs-generated/opencensus/proto/trace/v1/trace_config.upbdefs.h +0 -50
- data/src/core/ext/upbdefs-generated/src/proto/grpc/lookup/v1/rls_config.upbdefs.c +0 -99
- data/src/core/ext/upbdefs-generated/src/proto/grpc/lookup/v1/rls_config.upbdefs.h +0 -75
- data/src/core/ext/upbdefs-generated/udpa/annotations/migrate.upbdefs.c +0 -62
- data/src/core/ext/upbdefs-generated/udpa/annotations/migrate.upbdefs.h +0 -45
- data/src/core/ext/upbdefs-generated/udpa/annotations/security.upbdefs.c +0 -47
- data/src/core/ext/upbdefs-generated/udpa/annotations/security.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/udpa/annotations/sensitive.upbdefs.c +0 -34
- data/src/core/ext/upbdefs-generated/udpa/annotations/sensitive.upbdefs.h +0 -30
- data/src/core/ext/upbdefs-generated/udpa/annotations/status.upbdefs.c +0 -46
- data/src/core/ext/upbdefs-generated/udpa/annotations/status.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.c +0 -39
- data/src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/validate/validate.upbdefs.c +0 -283
- data/src/core/ext/upbdefs-generated/validate/validate.upbdefs.h +0 -145
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/migrate.upbdefs.c +0 -63
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/migrate.upbdefs.h +0 -45
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/security.upbdefs.c +0 -47
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/security.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/sensitive.upbdefs.c +0 -35
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/sensitive.upbdefs.h +0 -30
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/status.upbdefs.c +0 -64
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/status.upbdefs.h +0 -50
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/versioning.upbdefs.c +0 -40
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/versioning.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.c +0 -38
- data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/xds/core/v3/cidr.upbdefs.c +0 -45
- data/src/core/ext/upbdefs-generated/xds/core/v3/cidr.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.c +0 -56
- data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.c +0 -39
- data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/xds/core/v3/extension.upbdefs.c +0 -41
- data/src/core/ext/upbdefs-generated/xds/core/v3/extension.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.c +0 -45
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.c +0 -61
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.c +0 -46
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/cel.upbdefs.c +0 -43
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/cel.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/domain.upbdefs.c +0 -51
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/domain.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/http_inputs.upbdefs.c +0 -36
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/http_inputs.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/ip.upbdefs.c +0 -55
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/ip.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/matcher.upbdefs.c +0 -126
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/matcher.upbdefs.h +0 -80
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/range.upbdefs.c +0 -71
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/range.upbdefs.h +0 -60
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/regex.upbdefs.c +0 -40
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/regex.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/string.upbdefs.c +0 -52
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/string.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/xds/type/v3/cel.upbdefs.c +0 -60
- data/src/core/ext/upbdefs-generated/xds/type/v3/cel.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/xds/type/v3/range.upbdefs.c +0 -36
- data/src/core/ext/upbdefs-generated/xds/type/v3/range.upbdefs.h +0 -45
- data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.c +0 -37
- data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.h +0 -35
- data/src/core/lib/event_engine/executor/executor.h +0 -38
- data/src/core/lib/event_engine/memory_allocator.cc +0 -74
- data/src/core/lib/event_engine/thread_pool.cc +0 -253
- data/src/core/lib/event_engine/thread_pool.h +0 -141
- data/src/core/lib/promise/detail/basic_join.h +0 -197
- data/src/core/lib/promise/detail/switch.h +0 -1455
- data/src/core/lib/resolver/server_address.cc +0 -182
- data/src/core/lib/transport/pid_controller.cc +0 -51
- data/src/core/lib/transport/pid_controller.h +0 -116
- data/src/core/lib/transport/transport_impl.h +0 -102
- data/third_party/abseil-cpp/absl/synchronization/internal/waiter.cc +0 -403
- data/third_party/boringssl-with-bazel/src/crypto/cpu_aarch64_freebsd.c +0 -62
- data/third_party/boringssl-with-bazel/src/crypto/cpu_arm.c +0 -38
- data/third_party/boringssl-with-bazel/src/crypto/hkdf/hkdf.c +0 -112
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/fuchsia.c +0 -34
- data/third_party/boringssl-with-bazel/src/crypto/refcount_c11.c +0 -65
- data/third_party/boringssl-with-bazel/src/crypto/refcount_lock.c +0 -52
- data/third_party/cares/cares/src/lib/ares_library_init.h +0 -43
- data/third_party/cares/cares/src/lib/ares_nameser.h +0 -482
- data/third_party/re2/util/benchmark.h +0 -156
- data/third_party/re2/util/flags.h +0 -26
- data/third_party/re2/util/malloc_counter.h +0 -19
- data/third_party/re2/util/pcre.cc +0 -1025
- data/third_party/re2/util/pcre.h +0 -681
- data/third_party/re2/util/test.h +0 -50
- data/third_party/upb/third_party/utf8_range/range2-neon.c +0 -157
- data/third_party/upb/third_party/utf8_range/utf8_range.h +0 -9
- data/third_party/upb/upb/arena.c +0 -277
- data/third_party/upb/upb/arena.h +0 -225
- data/third_party/upb/upb/array.c +0 -114
- data/third_party/upb/upb/array.h +0 -83
- data/third_party/upb/upb/collections.h +0 -36
- data/third_party/upb/upb/decode.c +0 -1221
- data/third_party/upb/upb/decode.h +0 -95
- data/third_party/upb/upb/decode_fast.c +0 -1055
- data/third_party/upb/upb/decode_fast.h +0 -153
- data/third_party/upb/upb/def.c +0 -3269
- data/third_party/upb/upb/def.h +0 -416
- data/third_party/upb/upb/def.hpp +0 -441
- data/third_party/upb/upb/encode.c +0 -613
- data/third_party/upb/upb/encode.h +0 -81
- data/third_party/upb/upb/extension_registry.c +0 -93
- data/third_party/upb/upb/extension_registry.h +0 -84
- data/third_party/upb/upb/internal/decode.h +0 -211
- data/third_party/upb/upb/internal/table.h +0 -385
- data/third_party/upb/upb/internal/upb.h +0 -68
- data/third_party/upb/upb/internal/vsnprintf_compat.h +0 -52
- data/third_party/upb/upb/json_decode.c +0 -1512
- data/third_party/upb/upb/json_decode.h +0 -47
- data/third_party/upb/upb/json_encode.c +0 -780
- data/third_party/upb/upb/json_encode.h +0 -65
- data/third_party/upb/upb/map.c +0 -108
- data/third_party/upb/upb/map.h +0 -117
- data/third_party/upb/upb/message_value.h +0 -66
- data/third_party/upb/upb/mini_table.c +0 -1147
- data/third_party/upb/upb/mini_table.h +0 -189
- data/third_party/upb/upb/mini_table.hpp +0 -112
- data/third_party/upb/upb/msg.c +0 -368
- data/third_party/upb/upb/msg.h +0 -71
- data/third_party/upb/upb/msg_internal.h +0 -837
- data/third_party/upb/upb/port_def.inc +0 -262
- data/third_party/upb/upb/port_undef.inc +0 -63
- data/third_party/upb/upb/reflection.c +0 -323
- data/third_party/upb/upb/reflection.h +0 -110
- data/third_party/upb/upb/reflection.hpp +0 -37
- data/third_party/upb/upb/status.c +0 -86
- data/third_party/upb/upb/status.h +0 -66
- data/third_party/upb/upb/table.c +0 -926
- data/third_party/upb/upb/table_internal.h +0 -36
- data/third_party/upb/upb/text_encode.c +0 -473
- data/third_party/upb/upb/text_encode.h +0 -64
- data/third_party/upb/upb/upb.c +0 -76
- data/third_party/upb/upb/upb.h +0 -184
- data/third_party/upb/upb/upb.hpp +0 -115
- data/third_party/zlib/gzclose.c +0 -25
- data/third_party/zlib/gzlib.c +0 -639
- data/third_party/zlib/gzread.c +0 -650
- data/third_party/zlib/gzwrite.c +0 -677
- /data/third_party/{upb/third_party/utf8_range → utf8_range}/naive.c +0 -0
- /data/third_party/{upb/third_party/utf8_range → utf8_range}/range2-sse.c +0 -0
@@ -20,26 +20,35 @@
|
|
20
20
|
|
21
21
|
#include <inttypes.h>
|
22
22
|
#include <limits.h>
|
23
|
-
#include <stdio.h>
|
24
23
|
#include <string.h>
|
25
24
|
|
26
25
|
#include <algorithm>
|
27
|
-
#include <
|
26
|
+
#include <atomic>
|
27
|
+
#include <cstddef>
|
28
|
+
#include <limits>
|
28
29
|
#include <memory>
|
29
30
|
#include <new>
|
30
31
|
#include <string>
|
32
|
+
#include <type_traits>
|
31
33
|
#include <utility>
|
34
|
+
#include <vector>
|
32
35
|
|
33
36
|
#include "absl/base/attributes.h"
|
37
|
+
#include "absl/container/flat_hash_map.h"
|
38
|
+
#include "absl/hash/hash.h"
|
39
|
+
#include "absl/meta/type_traits.h"
|
40
|
+
#include "absl/random/random.h"
|
34
41
|
#include "absl/status/status.h"
|
35
42
|
#include "absl/strings/cord.h"
|
36
43
|
#include "absl/strings/str_cat.h"
|
37
44
|
#include "absl/strings/str_format.h"
|
38
45
|
#include "absl/strings/string_view.h"
|
39
46
|
#include "absl/types/optional.h"
|
47
|
+
#include "absl/types/variant.h"
|
40
48
|
|
41
49
|
#include <grpc/event_engine/event_engine.h>
|
42
50
|
#include <grpc/grpc.h>
|
51
|
+
#include <grpc/impl/channel_arg_names.h>
|
43
52
|
#include <grpc/impl/connectivity_state.h>
|
44
53
|
#include <grpc/slice_buffer.h>
|
45
54
|
#include <grpc/status.h>
|
@@ -47,9 +56,8 @@
|
|
47
56
|
#include <grpc/support/log.h>
|
48
57
|
#include <grpc/support/time.h>
|
49
58
|
|
50
|
-
#include "src/core/ext/transport/chttp2/transport/
|
59
|
+
#include "src/core/ext/transport/chttp2/transport/context_list_entry.h"
|
51
60
|
#include "src/core/ext/transport/chttp2/transport/flow_control.h"
|
52
|
-
#include "src/core/ext/transport/chttp2/transport/frame.h"
|
53
61
|
#include "src/core/ext/transport/chttp2/transport/frame_data.h"
|
54
62
|
#include "src/core/ext/transport/chttp2/transport/frame_goaway.h"
|
55
63
|
#include "src/core/ext/transport/chttp2/transport/frame_rst_stream.h"
|
@@ -57,14 +65,21 @@
|
|
57
65
|
#include "src/core/ext/transport/chttp2/transport/http2_settings.h"
|
58
66
|
#include "src/core/ext/transport/chttp2/transport/http_trace.h"
|
59
67
|
#include "src/core/ext/transport/chttp2/transport/internal.h"
|
60
|
-
#include "src/core/ext/transport/chttp2/transport/
|
68
|
+
#include "src/core/ext/transport/chttp2/transport/legacy_frame.h"
|
69
|
+
#include "src/core/ext/transport/chttp2/transport/max_concurrent_streams_policy.h"
|
70
|
+
#include "src/core/ext/transport/chttp2/transport/ping_abuse_policy.h"
|
71
|
+
#include "src/core/ext/transport/chttp2/transport/ping_callbacks.h"
|
72
|
+
#include "src/core/ext/transport/chttp2/transport/ping_rate_policy.h"
|
61
73
|
#include "src/core/ext/transport/chttp2/transport/varint.h"
|
74
|
+
#include "src/core/ext/transport/chttp2/transport/write_size_policy.h"
|
62
75
|
#include "src/core/lib/channel/call_tracer.h"
|
63
76
|
#include "src/core/lib/channel/channel_args.h"
|
64
77
|
#include "src/core/lib/channel/context.h"
|
78
|
+
#include "src/core/lib/channel/tcp_tracer.h"
|
65
79
|
#include "src/core/lib/debug/stats.h"
|
66
80
|
#include "src/core/lib/debug/stats_data.h"
|
67
81
|
#include "src/core/lib/experiments/experiments.h"
|
82
|
+
#include "src/core/lib/gpr/string.h"
|
68
83
|
#include "src/core/lib/gpr/useful.h"
|
69
84
|
#include "src/core/lib/gprpp/bitset.h"
|
70
85
|
#include "src/core/lib/gprpp/crash.h"
|
@@ -78,7 +93,6 @@
|
|
78
93
|
#include "src/core/lib/iomgr/exec_ctx.h"
|
79
94
|
#include "src/core/lib/iomgr/iomgr_fwd.h"
|
80
95
|
#include "src/core/lib/iomgr/port.h"
|
81
|
-
#include "src/core/lib/iomgr/timer.h"
|
82
96
|
#include "src/core/lib/promise/poll.h"
|
83
97
|
#include "src/core/lib/resource_quota/arena.h"
|
84
98
|
#include "src/core/lib/resource_quota/memory_quota.h"
|
@@ -94,7 +108,6 @@
|
|
94
108
|
#include "src/core/lib/transport/metadata_batch.h"
|
95
109
|
#include "src/core/lib/transport/status_conversion.h"
|
96
110
|
#include "src/core/lib/transport/transport.h"
|
97
|
-
#include "src/core/lib/transport/transport_impl.h"
|
98
111
|
|
99
112
|
#ifdef GRPC_POSIX_SOCKET_TCP
|
100
113
|
#include "src/core/lib/iomgr/ev_posix.h"
|
@@ -106,36 +119,28 @@
|
|
106
119
|
#define DEFAULT_MAX_HEADER_LIST_SIZE (16 * 1024)
|
107
120
|
#define DEFAULT_MAX_HEADER_LIST_SIZE_SOFT_LIMIT (8 * 1024)
|
108
121
|
|
109
|
-
#define DEFAULT_CLIENT_KEEPALIVE_TIME_MS INT_MAX
|
110
|
-
#define DEFAULT_CLIENT_KEEPALIVE_TIMEOUT_MS 20000 // 20 seconds
|
111
|
-
#define DEFAULT_SERVER_KEEPALIVE_TIME_MS 7200000 // 2 hours
|
112
|
-
#define DEFAULT_SERVER_KEEPALIVE_TIMEOUT_MS 20000 // 20 seconds
|
113
|
-
#define DEFAULT_KEEPALIVE_PERMIT_WITHOUT_CALLS false
|
114
122
|
#define KEEPALIVE_TIME_BACKOFF_MULTIPLIER 2
|
115
123
|
|
116
|
-
#define DEFAULT_MIN_RECV_PING_INTERVAL_WITHOUT_DATA_MS 300000 // 5 minutes
|
117
|
-
#define DEFAULT_MAX_PINGS_BETWEEN_DATA 2
|
118
|
-
#define DEFAULT_MAX_PING_STRIKES 2
|
119
|
-
|
120
124
|
#define DEFAULT_MAX_PENDING_INDUCED_FRAMES 10000
|
121
125
|
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
126
|
+
#define GRPC_ARG_HTTP2_PING_ON_RST_STREAM_PERCENT \
|
127
|
+
"grpc.http2.ping_on_rst_stream_percent"
|
128
|
+
|
129
|
+
static grpc_core::Duration g_default_client_keepalive_time =
|
130
|
+
grpc_core::Duration::Infinity();
|
131
|
+
static grpc_core::Duration g_default_client_keepalive_timeout =
|
132
|
+
grpc_core::Duration::Seconds(20);
|
133
|
+
static grpc_core::Duration g_default_server_keepalive_time =
|
134
|
+
grpc_core::Duration::Hours(2);
|
135
|
+
static grpc_core::Duration g_default_server_keepalive_timeout =
|
136
|
+
grpc_core::Duration::Seconds(20);
|
137
|
+
static bool g_default_client_keepalive_permit_without_calls = false;
|
138
|
+
static bool g_default_server_keepalive_permit_without_calls = false;
|
139
|
+
|
140
|
+
// EXPERIMENTAL: control tarpitting in chttp2
|
141
|
+
#define GRPC_ARG_HTTP_ALLOW_TARPIT "grpc.http.tarpit"
|
142
|
+
#define GRPC_ARG_HTTP_TARPIT_MIN_DURATION_MS "grpc.http.tarpit_min_duration_ms"
|
143
|
+
#define GRPC_ARG_HTTP_TARPIT_MAX_DURATION_MS "grpc.http.tarpit_max_duration_ms"
|
139
144
|
|
140
145
|
#define MAX_CLIENT_STREAM_ID 0x7fffffffu
|
141
146
|
grpc_core::TraceFlag grpc_keepalive_trace(false, "http_keepalive");
|
@@ -143,21 +148,23 @@ grpc_core::DebugOnlyTraceFlag grpc_trace_chttp2_refcount(false,
|
|
143
148
|
"chttp2_refcount");
|
144
149
|
|
145
150
|
// forward declarations of various callbacks that we'll build closures around
|
146
|
-
static void write_action_begin_locked(
|
147
|
-
|
148
|
-
static void
|
149
|
-
static void
|
150
|
-
|
151
|
-
static void
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
static void
|
157
|
-
|
151
|
+
static void write_action_begin_locked(
|
152
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport>, grpc_error_handle error);
|
153
|
+
static void write_action(grpc_chttp2_transport* t);
|
154
|
+
static void write_action_end(grpc_core::RefCountedPtr<grpc_chttp2_transport>,
|
155
|
+
grpc_error_handle error);
|
156
|
+
static void write_action_end_locked(
|
157
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport>, grpc_error_handle error);
|
158
|
+
|
159
|
+
static void read_action(grpc_core::RefCountedPtr<grpc_chttp2_transport>,
|
160
|
+
grpc_error_handle error);
|
161
|
+
static void read_action_locked(grpc_core::RefCountedPtr<grpc_chttp2_transport>,
|
162
|
+
grpc_error_handle error);
|
163
|
+
static void continue_read_action_locked(
|
164
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t);
|
158
165
|
|
159
166
|
static void close_from_api(grpc_chttp2_transport* t, grpc_chttp2_stream* s,
|
160
|
-
grpc_error_handle error);
|
167
|
+
grpc_error_handle error, bool tarpit);
|
161
168
|
|
162
169
|
// Start new streams that have been created if we can
|
163
170
|
static void maybe_start_some_streams(grpc_chttp2_transport* t);
|
@@ -167,8 +174,10 @@ static void connectivity_state_set(grpc_chttp2_transport* t,
|
|
167
174
|
const absl::Status& status,
|
168
175
|
const char* reason);
|
169
176
|
|
170
|
-
static void benign_reclaimer_locked(
|
171
|
-
|
177
|
+
static void benign_reclaimer_locked(
|
178
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport>, grpc_error_handle error);
|
179
|
+
static void destructive_reclaimer_locked(
|
180
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport>, grpc_error_handle error);
|
172
181
|
|
173
182
|
static void post_benign_reclaimer(grpc_chttp2_transport* t);
|
174
183
|
static void post_destructive_reclaimer(grpc_chttp2_transport* t);
|
@@ -178,47 +187,101 @@ static void close_transport_locked(grpc_chttp2_transport* t,
|
|
178
187
|
static void end_all_the_calls(grpc_chttp2_transport* t,
|
179
188
|
grpc_error_handle error);
|
180
189
|
|
181
|
-
static void start_bdp_ping(
|
182
|
-
|
183
|
-
static void
|
184
|
-
|
190
|
+
static void start_bdp_ping(grpc_core::RefCountedPtr<grpc_chttp2_transport>,
|
191
|
+
grpc_error_handle error);
|
192
|
+
static void finish_bdp_ping(grpc_core::RefCountedPtr<grpc_chttp2_transport>,
|
193
|
+
grpc_error_handle error);
|
194
|
+
static void start_bdp_ping_locked(
|
195
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport>, grpc_error_handle error);
|
196
|
+
static void finish_bdp_ping_locked(
|
197
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport>, grpc_error_handle error);
|
185
198
|
static void next_bdp_ping_timer_expired(grpc_chttp2_transport* t);
|
186
199
|
static void next_bdp_ping_timer_expired_locked(
|
187
|
-
|
200
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> tp,
|
201
|
+
GRPC_UNUSED grpc_error_handle error);
|
188
202
|
|
189
203
|
static void cancel_pings(grpc_chttp2_transport* t, grpc_error_handle error);
|
190
204
|
static void send_ping_locked(grpc_chttp2_transport* t,
|
191
205
|
grpc_closure* on_initiate, grpc_closure* on_ack);
|
192
|
-
static void retry_initiate_ping_locked(
|
193
|
-
|
206
|
+
static void retry_initiate_ping_locked(
|
207
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t,
|
208
|
+
GRPC_UNUSED grpc_error_handle error);
|
194
209
|
|
195
210
|
// keepalive-relevant functions
|
196
|
-
static void init_keepalive_ping(
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
static void
|
202
|
-
|
203
|
-
static void
|
204
|
-
|
205
|
-
void* arg, GRPC_UNUSED grpc_error_handle error);
|
211
|
+
static void init_keepalive_ping(
|
212
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t);
|
213
|
+
static void init_keepalive_ping_locked(
|
214
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t,
|
215
|
+
GRPC_UNUSED grpc_error_handle error);
|
216
|
+
static void finish_keepalive_ping(
|
217
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t, grpc_error_handle error);
|
218
|
+
static void finish_keepalive_ping_locked(
|
219
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t, grpc_error_handle error);
|
206
220
|
static void maybe_reset_keepalive_ping_timer_locked(grpc_chttp2_transport* t);
|
207
221
|
|
222
|
+
static void send_goaway(grpc_chttp2_transport* t, grpc_error_handle error,
|
223
|
+
bool immediate_disconnect_hint);
|
224
|
+
|
225
|
+
// Timeout for getting an ack back on settings changes
|
226
|
+
#define GRPC_ARG_SETTINGS_TIMEOUT "grpc.http2.settings_timeout"
|
227
|
+
|
208
228
|
namespace {
|
209
|
-
|
229
|
+
|
230
|
+
using TaskHandle = ::grpc_event_engine::experimental::EventEngine::TaskHandle;
|
231
|
+
|
232
|
+
grpc_core::CallTracerInterface* CallTracerIfSampled(grpc_chttp2_stream* s) {
|
210
233
|
if (s->context == nullptr || !grpc_core::IsTraceRecordCallopsEnabled()) {
|
211
234
|
return nullptr;
|
212
235
|
}
|
213
|
-
|
236
|
+
auto* call_tracer = static_cast<grpc_core::CallTracerInterface*>(
|
214
237
|
static_cast<grpc_call_context_element*>(
|
215
238
|
s->context)[GRPC_CONTEXT_CALL_TRACER_ANNOTATION_INTERFACE]
|
216
239
|
.value);
|
240
|
+
if (call_tracer == nullptr || !call_tracer->IsSampled()) {
|
241
|
+
return nullptr;
|
242
|
+
}
|
243
|
+
return call_tracer;
|
244
|
+
}
|
245
|
+
|
246
|
+
std::shared_ptr<grpc_core::TcpTracerInterface> TcpTracerIfSampled(
|
247
|
+
grpc_chttp2_stream* s) {
|
248
|
+
if (s->context == nullptr || !grpc_core::IsTraceRecordCallopsEnabled()) {
|
249
|
+
return nullptr;
|
250
|
+
}
|
251
|
+
auto* call_attempt_tracer = static_cast<grpc_core::CallTracerInterface*>(
|
252
|
+
static_cast<grpc_call_context_element*>(
|
253
|
+
s->context)[GRPC_CONTEXT_CALL_TRACER]
|
254
|
+
.value);
|
255
|
+
if (call_attempt_tracer == nullptr || !call_attempt_tracer->IsSampled()) {
|
256
|
+
return nullptr;
|
257
|
+
}
|
258
|
+
return call_attempt_tracer->StartNewTcpTrace();
|
217
259
|
}
|
260
|
+
|
261
|
+
grpc_core::WriteTimestampsCallback g_write_timestamps_callback = nullptr;
|
262
|
+
grpc_core::CopyContextFn g_get_copied_context_fn = nullptr;
|
218
263
|
} // namespace
|
219
264
|
|
220
265
|
namespace grpc_core {
|
221
266
|
|
267
|
+
namespace {
|
268
|
+
// Initialize a grpc_closure \a c to call \a Fn with \a t and \a error. Holds
|
269
|
+
// the passed in reference to \a t until it's moved into Fn.
|
270
|
+
template <void (*Fn)(RefCountedPtr<grpc_chttp2_transport>, grpc_error_handle)>
|
271
|
+
grpc_closure* InitTransportClosure(RefCountedPtr<grpc_chttp2_transport> t,
|
272
|
+
grpc_closure* c) {
|
273
|
+
GRPC_CLOSURE_INIT(
|
274
|
+
c,
|
275
|
+
[](void* tp, grpc_error_handle error) {
|
276
|
+
Fn(RefCountedPtr<grpc_chttp2_transport>(
|
277
|
+
static_cast<grpc_chttp2_transport*>(tp)),
|
278
|
+
std::move(error));
|
279
|
+
},
|
280
|
+
t.release(), nullptr);
|
281
|
+
return c;
|
282
|
+
}
|
283
|
+
} // namespace
|
284
|
+
|
222
285
|
namespace {
|
223
286
|
TestOnlyGlobalHttp2TransportInitCallback test_only_init_callback = nullptr;
|
224
287
|
TestOnlyGlobalHttp2TransportDestructCallback test_only_destruct_callback =
|
@@ -241,6 +304,76 @@ void TestOnlyGlobalHttp2TransportDisableTransientFailureStateNotification(
|
|
241
304
|
test_only_disable_transient_failure_state_notification = disable;
|
242
305
|
}
|
243
306
|
|
307
|
+
void GrpcHttp2SetWriteTimestampsCallback(WriteTimestampsCallback fn) {
|
308
|
+
g_write_timestamps_callback = fn;
|
309
|
+
}
|
310
|
+
|
311
|
+
void GrpcHttp2SetCopyContextFn(CopyContextFn fn) {
|
312
|
+
g_get_copied_context_fn = fn;
|
313
|
+
}
|
314
|
+
|
315
|
+
WriteTimestampsCallback GrpcHttp2GetWriteTimestampsCallback() {
|
316
|
+
return g_write_timestamps_callback;
|
317
|
+
}
|
318
|
+
|
319
|
+
CopyContextFn GrpcHttp2GetCopyContextFn() { return g_get_copied_context_fn; }
|
320
|
+
|
321
|
+
// For each entry in the passed ContextList, it executes the function set using
|
322
|
+
// GrpcHttp2SetWriteTimestampsCallback method with each context in the list
|
323
|
+
// and \a ts. It also deletes/frees up the passed ContextList after this
|
324
|
+
// operation.
|
325
|
+
void ForEachContextListEntryExecute(void* arg, Timestamps* ts,
|
326
|
+
grpc_error_handle error) {
|
327
|
+
ContextList* context_list = reinterpret_cast<ContextList*>(arg);
|
328
|
+
if (!context_list) {
|
329
|
+
return;
|
330
|
+
}
|
331
|
+
for (auto it = context_list->begin(); it != context_list->end(); it++) {
|
332
|
+
ContextListEntry& entry = (*it);
|
333
|
+
if (ts) {
|
334
|
+
ts->byte_offset = static_cast<uint32_t>(entry.ByteOffsetInStream());
|
335
|
+
}
|
336
|
+
g_write_timestamps_callback(entry.TraceContext(), ts, error);
|
337
|
+
}
|
338
|
+
delete context_list;
|
339
|
+
}
|
340
|
+
|
341
|
+
HttpAnnotation::HttpAnnotation(
|
342
|
+
Type type, gpr_timespec time,
|
343
|
+
absl::optional<chttp2::TransportFlowControl::Stats> transport_stats,
|
344
|
+
absl::optional<chttp2::StreamFlowControl::Stats> stream_stats)
|
345
|
+
: CallTracerAnnotationInterface::Annotation(
|
346
|
+
CallTracerAnnotationInterface::AnnotationType::kHttpTransport),
|
347
|
+
type_(type),
|
348
|
+
time_(time),
|
349
|
+
transport_stats_(transport_stats),
|
350
|
+
stream_stats_(stream_stats) {}
|
351
|
+
|
352
|
+
std::string HttpAnnotation::ToString() const {
|
353
|
+
std::string s = "HttpAnnotation type: ";
|
354
|
+
switch (type_) {
|
355
|
+
case Type::kStart:
|
356
|
+
absl::StrAppend(&s, "Start");
|
357
|
+
break;
|
358
|
+
case Type::kHeadWritten:
|
359
|
+
absl::StrAppend(&s, "HeadWritten");
|
360
|
+
break;
|
361
|
+
case Type::kEnd:
|
362
|
+
absl::StrAppend(&s, "End");
|
363
|
+
break;
|
364
|
+
default:
|
365
|
+
absl::StrAppend(&s, "Unknown");
|
366
|
+
}
|
367
|
+
absl::StrAppend(&s, " time: ", gpr_format_timespec(time_));
|
368
|
+
if (transport_stats_.has_value()) {
|
369
|
+
absl::StrAppend(&s, " transport:[", transport_stats_->ToString(), "]");
|
370
|
+
}
|
371
|
+
if (stream_stats_.has_value()) {
|
372
|
+
absl::StrAppend(&s, " stream:[", stream_stats_->ToString(), "]");
|
373
|
+
}
|
374
|
+
return s;
|
375
|
+
}
|
376
|
+
|
244
377
|
} // namespace grpc_core
|
245
378
|
|
246
379
|
//
|
@@ -250,6 +383,8 @@ void TestOnlyGlobalHttp2TransportDisableTransientFailureStateNotification(
|
|
250
383
|
grpc_chttp2_transport::~grpc_chttp2_transport() {
|
251
384
|
size_t i;
|
252
385
|
|
386
|
+
cancel_pings(this, GRPC_ERROR_CREATE("Transport destroyed"));
|
387
|
+
|
253
388
|
event_engine.reset();
|
254
389
|
|
255
390
|
if (channelz_socket != nullptr) {
|
@@ -260,12 +395,12 @@ grpc_chttp2_transport::~grpc_chttp2_transport() {
|
|
260
395
|
|
261
396
|
grpc_slice_buffer_destroy(&qbuf);
|
262
397
|
|
263
|
-
grpc_slice_buffer_destroy(&outbuf);
|
264
|
-
|
265
398
|
grpc_error_handle error = GRPC_ERROR_CREATE("Transport destroyed");
|
266
399
|
// ContextList::Execute follows semantics of a callback function and does not
|
267
400
|
// take a ref on error
|
268
|
-
|
401
|
+
if (cl != nullptr) {
|
402
|
+
grpc_core::ForEachContextListEntryExecute(cl, nullptr, error);
|
403
|
+
}
|
269
404
|
cl = nullptr;
|
270
405
|
|
271
406
|
grpc_slice_buffer_destroy(&read_buffer);
|
@@ -276,14 +411,9 @@ grpc_chttp2_transport::~grpc_chttp2_transport() {
|
|
276
411
|
GPR_ASSERT(lists[i].tail == nullptr);
|
277
412
|
}
|
278
413
|
|
279
|
-
GPR_ASSERT(
|
280
|
-
|
281
|
-
grpc_chttp2_stream_map_destroy(&stream_map);
|
282
|
-
|
414
|
+
GPR_ASSERT(stream_map.empty());
|
283
415
|
GRPC_COMBINER_UNREF(combiner, "chttp2_transport");
|
284
416
|
|
285
|
-
cancel_pings(this, GRPC_ERROR_CREATE("Transport destroyed"));
|
286
|
-
|
287
417
|
while (write_cb_pool) {
|
288
418
|
grpc_chttp2_write_cb* next = write_cb_pool->next;
|
289
419
|
gpr_free(write_cb_pool);
|
@@ -296,8 +426,6 @@ grpc_chttp2_transport::~grpc_chttp2_transport() {
|
|
296
426
|
}
|
297
427
|
}
|
298
428
|
|
299
|
-
static const grpc_transport_vtable* get_vtable(void);
|
300
|
-
|
301
429
|
static void read_channel_args(grpc_chttp2_transport* t,
|
302
430
|
const grpc_core::ChannelArgs& channel_args,
|
303
431
|
bool is_client) {
|
@@ -319,37 +447,46 @@ static void read_channel_args(grpc_chttp2_transport* t,
|
|
319
447
|
t->hpack_compressor.SetMaxUsableSize(max_hpack_table_size);
|
320
448
|
}
|
321
449
|
|
322
|
-
t->ping_policy.max_pings_without_data =
|
323
|
-
std::max(0, channel_args.GetInt(GRPC_ARG_HTTP2_MAX_PINGS_WITHOUT_DATA)
|
324
|
-
.value_or(g_default_max_pings_without_data));
|
325
|
-
t->ping_policy.max_ping_strikes =
|
326
|
-
std::max(0, channel_args.GetInt(GRPC_ARG_HTTP2_MAX_PING_STRIKES)
|
327
|
-
.value_or(g_default_max_ping_strikes));
|
328
|
-
t->ping_policy.min_recv_ping_interval_without_data =
|
329
|
-
std::max(grpc_core::Duration::Zero(),
|
330
|
-
channel_args
|
331
|
-
.GetDurationFromIntMillis(
|
332
|
-
GRPC_ARG_HTTP2_MIN_RECV_PING_INTERVAL_WITHOUT_DATA_MS)
|
333
|
-
.value_or(grpc_core::Duration::Milliseconds(
|
334
|
-
g_default_min_recv_ping_interval_without_data_ms)));
|
335
450
|
t->write_buffer_size =
|
336
451
|
std::max(0, channel_args.GetInt(GRPC_ARG_HTTP2_WRITE_BUFFER_SIZE)
|
337
452
|
.value_or(grpc_core::chttp2::kDefaultWindow));
|
338
453
|
t->keepalive_time =
|
339
454
|
std::max(grpc_core::Duration::Milliseconds(1),
|
340
455
|
channel_args.GetDurationFromIntMillis(GRPC_ARG_KEEPALIVE_TIME_MS)
|
341
|
-
.value_or(
|
342
|
-
|
343
|
-
: g_default_server_keepalive_time_ms)));
|
456
|
+
.value_or(t->is_client ? g_default_client_keepalive_time
|
457
|
+
: g_default_server_keepalive_time));
|
344
458
|
t->keepalive_timeout = std::max(
|
345
459
|
grpc_core::Duration::Zero(),
|
346
460
|
channel_args.GetDurationFromIntMillis(GRPC_ARG_KEEPALIVE_TIMEOUT_MS)
|
347
|
-
.value_or(grpc_core::Duration::
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
461
|
+
.value_or(t->keepalive_time == grpc_core::Duration::Infinity()
|
462
|
+
? grpc_core::Duration::Infinity()
|
463
|
+
: (t->is_client ? g_default_client_keepalive_timeout
|
464
|
+
: g_default_server_keepalive_timeout)));
|
465
|
+
t->ping_timeout = std::max(
|
466
|
+
grpc_core::Duration::Zero(),
|
467
|
+
channel_args.GetDurationFromIntMillis(GRPC_ARG_PING_TIMEOUT_MS)
|
468
|
+
.value_or(t->keepalive_time == grpc_core::Duration::Infinity()
|
469
|
+
? grpc_core::Duration::Infinity()
|
470
|
+
: grpc_core::Duration::Minutes(1)));
|
471
|
+
if (t->is_client) {
|
472
|
+
t->keepalive_permit_without_calls =
|
473
|
+
channel_args.GetBool(GRPC_ARG_KEEPALIVE_PERMIT_WITHOUT_CALLS)
|
474
|
+
.value_or(grpc_core::IsKeepaliveFixEnabled()
|
475
|
+
? g_default_client_keepalive_permit_without_calls
|
476
|
+
: false);
|
477
|
+
} else {
|
478
|
+
t->keepalive_permit_without_calls =
|
479
|
+
channel_args.GetBool(GRPC_ARG_KEEPALIVE_PERMIT_WITHOUT_CALLS)
|
480
|
+
.value_or(grpc_core::IsKeepaliveServerFixEnabled()
|
481
|
+
? g_default_server_keepalive_permit_without_calls
|
482
|
+
: false);
|
483
|
+
}
|
484
|
+
|
485
|
+
t->settings_timeout =
|
486
|
+
channel_args.GetDurationFromIntMillis(GRPC_ARG_SETTINGS_TIMEOUT)
|
487
|
+
.value_or(std::max(t->keepalive_timeout * 2,
|
488
|
+
grpc_core::Duration::Minutes(1)));
|
489
|
+
|
353
490
|
// Only send the prefered rx frame size http2 setting if we are instructed
|
354
491
|
// to auto size the buffers allocated at tcp level and we also can adjust
|
355
492
|
// sending frame size.
|
@@ -358,18 +495,42 @@ static void read_channel_args(grpc_chttp2_transport* t,
|
|
358
495
|
.GetBool(GRPC_ARG_EXPERIMENTAL_HTTP2_PREFERRED_CRYPTO_FRAME_SIZE)
|
359
496
|
.value_or(false);
|
360
497
|
|
498
|
+
const auto max_requests_per_read =
|
499
|
+
channel_args.GetInt("grpc.http2.max_requests_per_read");
|
500
|
+
if (max_requests_per_read.has_value()) {
|
501
|
+
t->max_requests_per_read =
|
502
|
+
grpc_core::Clamp(*max_requests_per_read, 1, 10000);
|
503
|
+
} else {
|
504
|
+
t->max_requests_per_read = 32;
|
505
|
+
}
|
506
|
+
|
361
507
|
if (channel_args.GetBool(GRPC_ARG_ENABLE_CHANNELZ)
|
362
508
|
.value_or(GRPC_ENABLE_CHANNELZ_DEFAULT)) {
|
363
509
|
t->channelz_socket =
|
364
510
|
grpc_core::MakeRefCounted<grpc_core::channelz::SocketNode>(
|
365
511
|
std::string(grpc_endpoint_get_local_address(t->ep)),
|
366
512
|
std::string(t->peer_string.as_string_view()),
|
367
|
-
absl::StrCat(
|
513
|
+
absl::StrCat(t->GetTransportName(), " ",
|
368
514
|
t->peer_string.as_string_view()),
|
369
515
|
channel_args
|
370
516
|
.GetObjectRef<grpc_core::channelz::SocketNode::Security>());
|
371
517
|
}
|
372
518
|
|
519
|
+
t->ack_pings = channel_args.GetBool("grpc.http2.ack_pings").value_or(true);
|
520
|
+
|
521
|
+
t->allow_tarpit =
|
522
|
+
channel_args.GetBool(GRPC_ARG_HTTP_ALLOW_TARPIT).value_or(true);
|
523
|
+
t->min_tarpit_duration_ms =
|
524
|
+
channel_args
|
525
|
+
.GetDurationFromIntMillis(GRPC_ARG_HTTP_TARPIT_MIN_DURATION_MS)
|
526
|
+
.value_or(grpc_core::Duration::Milliseconds(100))
|
527
|
+
.millis();
|
528
|
+
t->max_tarpit_duration_ms =
|
529
|
+
channel_args
|
530
|
+
.GetDurationFromIntMillis(GRPC_ARG_HTTP_TARPIT_MAX_DURATION_MS)
|
531
|
+
.value_or(grpc_core::Duration::Seconds(1))
|
532
|
+
.millis();
|
533
|
+
|
373
534
|
const int soft_limit =
|
374
535
|
channel_args.GetInt(GRPC_ARG_MAX_METADATA_SIZE).value_or(-1);
|
375
536
|
if (soft_limit < 0) {
|
@@ -385,138 +546,77 @@ static void read_channel_args(grpc_chttp2_transport* t,
|
|
385
546
|
t->max_header_list_size_soft_limit = soft_limit;
|
386
547
|
}
|
387
548
|
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
bool availability[2] /* server, client */;
|
395
|
-
} settings_map[] = {{GRPC_ARG_MAX_CONCURRENT_STREAMS,
|
396
|
-
GRPC_CHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS,
|
397
|
-
-1,
|
398
|
-
0,
|
399
|
-
INT32_MAX,
|
400
|
-
{true, false}},
|
401
|
-
{GRPC_ARG_HTTP2_HPACK_TABLE_SIZE_DECODER,
|
402
|
-
GRPC_CHTTP2_SETTINGS_HEADER_TABLE_SIZE,
|
403
|
-
-1,
|
404
|
-
0,
|
405
|
-
INT32_MAX,
|
406
|
-
{true, true}},
|
407
|
-
{GRPC_ARG_ABSOLUTE_MAX_METADATA_SIZE,
|
408
|
-
GRPC_CHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE,
|
409
|
-
-1,
|
410
|
-
0,
|
411
|
-
INT32_MAX,
|
412
|
-
{true, true}},
|
413
|
-
{GRPC_ARG_HTTP2_MAX_FRAME_SIZE,
|
414
|
-
GRPC_CHTTP2_SETTINGS_MAX_FRAME_SIZE,
|
415
|
-
-1,
|
416
|
-
16384,
|
417
|
-
16777215,
|
418
|
-
{true, true}},
|
419
|
-
{GRPC_ARG_HTTP2_ENABLE_TRUE_BINARY,
|
420
|
-
GRPC_CHTTP2_SETTINGS_GRPC_ALLOW_TRUE_BINARY_METADATA,
|
421
|
-
1,
|
422
|
-
0,
|
423
|
-
1,
|
424
|
-
{true, true}},
|
425
|
-
{GRPC_ARG_HTTP2_STREAM_LOOKAHEAD_BYTES,
|
426
|
-
GRPC_CHTTP2_SETTINGS_INITIAL_WINDOW_SIZE,
|
427
|
-
-1,
|
428
|
-
5,
|
429
|
-
INT32_MAX,
|
430
|
-
{true, true}}};
|
431
|
-
|
432
|
-
for (size_t i = 0; i < GPR_ARRAY_SIZE(settings_map); i++) {
|
433
|
-
const auto& setting = settings_map[i];
|
434
|
-
if (setting.availability[is_client]) {
|
435
|
-
const int value = channel_args.GetInt(setting.channel_arg_name)
|
436
|
-
.value_or(setting.default_value);
|
437
|
-
if (value >= 0) {
|
438
|
-
queue_setting_update(t, setting.setting_id,
|
439
|
-
grpc_core::Clamp(value, setting.min, setting.max));
|
440
|
-
} else if (setting.setting_id ==
|
441
|
-
GRPC_CHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE) {
|
442
|
-
// Set value to 1.25 * soft limit if this is larger than
|
443
|
-
// `DEFAULT_MAX_HEADER_LIST_SIZE` and
|
444
|
-
// `GRPC_ARG_ABSOLUTE_MAX_METADATA_SIZE` is not set.
|
445
|
-
const int soft_limit = channel_args.GetInt(GRPC_ARG_MAX_METADATA_SIZE)
|
446
|
-
.value_or(setting.default_value);
|
447
|
-
const int value = (soft_limit < (INT_MAX / 1.25))
|
448
|
-
? static_cast<int>(soft_limit * 1.25)
|
449
|
-
: soft_limit;
|
450
|
-
if (value > DEFAULT_MAX_HEADER_LIST_SIZE) {
|
451
|
-
queue_setting_update(
|
452
|
-
t, setting.setting_id,
|
453
|
-
grpc_core::Clamp(value, setting.min, setting.max));
|
454
|
-
}
|
455
|
-
}
|
456
|
-
} else if (channel_args.Contains(setting.channel_arg_name)) {
|
457
|
-
gpr_log(GPR_DEBUG, "%s is not available on %s",
|
458
|
-
std::string(setting.channel_arg_name).c_str(),
|
459
|
-
is_client ? "clients" : "servers");
|
549
|
+
int value;
|
550
|
+
if (!is_client) {
|
551
|
+
value = channel_args.GetInt(GRPC_ARG_MAX_CONCURRENT_STREAMS).value_or(-1);
|
552
|
+
if (value >= 0) {
|
553
|
+
t->settings.mutable_local().SetMaxConcurrentStreams(value);
|
554
|
+
t->max_concurrent_streams_policy.SetTarget(value);
|
460
555
|
}
|
556
|
+
} else if (channel_args.Contains(GRPC_ARG_MAX_CONCURRENT_STREAMS)) {
|
557
|
+
gpr_log(GPR_DEBUG, "%s is not available on clients",
|
558
|
+
GRPC_ARG_MAX_CONCURRENT_STREAMS);
|
559
|
+
}
|
560
|
+
value =
|
561
|
+
channel_args.GetInt(GRPC_ARG_HTTP2_HPACK_TABLE_SIZE_DECODER).value_or(-1);
|
562
|
+
if (value >= 0) {
|
563
|
+
t->settings.mutable_local().SetHeaderTableSize(value);
|
564
|
+
}
|
565
|
+
value = channel_args.GetInt(GRPC_ARG_ABSOLUTE_MAX_METADATA_SIZE).value_or(-1);
|
566
|
+
if (value >= 0) {
|
567
|
+
t->settings.mutable_local().SetMaxHeaderListSize(value);
|
568
|
+
} else {
|
569
|
+
// Set value to 1.25 * soft limit if this is larger than
|
570
|
+
// `DEFAULT_MAX_HEADER_LIST_SIZE` and
|
571
|
+
// `GRPC_ARG_ABSOLUTE_MAX_METADATA_SIZE` is not set.
|
572
|
+
const int soft_limit =
|
573
|
+
channel_args.GetInt(GRPC_ARG_MAX_METADATA_SIZE).value_or(-1);
|
574
|
+
const int value = (soft_limit >= 0 && soft_limit < (INT_MAX / 1.25))
|
575
|
+
? static_cast<int>(soft_limit * 1.25)
|
576
|
+
: soft_limit;
|
577
|
+
if (value > DEFAULT_MAX_HEADER_LIST_SIZE) {
|
578
|
+
t->settings.mutable_local().SetMaxHeaderListSize(value);
|
579
|
+
}
|
580
|
+
}
|
581
|
+
value = channel_args.GetInt(GRPC_ARG_HTTP2_MAX_FRAME_SIZE).value_or(-1);
|
582
|
+
if (value >= 0) {
|
583
|
+
t->settings.mutable_local().SetMaxFrameSize(value);
|
584
|
+
}
|
585
|
+
value =
|
586
|
+
channel_args.GetInt(GRPC_ARG_HTTP2_STREAM_LOOKAHEAD_BYTES).value_or(-1);
|
587
|
+
if (value >= 0) {
|
588
|
+
t->settings.mutable_local().SetInitialWindowSize(value);
|
589
|
+
}
|
590
|
+
value = channel_args.GetInt(GRPC_ARG_HTTP2_ENABLE_TRUE_BINARY).value_or(-1);
|
591
|
+
if (value >= 0) {
|
592
|
+
t->settings.mutable_local().SetAllowTrueBinaryMetadata(value != 0);
|
461
593
|
}
|
462
594
|
|
463
595
|
if (t->enable_preferred_rx_crypto_frame_advertisement) {
|
464
|
-
|
465
|
-
&grpc_chttp2_settings_parameters
|
466
|
-
[GRPC_CHTTP2_SETTINGS_GRPC_PREFERRED_RECEIVE_CRYPTO_FRAME_SIZE];
|
467
|
-
queue_setting_update(
|
468
|
-
t, GRPC_CHTTP2_SETTINGS_GRPC_PREFERRED_RECEIVE_CRYPTO_FRAME_SIZE,
|
469
|
-
grpc_core::Clamp(INT_MAX, static_cast<int>(sp->min_value),
|
470
|
-
static_cast<int>(sp->max_value)));
|
596
|
+
t->settings.mutable_local().SetPreferredReceiveCryptoMessageSize(INT_MAX);
|
471
597
|
}
|
472
|
-
}
|
473
598
|
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
: grpc_core::Duration::Milliseconds(
|
479
|
-
g_default_client_keepalive_time_ms);
|
480
|
-
t->keepalive_timeout = g_default_client_keepalive_timeout_ms == INT_MAX
|
481
|
-
? grpc_core::Duration::Infinity()
|
482
|
-
: grpc_core::Duration::Milliseconds(
|
483
|
-
g_default_client_keepalive_timeout_ms);
|
484
|
-
t->keepalive_permit_without_calls =
|
485
|
-
g_default_client_keepalive_permit_without_calls;
|
486
|
-
} else {
|
487
|
-
t->keepalive_time = g_default_server_keepalive_time_ms == INT_MAX
|
488
|
-
? grpc_core::Duration::Infinity()
|
489
|
-
: grpc_core::Duration::Milliseconds(
|
490
|
-
g_default_server_keepalive_time_ms);
|
491
|
-
t->keepalive_timeout = g_default_server_keepalive_timeout_ms == INT_MAX
|
492
|
-
? grpc_core::Duration::Infinity()
|
493
|
-
: grpc_core::Duration::Milliseconds(
|
494
|
-
g_default_server_keepalive_timeout_ms);
|
495
|
-
t->keepalive_permit_without_calls =
|
496
|
-
g_default_server_keepalive_permit_without_calls;
|
497
|
-
}
|
498
|
-
}
|
599
|
+
t->ping_on_rst_stream_percent = grpc_core::Clamp(
|
600
|
+
channel_args.GetInt(GRPC_ARG_HTTP2_PING_ON_RST_STREAM_PERCENT)
|
601
|
+
.value_or(1),
|
602
|
+
0, 100);
|
499
603
|
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
t->ping_policy.min_recv_ping_interval_without_data =
|
504
|
-
grpc_core::Duration::Milliseconds(
|
505
|
-
g_default_min_recv_ping_interval_without_data_ms);
|
604
|
+
t->max_concurrent_streams_overload_protection =
|
605
|
+
channel_args.GetBool(GRPC_ARG_MAX_CONCURRENT_STREAMS_OVERLOAD_PROTECTION)
|
606
|
+
.value_or(true);
|
506
607
|
}
|
507
608
|
|
508
609
|
static void init_keepalive_pings_if_enabled_locked(
|
509
|
-
|
610
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t,
|
611
|
+
GRPC_UNUSED grpc_error_handle error) {
|
510
612
|
GPR_DEBUG_ASSERT(error.ok());
|
511
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(arg);
|
512
613
|
if (t->keepalive_time != grpc_core::Duration::Infinity()) {
|
513
614
|
t->keepalive_state = GRPC_CHTTP2_KEEPALIVE_STATE_WAITING;
|
514
|
-
GRPC_CHTTP2_REF_TRANSPORT(t, "init keepalive ping");
|
515
615
|
t->keepalive_ping_timer_handle =
|
516
|
-
t->event_engine->RunAfter(t->keepalive_time, [t] {
|
616
|
+
t->event_engine->RunAfter(t->keepalive_time, [t = t->Ref()]() mutable {
|
517
617
|
grpc_core::ApplicationCallbackExecCtx callback_exec_ctx;
|
518
618
|
grpc_core::ExecCtx exec_ctx;
|
519
|
-
init_keepalive_ping(t);
|
619
|
+
init_keepalive_ping(std::move(t));
|
520
620
|
});
|
521
621
|
} else {
|
522
622
|
// Use GRPC_CHTTP2_KEEPALIVE_STATE_DISABLED to indicate there are no
|
@@ -528,84 +628,66 @@ static void init_keepalive_pings_if_enabled_locked(
|
|
528
628
|
grpc_chttp2_transport::grpc_chttp2_transport(
|
529
629
|
const grpc_core::ChannelArgs& channel_args, grpc_endpoint* ep,
|
530
630
|
bool is_client)
|
531
|
-
:
|
532
|
-
|
533
|
-
|
631
|
+
: grpc_core::RefCounted<grpc_chttp2_transport,
|
632
|
+
grpc_core::NonPolymorphicRefCount>(
|
633
|
+
GRPC_TRACE_FLAG_ENABLED(grpc_trace_chttp2_refcount)
|
634
|
+
? "chttp2_refcount"
|
635
|
+
: nullptr),
|
534
636
|
ep(ep),
|
535
637
|
peer_string(
|
536
638
|
grpc_core::Slice::FromCopiedString(grpc_endpoint_get_peer(ep))),
|
537
639
|
memory_owner(channel_args.GetObject<grpc_core::ResourceQuota>()
|
538
640
|
->memory_quota()
|
539
|
-
->CreateMemoryOwner(
|
540
|
-
grpc_endpoint_get_peer(ep), ":client_transport"))),
|
641
|
+
->CreateMemoryOwner()),
|
541
642
|
self_reservation(
|
542
643
|
memory_owner.MakeReservation(sizeof(grpc_chttp2_transport))),
|
543
|
-
|
644
|
+
event_engine(
|
645
|
+
channel_args
|
646
|
+
.GetObjectRef<grpc_event_engine::experimental::EventEngine>()),
|
647
|
+
combiner(grpc_combiner_create(event_engine)),
|
544
648
|
state_tracker(is_client ? "client_transport" : "server_transport",
|
545
649
|
GRPC_CHANNEL_READY),
|
546
|
-
is_client(is_client),
|
547
650
|
next_stream_id(is_client ? 1 : 2),
|
651
|
+
ping_abuse_policy(channel_args),
|
652
|
+
ping_rate_policy(channel_args, is_client),
|
548
653
|
flow_control(
|
549
654
|
peer_string.as_string_view(),
|
550
655
|
channel_args.GetBool(GRPC_ARG_HTTP2_BDP_PROBE).value_or(true),
|
551
656
|
&memory_owner),
|
552
657
|
deframe_state(is_client ? GRPC_DTS_FH_0 : GRPC_DTS_CLIENT_PREFIX_0),
|
553
|
-
|
554
|
-
|
555
|
-
.GetObjectRef<grpc_event_engine::experimental::EventEngine>()) {
|
658
|
+
is_client(is_client) {
|
659
|
+
cl = new grpc_core::ContextList();
|
556
660
|
GPR_ASSERT(strlen(GRPC_CHTTP2_CLIENT_CONNECT_STRING) ==
|
557
661
|
GRPC_CHTTP2_CLIENT_CONNECT_STRLEN);
|
558
|
-
base.vtable = get_vtable();
|
559
|
-
// 8 is a random stab in the dark as to a good initial size: it's small enough
|
560
|
-
// that it shouldn't waste memory for infrequently used connections, yet
|
561
|
-
// large enough that the exponential growth should happen nicely when it's
|
562
|
-
// needed.
|
563
|
-
// TODO(ctiller): tune this
|
564
|
-
grpc_chttp2_stream_map_init(&stream_map, 8);
|
565
662
|
|
566
663
|
grpc_slice_buffer_init(&read_buffer);
|
567
|
-
grpc_slice_buffer_init(&outbuf);
|
568
664
|
if (is_client) {
|
569
|
-
grpc_slice_buffer_add(
|
570
|
-
|
665
|
+
grpc_slice_buffer_add(
|
666
|
+
outbuf.c_slice_buffer(),
|
667
|
+
grpc_slice_from_copied_string(GRPC_CHTTP2_CLIENT_CONNECT_STRING));
|
571
668
|
}
|
572
669
|
grpc_slice_buffer_init(&qbuf);
|
573
|
-
// copy in initial settings to all setting sets
|
574
|
-
size_t i;
|
575
|
-
int j;
|
576
|
-
for (i = 0; i < GRPC_CHTTP2_NUM_SETTINGS; i++) {
|
577
|
-
for (j = 0; j < GRPC_NUM_SETTING_SETS; j++) {
|
578
|
-
settings[j][i] = grpc_chttp2_settings_parameters[i].default_value;
|
579
|
-
}
|
580
|
-
}
|
581
670
|
grpc_chttp2_goaway_parser_init(&goaway_parser);
|
582
671
|
|
583
672
|
// configure http2 the way we like it
|
584
673
|
if (is_client) {
|
585
|
-
|
586
|
-
|
674
|
+
settings.mutable_local().SetEnablePush(false);
|
675
|
+
settings.mutable_local().SetMaxConcurrentStreams(0);
|
587
676
|
}
|
588
|
-
|
589
|
-
|
590
|
-
queue_setting_update(this,
|
591
|
-
GRPC_CHTTP2_SETTINGS_GRPC_ALLOW_TRUE_BINARY_METADATA, 1);
|
592
|
-
|
593
|
-
configure_transport_ping_policy(this);
|
594
|
-
init_transport_keepalive_settings(this);
|
677
|
+
settings.mutable_local().SetMaxHeaderListSize(DEFAULT_MAX_HEADER_LIST_SIZE);
|
678
|
+
settings.mutable_local().SetAllowTrueBinaryMetadata(true);
|
595
679
|
|
596
680
|
read_channel_args(this, channel_args, is_client);
|
597
681
|
|
598
|
-
//
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
ping_recv_state.last_ping_recv_time = grpc_core::Timestamp::InfPast();
|
603
|
-
ping_recv_state.ping_strikes = 0;
|
682
|
+
// Initially allow *UP TO* MAX_CONCURRENT_STREAMS incoming before we start
|
683
|
+
// blanket cancelling them.
|
684
|
+
num_incoming_streams_before_settings_ack =
|
685
|
+
settings.local().max_concurrent_streams();
|
604
686
|
|
605
687
|
grpc_core::ExecCtx exec_ctx;
|
606
688
|
combiner->Run(
|
607
|
-
|
608
|
-
|
689
|
+
grpc_core::InitTransportClosure<init_keepalive_pings_if_enabled_locked>(
|
690
|
+
Ref(), &init_keepalive_ping_locked),
|
609
691
|
absl::OkStatus());
|
610
692
|
|
611
693
|
if (flow_control.bdp_probe()) {
|
@@ -630,21 +712,20 @@ grpc_chttp2_transport::grpc_chttp2_transport(
|
|
630
712
|
}
|
631
713
|
|
632
714
|
static void destroy_transport_locked(void* tp, grpc_error_handle /*error*/) {
|
633
|
-
grpc_chttp2_transport
|
715
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t(
|
716
|
+
static_cast<grpc_chttp2_transport*>(tp));
|
634
717
|
t->destroying = 1;
|
635
718
|
close_transport_locked(
|
636
|
-
t
|
637
|
-
|
638
|
-
|
719
|
+
t.get(),
|
720
|
+
grpc_error_set_int(GRPC_ERROR_CREATE("Transport destroyed"),
|
721
|
+
grpc_core::StatusIntProperty::kOccurredDuringWrite,
|
722
|
+
t->write_state));
|
639
723
|
t->memory_owner.Reset();
|
640
|
-
// Must be the last line.
|
641
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "destroy");
|
642
724
|
}
|
643
725
|
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
absl::OkStatus());
|
726
|
+
void grpc_chttp2_transport::Orphan() {
|
727
|
+
combiner->Run(GRPC_CLOSURE_CREATE(destroy_transport_locked, this, nullptr),
|
728
|
+
absl::OkStatus());
|
648
729
|
}
|
649
730
|
|
650
731
|
static void close_transport_locked(grpc_chttp2_transport* t,
|
@@ -670,39 +751,33 @@ static void close_transport_locked(grpc_chttp2_transport* t,
|
|
670
751
|
t->closed_with_error = error;
|
671
752
|
connectivity_state_set(t, GRPC_CHANNEL_SHUTDOWN, absl::Status(),
|
672
753
|
"close_transport");
|
673
|
-
if (t->
|
674
|
-
|
675
|
-
|
676
|
-
t->ping_state.delayed_ping_timer_handle.reset();
|
677
|
-
}
|
754
|
+
if (t->keepalive_ping_timeout_handle != TaskHandle::kInvalid) {
|
755
|
+
t->event_engine->Cancel(std::exchange(t->keepalive_ping_timeout_handle,
|
756
|
+
TaskHandle::kInvalid));
|
678
757
|
}
|
679
|
-
if (t->
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
758
|
+
if (t->settings_ack_watchdog != TaskHandle::kInvalid) {
|
759
|
+
t->event_engine->Cancel(
|
760
|
+
std::exchange(t->settings_ack_watchdog, TaskHandle::kInvalid));
|
761
|
+
}
|
762
|
+
if (t->delayed_ping_timer_handle != TaskHandle::kInvalid &&
|
763
|
+
t->event_engine->Cancel(t->delayed_ping_timer_handle)) {
|
764
|
+
t->delayed_ping_timer_handle = TaskHandle::kInvalid;
|
765
|
+
}
|
766
|
+
if (t->next_bdp_ping_timer_handle != TaskHandle::kInvalid &&
|
767
|
+
t->event_engine->Cancel(t->next_bdp_ping_timer_handle)) {
|
768
|
+
t->next_bdp_ping_timer_handle = TaskHandle::kInvalid;
|
684
769
|
}
|
685
770
|
switch (t->keepalive_state) {
|
686
771
|
case GRPC_CHTTP2_KEEPALIVE_STATE_WAITING:
|
687
|
-
if (t->keepalive_ping_timer_handle
|
688
|
-
|
689
|
-
|
690
|
-
t->keepalive_ping_timer_handle.reset();
|
691
|
-
}
|
772
|
+
if (t->keepalive_ping_timer_handle != TaskHandle::kInvalid &&
|
773
|
+
t->event_engine->Cancel(t->keepalive_ping_timer_handle)) {
|
774
|
+
t->keepalive_ping_timer_handle = TaskHandle::kInvalid;
|
692
775
|
}
|
693
776
|
break;
|
694
777
|
case GRPC_CHTTP2_KEEPALIVE_STATE_PINGING:
|
695
|
-
if (t->keepalive_ping_timer_handle
|
696
|
-
|
697
|
-
|
698
|
-
t->keepalive_ping_timer_handle.reset();
|
699
|
-
}
|
700
|
-
}
|
701
|
-
if (t->keepalive_watchdog_timer_handle.has_value()) {
|
702
|
-
if (t->event_engine->Cancel(*t->keepalive_watchdog_timer_handle)) {
|
703
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "keepalive watchdog");
|
704
|
-
t->keepalive_watchdog_timer_handle.reset();
|
705
|
-
}
|
778
|
+
if (t->keepalive_ping_timer_handle != TaskHandle::kInvalid &&
|
779
|
+
t->event_engine->Cancel(t->keepalive_ping_timer_handle)) {
|
780
|
+
t->keepalive_ping_timer_handle = TaskHandle::kInvalid;
|
706
781
|
}
|
707
782
|
break;
|
708
783
|
case GRPC_CHTTP2_KEEPALIVE_STATE_DYING:
|
@@ -746,24 +821,27 @@ void grpc_chttp2_stream_unref(grpc_chttp2_stream* s) {
|
|
746
821
|
}
|
747
822
|
#endif
|
748
823
|
|
749
|
-
grpc_chttp2_stream::Reffer::Reffer(grpc_chttp2_stream* s) {
|
750
|
-
// We reserve one 'active stream' that's dropped when the stream is
|
751
|
-
// read-closed. The others are for Chttp2IncomingByteStreams that are
|
752
|
-
// actively reading
|
753
|
-
GRPC_CHTTP2_STREAM_REF(s, "chttp2");
|
754
|
-
GRPC_CHTTP2_REF_TRANSPORT(s->t, "stream");
|
755
|
-
}
|
756
|
-
|
757
824
|
grpc_chttp2_stream::grpc_chttp2_stream(grpc_chttp2_transport* t,
|
758
825
|
grpc_stream_refcount* refcount,
|
759
826
|
const void* server_data,
|
760
827
|
grpc_core::Arena* arena)
|
761
|
-
: t(t),
|
762
|
-
refcount(refcount)
|
763
|
-
|
828
|
+
: t(t->Ref()),
|
829
|
+
refcount([refcount]() {
|
830
|
+
// We reserve one 'active stream' that's dropped when the stream is
|
831
|
+
// read-closed. The others are for Chttp2IncomingByteStreams that are
|
832
|
+
// actively reading
|
833
|
+
// We do this here to avoid cache misses.
|
834
|
+
#ifndef NDEBUG
|
835
|
+
grpc_stream_ref(refcount, "chttp2");
|
836
|
+
#else
|
837
|
+
grpc_stream_ref(refcount);
|
838
|
+
#endif
|
839
|
+
return refcount;
|
840
|
+
}()),
|
764
841
|
initial_metadata_buffer(arena),
|
765
842
|
trailing_metadata_buffer(arena),
|
766
843
|
flow_control(&t->flow_control) {
|
844
|
+
t->streams_allocated.fetch_add(1, std::memory_order_relaxed);
|
767
845
|
if (server_data) {
|
768
846
|
id = static_cast<uint32_t>(reinterpret_cast<uintptr_t>(server_data));
|
769
847
|
if (grpc_http_trace.enabled()) {
|
@@ -771,7 +849,7 @@ grpc_chttp2_stream::grpc_chttp2_stream(grpc_chttp2_transport* t,
|
|
771
849
|
this, id, server_data);
|
772
850
|
}
|
773
851
|
*t->accepting_stream = this;
|
774
|
-
|
852
|
+
t->stream_map.emplace(id, this);
|
775
853
|
post_destructive_reclaimer(t);
|
776
854
|
}
|
777
855
|
|
@@ -780,8 +858,9 @@ grpc_chttp2_stream::grpc_chttp2_stream(grpc_chttp2_transport* t,
|
|
780
858
|
}
|
781
859
|
|
782
860
|
grpc_chttp2_stream::~grpc_chttp2_stream() {
|
783
|
-
|
784
|
-
|
861
|
+
t->streams_allocated.fetch_sub(1, std::memory_order_relaxed);
|
862
|
+
grpc_chttp2_list_remove_stalled_by_stream(t.get(), this);
|
863
|
+
grpc_chttp2_list_remove_stalled_by_transport(t.get(), this);
|
785
864
|
|
786
865
|
if (t->channelz_socket != nullptr) {
|
787
866
|
if ((t->is_client && eos_received) || (!t->is_client && eos_sent)) {
|
@@ -793,7 +872,7 @@ grpc_chttp2_stream::~grpc_chttp2_stream() {
|
|
793
872
|
|
794
873
|
GPR_ASSERT((write_closed && read_closed) || id == 0);
|
795
874
|
if (id != 0) {
|
796
|
-
GPR_ASSERT(
|
875
|
+
GPR_ASSERT(t->stream_map.count(id) == 0);
|
797
876
|
}
|
798
877
|
|
799
878
|
grpc_slice_buffer_destroy(&frame_storage);
|
@@ -812,16 +891,14 @@ grpc_chttp2_stream::~grpc_chttp2_stream() {
|
|
812
891
|
GPR_ASSERT(recv_message_ready == nullptr);
|
813
892
|
GPR_ASSERT(recv_trailing_metadata_finished == nullptr);
|
814
893
|
grpc_slice_buffer_destroy(&flow_controlled_buffer);
|
815
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "stream");
|
816
894
|
grpc_core::ExecCtx::Run(DEBUG_LOCATION, destroy_stream_arg, absl::OkStatus());
|
817
895
|
}
|
818
896
|
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
new (gs) grpc_chttp2_stream(
|
824
|
-
return 0;
|
897
|
+
void grpc_chttp2_transport::InitStream(grpc_stream* gs,
|
898
|
+
grpc_stream_refcount* refcount,
|
899
|
+
const void* server_data,
|
900
|
+
grpc_core::Arena* arena) {
|
901
|
+
new (gs) grpc_chttp2_stream(this, refcount, server_data, arena);
|
825
902
|
}
|
826
903
|
|
827
904
|
static void destroy_stream_locked(void* sp, grpc_error_handle /*error*/) {
|
@@ -829,13 +906,12 @@ static void destroy_stream_locked(void* sp, grpc_error_handle /*error*/) {
|
|
829
906
|
s->~grpc_chttp2_stream();
|
830
907
|
}
|
831
908
|
|
832
|
-
|
833
|
-
|
834
|
-
grpc_chttp2_transport* t = reinterpret_cast<grpc_chttp2_transport*>(gt);
|
909
|
+
void grpc_chttp2_transport::DestroyStream(grpc_stream* gs,
|
910
|
+
grpc_closure* then_schedule_closure) {
|
835
911
|
grpc_chttp2_stream* s = reinterpret_cast<grpc_chttp2_stream*>(gs);
|
836
912
|
|
837
913
|
s->destroy_stream_arg = then_schedule_closure;
|
838
|
-
|
914
|
+
combiner->Run(
|
839
915
|
GRPC_CLOSURE_INIT(&s->destroy_stream, destroy_stream_locked, s, nullptr),
|
840
916
|
absl::OkStatus());
|
841
917
|
}
|
@@ -848,7 +924,7 @@ grpc_chttp2_stream* grpc_chttp2_parsing_accept_stream(grpc_chttp2_transport* t,
|
|
848
924
|
grpc_chttp2_stream* accepting = nullptr;
|
849
925
|
GPR_ASSERT(t->accepting_stream == nullptr);
|
850
926
|
t->accepting_stream = &accepting;
|
851
|
-
t->accept_stream_cb(t->accept_stream_cb_user_data,
|
927
|
+
t->accept_stream_cb(t->accept_stream_cb_user_data, t,
|
852
928
|
reinterpret_cast<void*>(id));
|
853
929
|
t->accepting_stream = nullptr;
|
854
930
|
return accepting;
|
@@ -900,7 +976,6 @@ void grpc_chttp2_initiate_write(grpc_chttp2_transport* t,
|
|
900
976
|
case GRPC_CHTTP2_WRITE_STATE_IDLE:
|
901
977
|
set_write_state(t, GRPC_CHTTP2_WRITE_STATE_WRITING,
|
902
978
|
grpc_chttp2_initiate_write_reason_string(reason));
|
903
|
-
GRPC_CHTTP2_REF_TRANSPORT(t, "writing");
|
904
979
|
// Note that the 'write_action_begin_locked' closure is being scheduled
|
905
980
|
// on the 'finally_scheduler' of t->combiner. This means that
|
906
981
|
// 'write_action_begin_locked' is called only *after* all the other
|
@@ -918,8 +993,8 @@ void grpc_chttp2_initiate_write(grpc_chttp2_transport* t,
|
|
918
993
|
// It does not call the endpoint to write the bytes. That is done by the
|
919
994
|
// 'write_action' (which is scheduled by 'write_action_begin_locked')
|
920
995
|
t->combiner->FinallyRun(
|
921
|
-
|
922
|
-
|
996
|
+
grpc_core::InitTransportClosure<write_action_begin_locked>(
|
997
|
+
t->Ref(), &t->write_action_begin_locked),
|
923
998
|
absl::OkStatus());
|
924
999
|
break;
|
925
1000
|
case GRPC_CHTTP2_WRITE_STATE_WRITING:
|
@@ -946,22 +1021,22 @@ static const char* begin_writing_desc(bool partial) {
|
|
946
1021
|
}
|
947
1022
|
}
|
948
1023
|
|
949
|
-
static void write_action_begin_locked(
|
950
|
-
|
951
|
-
|
1024
|
+
static void write_action_begin_locked(
|
1025
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t,
|
1026
|
+
grpc_error_handle /*error_ignored*/) {
|
952
1027
|
GPR_ASSERT(t->write_state != GRPC_CHTTP2_WRITE_STATE_IDLE);
|
953
1028
|
grpc_chttp2_begin_write_result r;
|
954
1029
|
if (!t->closed_with_error.ok()) {
|
955
1030
|
r.writing = false;
|
956
1031
|
} else {
|
957
|
-
r = grpc_chttp2_begin_write(t);
|
1032
|
+
r = grpc_chttp2_begin_write(t.get());
|
958
1033
|
}
|
959
1034
|
if (r.writing) {
|
960
|
-
set_write_state(t,
|
1035
|
+
set_write_state(t.get(),
|
961
1036
|
r.partial ? GRPC_CHTTP2_WRITE_STATE_WRITING_WITH_MORE
|
962
1037
|
: GRPC_CHTTP2_WRITE_STATE_WRITING,
|
963
1038
|
begin_writing_desc(r.partial));
|
964
|
-
write_action(t
|
1039
|
+
write_action(t.get());
|
965
1040
|
if (t->reading_paused_on_pending_induced_frames) {
|
966
1041
|
GPR_ASSERT(t->num_pending_induced_frames == 0);
|
967
1042
|
// We had paused reading, because we had many induced frames (SETTINGS
|
@@ -971,61 +1046,79 @@ static void write_action_begin_locked(void* gt,
|
|
971
1046
|
GPR_INFO,
|
972
1047
|
"transport %p : Resuming reading after being paused due to too "
|
973
1048
|
"many unwritten SETTINGS ACK, PINGS ACK and RST_STREAM frames",
|
974
|
-
t));
|
1049
|
+
t.get()));
|
975
1050
|
t->reading_paused_on_pending_induced_frames = false;
|
976
|
-
continue_read_action_locked(t);
|
1051
|
+
continue_read_action_locked(std::move(t));
|
977
1052
|
}
|
978
1053
|
} else {
|
979
|
-
set_write_state(t, GRPC_CHTTP2_WRITE_STATE_IDLE,
|
980
|
-
|
1054
|
+
set_write_state(t.get(), GRPC_CHTTP2_WRITE_STATE_IDLE,
|
1055
|
+
"begin writing nothing");
|
981
1056
|
}
|
982
1057
|
}
|
983
1058
|
|
984
|
-
static void write_action(
|
985
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(gt);
|
1059
|
+
static void write_action(grpc_chttp2_transport* t) {
|
986
1060
|
void* cl = t->cl;
|
987
|
-
t->cl
|
1061
|
+
if (!t->cl->empty()) {
|
1062
|
+
// Transfer the ownership of the context list to the endpoint and create and
|
1063
|
+
// associate a new context list with the transport.
|
1064
|
+
// The old context list is stored in the cl local variable which is passed
|
1065
|
+
// to the endpoint. Its upto the endpoint to manage its lifetime.
|
1066
|
+
t->cl = new grpc_core::ContextList();
|
1067
|
+
} else {
|
1068
|
+
// t->cl is Empty. There is nothing to trace in this endpoint_write. set cl
|
1069
|
+
// to nullptr.
|
1070
|
+
cl = nullptr;
|
1071
|
+
}
|
988
1072
|
// Choose max_frame_size as the prefered rx crypto frame size indicated by the
|
989
1073
|
// peer.
|
990
1074
|
int max_frame_size =
|
991
|
-
t->settings
|
992
|
-
[GRPC_PEER_SETTINGS]
|
993
|
-
[GRPC_CHTTP2_SETTINGS_GRPC_PREFERRED_RECEIVE_CRYPTO_FRAME_SIZE];
|
1075
|
+
t->settings.peer().preferred_receive_crypto_message_size();
|
994
1076
|
// Note: max frame size is 0 if the remote peer does not support adjusting the
|
995
1077
|
// sending frame size.
|
996
1078
|
if (max_frame_size == 0) {
|
997
1079
|
max_frame_size = INT_MAX;
|
998
1080
|
}
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1081
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_ping_trace)) {
|
1082
|
+
gpr_log(GPR_INFO, "%s[%p]: Write %" PRIdPTR " bytes",
|
1083
|
+
t->is_client ? "CLIENT" : "SERVER", t, t->outbuf.Length());
|
1084
|
+
}
|
1085
|
+
t->write_size_policy.BeginWrite(t->outbuf.Length());
|
1086
|
+
grpc_endpoint_write(t->ep, t->outbuf.c_slice_buffer(),
|
1087
|
+
grpc_core::InitTransportClosure<write_action_end>(
|
1088
|
+
t->Ref(), &t->write_action_end_locked),
|
1089
|
+
cl, max_frame_size);
|
1004
1090
|
}
|
1005
1091
|
|
1006
|
-
static void write_action_end(
|
1007
|
-
|
1008
|
-
t
|
1009
|
-
|
1010
|
-
|
1092
|
+
static void write_action_end(grpc_core::RefCountedPtr<grpc_chttp2_transport> t,
|
1093
|
+
grpc_error_handle error) {
|
1094
|
+
auto* tp = t.get();
|
1095
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_ping_trace)) {
|
1096
|
+
gpr_log(GPR_INFO, "%s[%p]: Finish write",
|
1097
|
+
t->is_client ? "CLIENT" : "SERVER", t.get());
|
1098
|
+
}
|
1099
|
+
tp->combiner->Run(grpc_core::InitTransportClosure<write_action_end_locked>(
|
1100
|
+
std::move(t), &tp->write_action_end_locked),
|
1101
|
+
error);
|
1011
1102
|
}
|
1012
1103
|
|
1013
1104
|
// Callback from the grpc_endpoint after bytes have been written by calling
|
1014
1105
|
// sendmsg
|
1015
|
-
static void write_action_end_locked(
|
1016
|
-
|
1106
|
+
static void write_action_end_locked(
|
1107
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t,
|
1108
|
+
grpc_error_handle error) {
|
1109
|
+
t->write_size_policy.EndWrite(error.ok());
|
1017
1110
|
|
1018
1111
|
bool closed = false;
|
1019
1112
|
if (!error.ok()) {
|
1020
|
-
close_transport_locked(t, error);
|
1113
|
+
close_transport_locked(t.get(), error);
|
1021
1114
|
closed = true;
|
1022
1115
|
}
|
1023
1116
|
|
1024
1117
|
if (t->sent_goaway_state == GRPC_CHTTP2_FINAL_GOAWAY_SEND_SCHEDULED) {
|
1025
1118
|
t->sent_goaway_state = GRPC_CHTTP2_FINAL_GOAWAY_SENT;
|
1026
1119
|
closed = true;
|
1027
|
-
if (
|
1028
|
-
close_transport_locked(t, GRPC_ERROR_CREATE("goaway sent"));
|
1120
|
+
if (t->stream_map.empty()) {
|
1121
|
+
close_transport_locked(t.get(), GRPC_ERROR_CREATE("goaway sent"));
|
1029
1122
|
}
|
1030
1123
|
}
|
1031
1124
|
|
@@ -1033,11 +1126,11 @@ static void write_action_end_locked(void* tp, grpc_error_handle error) {
|
|
1033
1126
|
case GRPC_CHTTP2_WRITE_STATE_IDLE:
|
1034
1127
|
GPR_UNREACHABLE_CODE(break);
|
1035
1128
|
case GRPC_CHTTP2_WRITE_STATE_WRITING:
|
1036
|
-
set_write_state(t, GRPC_CHTTP2_WRITE_STATE_IDLE, "finish writing");
|
1129
|
+
set_write_state(t.get(), GRPC_CHTTP2_WRITE_STATE_IDLE, "finish writing");
|
1037
1130
|
break;
|
1038
1131
|
case GRPC_CHTTP2_WRITE_STATE_WRITING_WITH_MORE:
|
1039
|
-
set_write_state(t, GRPC_CHTTP2_WRITE_STATE_WRITING,
|
1040
|
-
|
1132
|
+
set_write_state(t.get(), GRPC_CHTTP2_WRITE_STATE_WRITING,
|
1133
|
+
"continue writing");
|
1041
1134
|
// If the transport is closed, we will retry writing on the endpoint
|
1042
1135
|
// and next write may contain part of the currently serialized frames.
|
1043
1136
|
// So, we should only call the run_after_write callbacks when the next
|
@@ -1047,42 +1140,24 @@ static void write_action_end_locked(void* tp, grpc_error_handle error) {
|
|
1047
1140
|
grpc_core::ExecCtx::RunList(DEBUG_LOCATION, &t->run_after_write);
|
1048
1141
|
}
|
1049
1142
|
t->combiner->FinallyRun(
|
1050
|
-
|
1051
|
-
|
1143
|
+
grpc_core::InitTransportClosure<write_action_begin_locked>(
|
1144
|
+
t, &t->write_action_begin_locked),
|
1052
1145
|
absl::OkStatus());
|
1053
1146
|
break;
|
1054
1147
|
}
|
1055
1148
|
|
1056
|
-
grpc_chttp2_end_write(t, error);
|
1057
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "writing");
|
1058
|
-
}
|
1059
|
-
|
1060
|
-
// Dirties an HTTP2 setting to be sent out next time a writing path occurs.
|
1061
|
-
// If the change needs to occur immediately, manually initiate a write.
|
1062
|
-
static void queue_setting_update(grpc_chttp2_transport* t,
|
1063
|
-
grpc_chttp2_setting_id id, uint32_t value) {
|
1064
|
-
const grpc_chttp2_setting_parameters* sp =
|
1065
|
-
&grpc_chttp2_settings_parameters[id];
|
1066
|
-
uint32_t use_value = grpc_core::Clamp(value, sp->min_value, sp->max_value);
|
1067
|
-
if (use_value != value) {
|
1068
|
-
gpr_log(GPR_INFO, "Requested parameter %s clamped from %d to %d", sp->name,
|
1069
|
-
value, use_value);
|
1070
|
-
}
|
1071
|
-
if (use_value != t->settings[GRPC_LOCAL_SETTINGS][id]) {
|
1072
|
-
t->settings[GRPC_LOCAL_SETTINGS][id] = use_value;
|
1073
|
-
t->dirtied_local_settings = true;
|
1074
|
-
}
|
1149
|
+
grpc_chttp2_end_write(t.get(), error);
|
1075
1150
|
}
|
1076
1151
|
|
1077
1152
|
// Cancel out streams that haven't yet started if we have received a GOAWAY
|
1078
1153
|
static void cancel_unstarted_streams(grpc_chttp2_transport* t,
|
1079
|
-
grpc_error_handle error) {
|
1154
|
+
grpc_error_handle error, bool tarpit) {
|
1080
1155
|
grpc_chttp2_stream* s;
|
1081
1156
|
while (grpc_chttp2_list_pop_waiting_for_concurrency(t, &s)) {
|
1082
1157
|
s->trailing_metadata_buffer.Set(
|
1083
1158
|
grpc_core::GrpcStreamNetworkState(),
|
1084
1159
|
grpc_core::GrpcStreamNetworkState::kNotSentOnWire);
|
1085
|
-
grpc_chttp2_cancel_stream(t, s, error);
|
1160
|
+
grpc_chttp2_cancel_stream(t, s, error, tarpit);
|
1086
1161
|
}
|
1087
1162
|
}
|
1088
1163
|
|
@@ -1115,21 +1190,20 @@ void grpc_chttp2_add_incoming_goaway(grpc_chttp2_transport* t,
|
|
1115
1190
|
grpc_core::StatusToString(t->goaway_error).c_str());
|
1116
1191
|
}
|
1117
1192
|
if (t->is_client) {
|
1118
|
-
cancel_unstarted_streams(t, t->goaway_error);
|
1193
|
+
cancel_unstarted_streams(t, t->goaway_error, false);
|
1119
1194
|
// Cancel all unseen streams
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
&last_stream_id);
|
1195
|
+
std::vector<grpc_chttp2_stream*> to_cancel;
|
1196
|
+
for (auto id_stream : t->stream_map) {
|
1197
|
+
if (id_stream.first > last_stream_id) {
|
1198
|
+
to_cancel.push_back(id_stream.second);
|
1199
|
+
}
|
1200
|
+
}
|
1201
|
+
for (auto s : to_cancel) {
|
1202
|
+
s->trailing_metadata_buffer.Set(
|
1203
|
+
grpc_core::GrpcStreamNetworkState(),
|
1204
|
+
grpc_core::GrpcStreamNetworkState::kNotSeenByServer);
|
1205
|
+
grpc_chttp2_cancel_stream(s->t.get(), s, s->t->goaway_error, false);
|
1206
|
+
}
|
1133
1207
|
}
|
1134
1208
|
absl::Status status = grpc_error_to_absl_status(t->goaway_error);
|
1135
1209
|
// When a client receives a GOAWAY with error code ENHANCE_YOUR_CALM and debug
|
@@ -1167,15 +1241,13 @@ static void maybe_start_some_streams(grpc_chttp2_transport* t) {
|
|
1167
1241
|
// maybe cancel out streams that haven't yet started if we have received a
|
1168
1242
|
// GOAWAY
|
1169
1243
|
if (!t->goaway_error.ok()) {
|
1170
|
-
cancel_unstarted_streams(t, t->goaway_error);
|
1244
|
+
cancel_unstarted_streams(t, t->goaway_error, false);
|
1171
1245
|
return;
|
1172
1246
|
}
|
1173
1247
|
// start streams where we have free grpc_chttp2_stream ids and free
|
1174
1248
|
// * concurrency
|
1175
1249
|
while (t->next_stream_id <= MAX_CLIENT_STREAM_ID &&
|
1176
|
-
|
1177
|
-
t->settings[GRPC_PEER_SETTINGS]
|
1178
|
-
[GRPC_CHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS] &&
|
1250
|
+
t->stream_map.size() < t->settings.peer().max_concurrent_streams() &&
|
1179
1251
|
grpc_chttp2_list_pop_waiting_for_concurrency(t, &s)) {
|
1180
1252
|
// safe since we can't (legally) be parsing this stream yet
|
1181
1253
|
GRPC_CHTTP2_IF_TRACING(gpr_log(
|
@@ -1194,7 +1266,7 @@ static void maybe_start_some_streams(grpc_chttp2_transport* t) {
|
|
1194
1266
|
"no_more_stream_ids");
|
1195
1267
|
}
|
1196
1268
|
|
1197
|
-
|
1269
|
+
t->stream_map.emplace(s->id, s);
|
1198
1270
|
post_destructive_reclaimer(t);
|
1199
1271
|
grpc_chttp2_mark_stream_writable(t, s);
|
1200
1272
|
grpc_chttp2_initiate_write(t, GRPC_CHTTP2_INITIATE_WRITE_START_NEW_STREAM);
|
@@ -1209,7 +1281,8 @@ static void maybe_start_some_streams(grpc_chttp2_transport* t) {
|
|
1209
1281
|
t, s,
|
1210
1282
|
grpc_error_set_int(GRPC_ERROR_CREATE("Stream IDs exhausted"),
|
1211
1283
|
grpc_core::StatusIntProperty::kRpcStatus,
|
1212
|
-
GRPC_STATUS_UNAVAILABLE)
|
1284
|
+
GRPC_STATUS_UNAVAILABLE),
|
1285
|
+
false);
|
1213
1286
|
}
|
1214
1287
|
}
|
1215
1288
|
}
|
@@ -1257,9 +1330,8 @@ void grpc_chttp2_complete_closure_step(grpc_chttp2_transport* t,
|
|
1257
1330
|
write_state_name(t->write_state), whence.file(), whence.line());
|
1258
1331
|
}
|
1259
1332
|
|
1260
|
-
|
1261
|
-
|
1262
|
-
tracer->RecordAnnotation(
|
1333
|
+
if (s->call_tracer) {
|
1334
|
+
s->call_tracer->RecordAnnotation(
|
1263
1335
|
absl::StrFormat("on_complete: s=%p %p desc=%s err=%s", s, closure, desc,
|
1264
1336
|
grpc_core::StatusToString(error).c_str()));
|
1265
1337
|
}
|
@@ -1317,10 +1389,12 @@ static void perform_stream_op_locked(void* stream_op,
|
|
1317
1389
|
grpc_chttp2_stream* s =
|
1318
1390
|
static_cast<grpc_chttp2_stream*>(op->handler_private.extra_arg);
|
1319
1391
|
grpc_transport_stream_op_batch_payload* op_payload = op->payload;
|
1320
|
-
grpc_chttp2_transport* t = s->t;
|
1392
|
+
grpc_chttp2_transport* t = s->t.get();
|
1321
1393
|
|
1322
1394
|
s->context = op->payload->context;
|
1323
1395
|
s->traced = op->is_traced;
|
1396
|
+
s->call_tracer = CallTracerIfSampled(s);
|
1397
|
+
s->tcp_tracer = TcpTracerIfSampled(s);
|
1324
1398
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_http_trace)) {
|
1325
1399
|
gpr_log(GPR_INFO,
|
1326
1400
|
"perform_stream_op_locked[s=%p; op=%p]: %s; on_complete = %p", s,
|
@@ -1336,9 +1410,8 @@ static void perform_stream_op_locked(void* stream_op,
|
|
1336
1410
|
}
|
1337
1411
|
}
|
1338
1412
|
|
1339
|
-
|
1340
|
-
|
1341
|
-
tracer->RecordAnnotation(absl::StrFormat(
|
1413
|
+
if (s->call_tracer) {
|
1414
|
+
s->call_tracer->RecordAnnotation(absl::StrFormat(
|
1342
1415
|
"perform_stream_op_locked[s=%p; op=%p]: %s; on_complete = %p", s, op,
|
1343
1416
|
grpc_transport_stream_op_batch_string(op, true).c_str(),
|
1344
1417
|
op->on_complete));
|
@@ -1354,10 +1427,16 @@ static void perform_stream_op_locked(void* stream_op,
|
|
1354
1427
|
}
|
1355
1428
|
|
1356
1429
|
if (op->cancel_stream) {
|
1357
|
-
grpc_chttp2_cancel_stream(t, s, op_payload->cancel_stream.cancel_error
|
1430
|
+
grpc_chttp2_cancel_stream(t, s, op_payload->cancel_stream.cancel_error,
|
1431
|
+
op_payload->cancel_stream.tarpit);
|
1358
1432
|
}
|
1359
1433
|
|
1360
1434
|
if (op->send_initial_metadata) {
|
1435
|
+
if (s->call_tracer) {
|
1436
|
+
s->call_tracer->RecordAnnotation(grpc_core::HttpAnnotation(
|
1437
|
+
grpc_core::HttpAnnotation::Type::kStart, gpr_now(GPR_CLOCK_REALTIME),
|
1438
|
+
s->t->flow_control.stats(), s->flow_control.stats()));
|
1439
|
+
}
|
1361
1440
|
if (t->is_client && t->channelz_socket != nullptr) {
|
1362
1441
|
t->channelz_socket->RecordStreamStartedFromLocal();
|
1363
1442
|
}
|
@@ -1392,7 +1471,8 @@ static void perform_stream_op_locked(void* stream_op,
|
|
1392
1471
|
GRPC_ERROR_CREATE_REFERENCING("Transport closed",
|
1393
1472
|
&t->closed_with_error, 1),
|
1394
1473
|
grpc_core::StatusIntProperty::kRpcStatus,
|
1395
|
-
GRPC_STATUS_UNAVAILABLE)
|
1474
|
+
GRPC_STATUS_UNAVAILABLE),
|
1475
|
+
false);
|
1396
1476
|
}
|
1397
1477
|
} else {
|
1398
1478
|
GPR_ASSERT(s->id != 0);
|
@@ -1439,6 +1519,11 @@ static void perform_stream_op_locked(void* stream_op,
|
|
1439
1519
|
frame_hdr[3] = static_cast<uint8_t>(len >> 8);
|
1440
1520
|
frame_hdr[4] = static_cast<uint8_t>(len);
|
1441
1521
|
|
1522
|
+
if (grpc_core::IsHttp2StatsFixEnabled()) {
|
1523
|
+
s->stats.outgoing.framing_bytes += GRPC_HEADER_SIZE_IN_BYTES;
|
1524
|
+
s->stats.outgoing.data_bytes +=
|
1525
|
+
op_payload->send_message.send_message->Length();
|
1526
|
+
}
|
1442
1527
|
s->next_message_end_offset =
|
1443
1528
|
s->flow_controlled_bytes_written +
|
1444
1529
|
static_cast<int64_t>(s->flow_controlled_buffer.length) +
|
@@ -1565,12 +1650,11 @@ static void perform_stream_op_locked(void* stream_op,
|
|
1565
1650
|
GRPC_CHTTP2_STREAM_UNREF(s, "perform_stream_op");
|
1566
1651
|
}
|
1567
1652
|
|
1568
|
-
|
1569
|
-
|
1570
|
-
grpc_chttp2_transport* t = reinterpret_cast<grpc_chttp2_transport*>(gt);
|
1653
|
+
void grpc_chttp2_transport::PerformStreamOp(
|
1654
|
+
grpc_stream* gs, grpc_transport_stream_op_batch* op) {
|
1571
1655
|
grpc_chttp2_stream* s = reinterpret_cast<grpc_chttp2_stream*>(gs);
|
1572
1656
|
|
1573
|
-
if (!
|
1657
|
+
if (!is_client) {
|
1574
1658
|
if (op->send_initial_metadata) {
|
1575
1659
|
GPR_ASSERT(!op->payload->send_initial_metadata.send_initial_metadata
|
1576
1660
|
->get(grpc_core::GrpcTimeoutMetadata())
|
@@ -1590,22 +1674,48 @@ static void perform_stream_op(grpc_transport* gt, grpc_stream* gs,
|
|
1590
1674
|
|
1591
1675
|
GRPC_CHTTP2_STREAM_REF(s, "perform_stream_op");
|
1592
1676
|
op->handler_private.extra_arg = gs;
|
1593
|
-
|
1594
|
-
|
1595
|
-
|
1677
|
+
combiner->Run(GRPC_CLOSURE_INIT(&op->handler_private.closure,
|
1678
|
+
perform_stream_op_locked, op, nullptr),
|
1679
|
+
absl::OkStatus());
|
1596
1680
|
}
|
1597
1681
|
|
1598
1682
|
static void cancel_pings(grpc_chttp2_transport* t, grpc_error_handle error) {
|
1683
|
+
GRPC_CHTTP2_IF_TRACING(gpr_log(GPR_INFO, "%p CANCEL PINGS: %s", t,
|
1684
|
+
grpc_core::StatusToString(error).c_str()));
|
1599
1685
|
// callback remaining pings: they're not allowed to call into the transport,
|
1600
1686
|
// and maybe they hold resources that need to be freed
|
1601
|
-
|
1602
|
-
GPR_ASSERT(!error.ok());
|
1603
|
-
for (size_t j = 0; j < GRPC_CHTTP2_PCL_COUNT; j++) {
|
1604
|
-
grpc_closure_list_fail_all(&pq->lists[j], error);
|
1605
|
-
grpc_core::ExecCtx::RunList(DEBUG_LOCATION, &pq->lists[j]);
|
1606
|
-
}
|
1687
|
+
t->ping_callbacks.CancelAll(t->event_engine.get());
|
1607
1688
|
}
|
1608
1689
|
|
1690
|
+
namespace {
|
1691
|
+
class PingClosureWrapper {
|
1692
|
+
public:
|
1693
|
+
explicit PingClosureWrapper(grpc_closure* closure) : closure_(closure) {}
|
1694
|
+
PingClosureWrapper(const PingClosureWrapper&) = delete;
|
1695
|
+
PingClosureWrapper& operator=(const PingClosureWrapper&) = delete;
|
1696
|
+
PingClosureWrapper(PingClosureWrapper&& other) noexcept
|
1697
|
+
: closure_(other.Take()) {}
|
1698
|
+
PingClosureWrapper& operator=(PingClosureWrapper&& other) noexcept {
|
1699
|
+
std::swap(closure_, other.closure_);
|
1700
|
+
return *this;
|
1701
|
+
}
|
1702
|
+
~PingClosureWrapper() {
|
1703
|
+
if (closure_ != nullptr) {
|
1704
|
+
grpc_core::ExecCtx::Run(DEBUG_LOCATION, closure_, absl::CancelledError());
|
1705
|
+
}
|
1706
|
+
}
|
1707
|
+
|
1708
|
+
void operator()() {
|
1709
|
+
grpc_core::ExecCtx::Run(DEBUG_LOCATION, Take(), absl::OkStatus());
|
1710
|
+
}
|
1711
|
+
|
1712
|
+
private:
|
1713
|
+
grpc_closure* Take() { return std::exchange(closure_, nullptr); }
|
1714
|
+
|
1715
|
+
grpc_closure* closure_ = nullptr;
|
1716
|
+
};
|
1717
|
+
} // namespace
|
1718
|
+
|
1609
1719
|
static void send_ping_locked(grpc_chttp2_transport* t,
|
1610
1720
|
grpc_closure* on_initiate, grpc_closure* on_ack) {
|
1611
1721
|
if (!t->closed_with_error.ok()) {
|
@@ -1613,88 +1723,125 @@ static void send_ping_locked(grpc_chttp2_transport* t,
|
|
1613
1723
|
grpc_core::ExecCtx::Run(DEBUG_LOCATION, on_ack, t->closed_with_error);
|
1614
1724
|
return;
|
1615
1725
|
}
|
1616
|
-
|
1617
|
-
|
1618
|
-
absl::OkStatus());
|
1619
|
-
grpc_closure_list_append(&pq->lists[GRPC_CHTTP2_PCL_NEXT], on_ack,
|
1620
|
-
absl::OkStatus());
|
1726
|
+
t->ping_callbacks.OnPing(PingClosureWrapper(on_initiate),
|
1727
|
+
PingClosureWrapper(on_ack));
|
1621
1728
|
}
|
1622
1729
|
|
1623
1730
|
// Specialized form of send_ping_locked for keepalive ping. If there is already
|
1624
1731
|
// a ping in progress, the keepalive ping would piggyback onto that ping,
|
1625
1732
|
// instead of waiting for that ping to complete and then starting a new ping.
|
1626
|
-
static void send_keepalive_ping_locked(
|
1733
|
+
static void send_keepalive_ping_locked(
|
1734
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t) {
|
1627
1735
|
if (!t->closed_with_error.ok()) {
|
1628
|
-
t->combiner->Run(GRPC_CLOSURE_INIT(&t->start_keepalive_ping_locked,
|
1629
|
-
start_keepalive_ping_locked, t, nullptr),
|
1630
|
-
t->closed_with_error);
|
1631
1736
|
t->combiner->Run(
|
1632
|
-
|
1633
|
-
|
1737
|
+
grpc_core::InitTransportClosure<finish_keepalive_ping_locked>(
|
1738
|
+
t->Ref(), &t->finish_keepalive_ping_locked),
|
1634
1739
|
t->closed_with_error);
|
1635
1740
|
return;
|
1636
1741
|
}
|
1637
|
-
|
1638
|
-
|
1639
|
-
|
1640
|
-
t->combiner->Run(GRPC_CLOSURE_INIT(&t->start_keepalive_ping_locked,
|
1641
|
-
start_keepalive_ping_locked, t, nullptr),
|
1642
|
-
t->closed_with_error);
|
1643
|
-
grpc_closure_list_append(
|
1644
|
-
&pq->lists[GRPC_CHTTP2_PCL_INFLIGHT],
|
1645
|
-
GRPC_CLOSURE_INIT(&t->finish_keepalive_ping_locked,
|
1646
|
-
finish_keepalive_ping, t, grpc_schedule_on_exec_ctx),
|
1647
|
-
absl::OkStatus());
|
1648
|
-
return;
|
1649
|
-
}
|
1650
|
-
grpc_closure_list_append(
|
1651
|
-
&pq->lists[GRPC_CHTTP2_PCL_INITIATE],
|
1652
|
-
GRPC_CLOSURE_INIT(&t->start_keepalive_ping_locked, start_keepalive_ping,
|
1653
|
-
t, grpc_schedule_on_exec_ctx),
|
1654
|
-
absl::OkStatus());
|
1655
|
-
grpc_closure_list_append(
|
1656
|
-
&pq->lists[GRPC_CHTTP2_PCL_NEXT],
|
1657
|
-
GRPC_CLOSURE_INIT(&t->finish_keepalive_ping_locked, finish_keepalive_ping,
|
1658
|
-
t, grpc_schedule_on_exec_ctx),
|
1659
|
-
absl::OkStatus());
|
1742
|
+
t->ping_callbacks.OnPingAck(
|
1743
|
+
PingClosureWrapper(grpc_core::InitTransportClosure<finish_keepalive_ping>(
|
1744
|
+
t->Ref(), &t->finish_keepalive_ping_locked)));
|
1660
1745
|
}
|
1661
1746
|
|
1662
|
-
void grpc_chttp2_retry_initiate_ping(
|
1663
|
-
|
1664
|
-
|
1665
|
-
|
1747
|
+
void grpc_chttp2_retry_initiate_ping(
|
1748
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t) {
|
1749
|
+
auto tp = t.get();
|
1750
|
+
tp->combiner->Run(grpc_core::InitTransportClosure<retry_initiate_ping_locked>(
|
1751
|
+
std::move(t), &tp->retry_initiate_ping_locked),
|
1752
|
+
absl::OkStatus());
|
1666
1753
|
}
|
1667
1754
|
|
1668
|
-
static void retry_initiate_ping_locked(
|
1669
|
-
|
1755
|
+
static void retry_initiate_ping_locked(
|
1756
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t,
|
1757
|
+
GRPC_UNUSED grpc_error_handle error) {
|
1670
1758
|
GPR_DEBUG_ASSERT(error.ok());
|
1671
|
-
|
1672
|
-
|
1673
|
-
t
|
1674
|
-
|
1675
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "retry_initiate_ping_locked");
|
1759
|
+
GPR_ASSERT(t->delayed_ping_timer_handle != TaskHandle::kInvalid);
|
1760
|
+
t->delayed_ping_timer_handle = TaskHandle::kInvalid;
|
1761
|
+
grpc_chttp2_initiate_write(t.get(),
|
1762
|
+
GRPC_CHTTP2_INITIATE_WRITE_RETRY_SEND_PING);
|
1676
1763
|
}
|
1677
1764
|
|
1678
1765
|
void grpc_chttp2_ack_ping(grpc_chttp2_transport* t, uint64_t id) {
|
1679
|
-
|
1680
|
-
if (pq->inflight_id != id) {
|
1766
|
+
if (!t->ping_callbacks.AckPing(id, t->event_engine.get())) {
|
1681
1767
|
gpr_log(GPR_DEBUG, "Unknown ping response from %s: %" PRIx64,
|
1682
1768
|
std::string(t->peer_string.as_string_view()).c_str(), id);
|
1683
1769
|
return;
|
1684
1770
|
}
|
1685
|
-
|
1686
|
-
&pq->lists[GRPC_CHTTP2_PCL_INFLIGHT]);
|
1687
|
-
if (!grpc_closure_list_empty(pq->lists[GRPC_CHTTP2_PCL_NEXT])) {
|
1771
|
+
if (t->ping_callbacks.ping_requested()) {
|
1688
1772
|
grpc_chttp2_initiate_write(t, GRPC_CHTTP2_INITIATE_WRITE_CONTINUE_PINGS);
|
1689
1773
|
}
|
1690
1774
|
}
|
1691
1775
|
|
1776
|
+
void grpc_chttp2_keepalive_timeout(
|
1777
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t) {
|
1778
|
+
t->combiner->Run(
|
1779
|
+
grpc_core::NewClosure([t](grpc_error_handle) {
|
1780
|
+
gpr_log(GPR_INFO, "%s: Keepalive timeout. Closing transport.",
|
1781
|
+
std::string(t->peer_string.as_string_view()).c_str());
|
1782
|
+
send_goaway(
|
1783
|
+
t.get(),
|
1784
|
+
grpc_error_set_int(GRPC_ERROR_CREATE("keepalive_timeout"),
|
1785
|
+
grpc_core::StatusIntProperty::kHttp2Error,
|
1786
|
+
GRPC_HTTP2_ENHANCE_YOUR_CALM),
|
1787
|
+
/*immediate_disconnect_hint=*/true);
|
1788
|
+
close_transport_locked(
|
1789
|
+
t.get(),
|
1790
|
+
grpc_error_set_int(GRPC_ERROR_CREATE("keepalive timeout"),
|
1791
|
+
grpc_core::StatusIntProperty::kRpcStatus,
|
1792
|
+
GRPC_STATUS_UNAVAILABLE));
|
1793
|
+
}),
|
1794
|
+
absl::OkStatus());
|
1795
|
+
}
|
1796
|
+
|
1797
|
+
void grpc_chttp2_ping_timeout(
|
1798
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t) {
|
1799
|
+
t->combiner->Run(
|
1800
|
+
grpc_core::NewClosure([t](grpc_error_handle) {
|
1801
|
+
gpr_log(GPR_INFO, "%s: Ping timeout. Closing transport.",
|
1802
|
+
std::string(t->peer_string.as_string_view()).c_str());
|
1803
|
+
send_goaway(
|
1804
|
+
t.get(),
|
1805
|
+
grpc_error_set_int(GRPC_ERROR_CREATE("ping_timeout"),
|
1806
|
+
grpc_core::StatusIntProperty::kHttp2Error,
|
1807
|
+
GRPC_HTTP2_ENHANCE_YOUR_CALM),
|
1808
|
+
/*immediate_disconnect_hint=*/true);
|
1809
|
+
close_transport_locked(
|
1810
|
+
t.get(),
|
1811
|
+
grpc_error_set_int(GRPC_ERROR_CREATE("ping timeout"),
|
1812
|
+
grpc_core::StatusIntProperty::kRpcStatus,
|
1813
|
+
GRPC_STATUS_UNAVAILABLE));
|
1814
|
+
}),
|
1815
|
+
absl::OkStatus());
|
1816
|
+
}
|
1817
|
+
|
1818
|
+
void grpc_chttp2_settings_timeout(
|
1819
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t) {
|
1820
|
+
t->combiner->Run(
|
1821
|
+
grpc_core::NewClosure([t](grpc_error_handle) {
|
1822
|
+
gpr_log(GPR_INFO, "%s: Settings timeout. Closing transport.",
|
1823
|
+
std::string(t->peer_string.as_string_view()).c_str());
|
1824
|
+
send_goaway(
|
1825
|
+
t.get(),
|
1826
|
+
grpc_error_set_int(GRPC_ERROR_CREATE("settings_timeout"),
|
1827
|
+
grpc_core::StatusIntProperty::kHttp2Error,
|
1828
|
+
GRPC_HTTP2_SETTINGS_TIMEOUT),
|
1829
|
+
/*immediate_disconnect_hint=*/true);
|
1830
|
+
close_transport_locked(
|
1831
|
+
t.get(),
|
1832
|
+
grpc_error_set_int(GRPC_ERROR_CREATE("settings timeout"),
|
1833
|
+
grpc_core::StatusIntProperty::kRpcStatus,
|
1834
|
+
GRPC_STATUS_UNAVAILABLE));
|
1835
|
+
}),
|
1836
|
+
absl::OkStatus());
|
1837
|
+
}
|
1838
|
+
|
1692
1839
|
namespace {
|
1693
1840
|
|
1694
1841
|
// Fire and forget (deletes itself on completion). Does a graceful shutdown by
|
1695
1842
|
// sending a GOAWAY frame with the last stream id set to 2^31-1, sending a ping
|
1696
1843
|
// and waiting for an ack (effective waiting for an RTT) and then sending a
|
1697
|
-
// final GOAWAY
|
1844
|
+
// final GOAWAY frame with an updated last stream identifier. This helps ensure
|
1698
1845
|
// that a connection can be cleanly shut down without losing requests.
|
1699
1846
|
// In the event, that the client does not respond to the ping for some reason,
|
1700
1847
|
// we add a 20 second deadline, after which we send the second goaway.
|
@@ -1702,22 +1849,19 @@ class GracefulGoaway : public grpc_core::RefCounted<GracefulGoaway> {
|
|
1702
1849
|
public:
|
1703
1850
|
static void Start(grpc_chttp2_transport* t) { new GracefulGoaway(t); }
|
1704
1851
|
|
1705
|
-
~GracefulGoaway() override {
|
1706
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t_, "graceful goaway");
|
1707
|
-
}
|
1708
|
-
|
1709
1852
|
private:
|
1710
|
-
|
1853
|
+
using TaskHandle = ::grpc_event_engine::experimental::EventEngine::TaskHandle;
|
1854
|
+
|
1855
|
+
explicit GracefulGoaway(grpc_chttp2_transport* t) : t_(t->Ref()) {
|
1711
1856
|
t->sent_goaway_state = GRPC_CHTTP2_GRACEFUL_GOAWAY;
|
1712
|
-
GRPC_CHTTP2_REF_TRANSPORT(t_, "graceful goaway");
|
1713
1857
|
grpc_chttp2_goaway_append((1u << 31) - 1, 0, grpc_empty_slice(), &t->qbuf);
|
1858
|
+
t->keepalive_timeout =
|
1859
|
+
std::min(t->keepalive_timeout, grpc_core::Duration::Seconds(20));
|
1860
|
+
t->ping_timeout =
|
1861
|
+
std::min(t->ping_timeout, grpc_core::Duration::Seconds(20));
|
1714
1862
|
send_ping_locked(
|
1715
1863
|
t, nullptr, GRPC_CLOSURE_INIT(&on_ping_ack_, OnPingAck, this, nullptr));
|
1716
1864
|
grpc_chttp2_initiate_write(t, GRPC_CHTTP2_INITIATE_WRITE_GOAWAY_SENT);
|
1717
|
-
Ref().release(); // Ref for the timer
|
1718
|
-
grpc_timer_init(
|
1719
|
-
&timer_, grpc_core::Timestamp::Now() + grpc_core::Duration::Seconds(20),
|
1720
|
-
GRPC_CLOSURE_INIT(&on_timer_, OnTimer, this, nullptr));
|
1721
1865
|
}
|
1722
1866
|
|
1723
1867
|
void MaybeSendFinalGoawayLocked() {
|
@@ -1730,7 +1874,7 @@ class GracefulGoaway : public grpc_core::RefCounted<GracefulGoaway> {
|
|
1730
1874
|
gpr_log(GPR_INFO,
|
1731
1875
|
"transport:%p %s peer:%s Transport already shutting down. "
|
1732
1876
|
"Graceful GOAWAY abandoned.",
|
1733
|
-
t_, t_->is_client ? "CLIENT" : "SERVER",
|
1877
|
+
t_.get(), t_->is_client ? "CLIENT" : "SERVER",
|
1734
1878
|
std::string(t_->peer_string.as_string_view()).c_str()));
|
1735
1879
|
return;
|
1736
1880
|
}
|
@@ -1739,13 +1883,14 @@ class GracefulGoaway : public grpc_core::RefCounted<GracefulGoaway> {
|
|
1739
1883
|
gpr_log(GPR_INFO,
|
1740
1884
|
"transport:%p %s peer:%s Graceful shutdown: Ping received. "
|
1741
1885
|
"Sending final GOAWAY with stream_id:%d",
|
1742
|
-
t_, t_->is_client ? "CLIENT" : "SERVER",
|
1886
|
+
t_.get(), t_->is_client ? "CLIENT" : "SERVER",
|
1743
1887
|
std::string(t_->peer_string.as_string_view()).c_str(),
|
1744
1888
|
t_->last_new_stream_id));
|
1745
1889
|
t_->sent_goaway_state = GRPC_CHTTP2_FINAL_GOAWAY_SEND_SCHEDULED;
|
1746
1890
|
grpc_chttp2_goaway_append(t_->last_new_stream_id, 0, grpc_empty_slice(),
|
1747
1891
|
&t_->qbuf);
|
1748
|
-
grpc_chttp2_initiate_write(t_,
|
1892
|
+
grpc_chttp2_initiate_write(t_.get(),
|
1893
|
+
GRPC_CHTTP2_INITIATE_WRITE_GOAWAY_SENT);
|
1749
1894
|
}
|
1750
1895
|
|
1751
1896
|
static void OnPingAck(void* arg, grpc_error_handle /* error */) {
|
@@ -1757,32 +1902,12 @@ class GracefulGoaway : public grpc_core::RefCounted<GracefulGoaway> {
|
|
1757
1902
|
|
1758
1903
|
static void OnPingAckLocked(void* arg, grpc_error_handle /* error */) {
|
1759
1904
|
auto* self = static_cast<GracefulGoaway*>(arg);
|
1760
|
-
grpc_timer_cancel(&self->timer_);
|
1761
1905
|
self->MaybeSendFinalGoawayLocked();
|
1762
1906
|
self->Unref();
|
1763
1907
|
}
|
1764
1908
|
|
1765
|
-
|
1766
|
-
auto* self = static_cast<GracefulGoaway*>(arg);
|
1767
|
-
if (!error.ok()) {
|
1768
|
-
self->Unref();
|
1769
|
-
return;
|
1770
|
-
}
|
1771
|
-
self->t_->combiner->Run(
|
1772
|
-
GRPC_CLOSURE_INIT(&self->on_timer_, OnTimerLocked, self, nullptr),
|
1773
|
-
absl::OkStatus());
|
1774
|
-
}
|
1775
|
-
|
1776
|
-
static void OnTimerLocked(void* arg, grpc_error_handle /* error */) {
|
1777
|
-
auto* self = static_cast<GracefulGoaway*>(arg);
|
1778
|
-
self->MaybeSendFinalGoawayLocked();
|
1779
|
-
self->Unref();
|
1780
|
-
}
|
1781
|
-
|
1782
|
-
grpc_chttp2_transport* t_;
|
1909
|
+
const grpc_core::RefCountedPtr<grpc_chttp2_transport> t_;
|
1783
1910
|
grpc_closure on_ping_ack_;
|
1784
|
-
grpc_timer timer_;
|
1785
|
-
grpc_closure on_timer_;
|
1786
1911
|
};
|
1787
1912
|
|
1788
1913
|
} // namespace
|
@@ -1804,8 +1929,9 @@ static void send_goaway(grpc_chttp2_transport* t, grpc_error_handle error,
|
|
1804
1929
|
} else if (t->sent_goaway_state == GRPC_CHTTP2_NO_GOAWAY_SEND ||
|
1805
1930
|
t->sent_goaway_state == GRPC_CHTTP2_GRACEFUL_GOAWAY) {
|
1806
1931
|
// We want to log this irrespective of whether http tracing is enabled
|
1807
|
-
gpr_log(GPR_DEBUG, "%s: Sending goaway err=%s",
|
1932
|
+
gpr_log(GPR_DEBUG, "%s %s: Sending goaway last_new_stream_id=%d err=%s",
|
1808
1933
|
std::string(t->peer_string.as_string_view()).c_str(),
|
1934
|
+
t->is_client ? "CLIENT" : "SERVER", t->last_new_stream_id,
|
1809
1935
|
grpc_core::StatusToString(error).c_str());
|
1810
1936
|
t->sent_goaway_state = GRPC_CHTTP2_FINAL_GOAWAY_SEND_SCHEDULED;
|
1811
1937
|
grpc_chttp2_goaway_append(
|
@@ -1817,44 +1943,40 @@ static void send_goaway(grpc_chttp2_transport* t, grpc_error_handle error,
|
|
1817
1943
|
grpc_chttp2_initiate_write(t, GRPC_CHTTP2_INITIATE_WRITE_GOAWAY_SENT);
|
1818
1944
|
}
|
1819
1945
|
|
1820
|
-
void
|
1821
|
-
|
1822
|
-
|
1823
|
-
|
1824
|
-
|
1825
|
-
|
1826
|
-
|
1827
|
-
|
1828
|
-
|
1829
|
-
|
1830
|
-
|
1831
|
-
grpc_core::StatusIntProperty::kRpcStatus,
|
1832
|
-
GRPC_STATUS_UNAVAILABLE));
|
1833
|
-
}
|
1946
|
+
void grpc_chttp2_exceeded_ping_strikes(grpc_chttp2_transport* t) {
|
1947
|
+
send_goaway(t,
|
1948
|
+
grpc_error_set_int(GRPC_ERROR_CREATE("too_many_pings"),
|
1949
|
+
grpc_core::StatusIntProperty::kHttp2Error,
|
1950
|
+
GRPC_HTTP2_ENHANCE_YOUR_CALM),
|
1951
|
+
/*immediate_disconnect_hint=*/true);
|
1952
|
+
// The transport will be closed after the write is done
|
1953
|
+
close_transport_locked(
|
1954
|
+
t, grpc_error_set_int(GRPC_ERROR_CREATE("Too many pings"),
|
1955
|
+
grpc_core::StatusIntProperty::kRpcStatus,
|
1956
|
+
GRPC_STATUS_UNAVAILABLE));
|
1834
1957
|
}
|
1835
1958
|
|
1836
1959
|
void grpc_chttp2_reset_ping_clock(grpc_chttp2_transport* t) {
|
1837
1960
|
if (!t->is_client) {
|
1838
|
-
t->
|
1839
|
-
t->ping_recv_state.ping_strikes = 0;
|
1961
|
+
t->ping_abuse_policy.ResetPingStrikes();
|
1840
1962
|
}
|
1841
|
-
t->
|
1842
|
-
t->ping_policy.max_pings_without_data;
|
1963
|
+
t->ping_rate_policy.ResetPingsBeforeDataRequired();
|
1843
1964
|
}
|
1844
1965
|
|
1845
1966
|
static void perform_transport_op_locked(void* stream_op,
|
1846
1967
|
grpc_error_handle /*error_ignored*/) {
|
1847
1968
|
grpc_transport_op* op = static_cast<grpc_transport_op*>(stream_op);
|
1848
|
-
grpc_chttp2_transport
|
1849
|
-
static_cast<grpc_chttp2_transport*>(op->handler_private.extra_arg);
|
1969
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t(
|
1970
|
+
static_cast<grpc_chttp2_transport*>(op->handler_private.extra_arg));
|
1850
1971
|
|
1851
1972
|
if (!op->goaway_error.ok()) {
|
1852
|
-
send_goaway(t, op->goaway_error, /*immediate_disconnect_hint=*/false);
|
1973
|
+
send_goaway(t.get(), op->goaway_error, /*immediate_disconnect_hint=*/false);
|
1853
1974
|
}
|
1854
1975
|
|
1855
1976
|
if (op->set_accept_stream) {
|
1856
1977
|
t->accept_stream_cb = op->set_accept_stream_fn;
|
1857
1978
|
t->accept_stream_cb_user_data = op->set_accept_stream_user_data;
|
1979
|
+
t->registered_method_matcher_cb = op->set_registered_method_matcher_fn;
|
1858
1980
|
}
|
1859
1981
|
|
1860
1982
|
if (op->bind_pollset) {
|
@@ -1866,8 +1988,9 @@ static void perform_transport_op_locked(void* stream_op,
|
|
1866
1988
|
}
|
1867
1989
|
|
1868
1990
|
if (op->send_ping.on_initiate != nullptr || op->send_ping.on_ack != nullptr) {
|
1869
|
-
send_ping_locked(t, op->send_ping.on_initiate, op->send_ping.on_ack);
|
1870
|
-
grpc_chttp2_initiate_write(t,
|
1991
|
+
send_ping_locked(t.get(), op->send_ping.on_initiate, op->send_ping.on_ack);
|
1992
|
+
grpc_chttp2_initiate_write(t.get(),
|
1993
|
+
GRPC_CHTTP2_INITIATE_WRITE_APPLICATION_PING);
|
1871
1994
|
}
|
1872
1995
|
|
1873
1996
|
if (op->start_connectivity_watch != nullptr) {
|
@@ -1879,27 +2002,24 @@ static void perform_transport_op_locked(void* stream_op,
|
|
1879
2002
|
}
|
1880
2003
|
|
1881
2004
|
if (!op->disconnect_with_error.ok()) {
|
1882
|
-
send_goaway(t, op->disconnect_with_error,
|
2005
|
+
send_goaway(t.get(), op->disconnect_with_error,
|
1883
2006
|
/*immediate_disconnect_hint=*/true);
|
1884
|
-
close_transport_locked(t, op->disconnect_with_error);
|
2007
|
+
close_transport_locked(t.get(), op->disconnect_with_error);
|
1885
2008
|
}
|
1886
2009
|
|
1887
2010
|
grpc_core::ExecCtx::Run(DEBUG_LOCATION, op->on_consumed, absl::OkStatus());
|
1888
|
-
|
1889
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "transport_op");
|
1890
2011
|
}
|
1891
2012
|
|
1892
|
-
|
1893
|
-
grpc_chttp2_transport* t = reinterpret_cast<grpc_chttp2_transport*>(gt);
|
2013
|
+
void grpc_chttp2_transport::PerformOp(grpc_transport_op* op) {
|
1894
2014
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_http_trace)) {
|
1895
|
-
gpr_log(GPR_INFO, "perform_transport_op[t=%p]: %s",
|
2015
|
+
gpr_log(GPR_INFO, "perform_transport_op[t=%p]: %s", this,
|
1896
2016
|
grpc_transport_op_string(op).c_str());
|
1897
2017
|
}
|
1898
|
-
op->handler_private.extra_arg =
|
1899
|
-
|
1900
|
-
|
1901
|
-
|
1902
|
-
|
2018
|
+
op->handler_private.extra_arg = this;
|
2019
|
+
Ref().release()->combiner->Run(
|
2020
|
+
GRPC_CLOSURE_INIT(&op->handler_private.closure,
|
2021
|
+
perform_transport_op_locked, op, nullptr),
|
2022
|
+
absl::OkStatus());
|
1903
2023
|
}
|
1904
2024
|
|
1905
2025
|
//
|
@@ -1925,6 +2045,10 @@ void grpc_chttp2_maybe_complete_recv_initial_metadata(grpc_chttp2_transport* t,
|
|
1925
2045
|
*s->trailing_metadata_available = true;
|
1926
2046
|
s->trailing_metadata_available = nullptr;
|
1927
2047
|
}
|
2048
|
+
if (t->registered_method_matcher_cb != nullptr) {
|
2049
|
+
t->registered_method_matcher_cb(t->accept_stream_cb_user_data,
|
2050
|
+
s->recv_initial_metadata);
|
2051
|
+
}
|
1928
2052
|
null_then_sched_closure(&s->recv_initial_metadata_ready);
|
1929
2053
|
}
|
1930
2054
|
}
|
@@ -2035,17 +2159,16 @@ void grpc_chttp2_maybe_complete_recv_trailing_metadata(grpc_chttp2_transport* t,
|
|
2035
2159
|
}
|
2036
2160
|
}
|
2037
2161
|
|
2038
|
-
static
|
2039
|
-
|
2040
|
-
grpc_chttp2_stream* s =
|
2041
|
-
grpc_chttp2_stream_map_delete(&t->stream_map, id));
|
2162
|
+
static grpc_chttp2_transport::RemovedStreamHandle remove_stream(
|
2163
|
+
grpc_chttp2_transport* t, uint32_t id, grpc_error_handle error) {
|
2164
|
+
grpc_chttp2_stream* s = t->stream_map.extract(id).mapped();
|
2042
2165
|
GPR_DEBUG_ASSERT(s);
|
2043
2166
|
if (t->incoming_stream == s) {
|
2044
2167
|
t->incoming_stream = nullptr;
|
2045
2168
|
grpc_chttp2_parsing_become_skip_parser(t);
|
2046
2169
|
}
|
2047
2170
|
|
2048
|
-
if (
|
2171
|
+
if (t->stream_map.empty()) {
|
2049
2172
|
post_benign_reclaimer(t);
|
2050
2173
|
if (t->sent_goaway_state == GRPC_CHTTP2_FINAL_GOAWAY_SENT) {
|
2051
2174
|
close_transport_locked(
|
@@ -2060,29 +2183,74 @@ static void remove_stream(grpc_chttp2_transport* t, uint32_t id,
|
|
2060
2183
|
grpc_chttp2_list_remove_stalled_by_transport(t, s);
|
2061
2184
|
|
2062
2185
|
maybe_start_some_streams(t);
|
2186
|
+
|
2187
|
+
if (t->is_client) return grpc_chttp2_transport::RemovedStreamHandle();
|
2188
|
+
return grpc_chttp2_transport::RemovedStreamHandle(t->Ref());
|
2063
2189
|
}
|
2064
2190
|
|
2191
|
+
namespace grpc_core {
|
2192
|
+
namespace {
|
2193
|
+
|
2194
|
+
Duration TarpitDuration(grpc_chttp2_transport* t) {
|
2195
|
+
return Duration::Milliseconds(absl::LogUniform<int>(
|
2196
|
+
absl::BitGen(), t->min_tarpit_duration_ms, t->max_tarpit_duration_ms));
|
2197
|
+
}
|
2198
|
+
|
2199
|
+
template <typename F>
|
2200
|
+
void MaybeTarpit(grpc_chttp2_transport* t, bool tarpit, F fn) {
|
2201
|
+
if (!tarpit || !t->allow_tarpit || t->is_client) {
|
2202
|
+
fn(t);
|
2203
|
+
return;
|
2204
|
+
}
|
2205
|
+
const auto duration = TarpitDuration(t);
|
2206
|
+
t->event_engine->RunAfter(
|
2207
|
+
duration, [t = t->Ref(), fn = std::move(fn)]() mutable {
|
2208
|
+
ApplicationCallbackExecCtx app_exec_ctx;
|
2209
|
+
ExecCtx exec_ctx;
|
2210
|
+
t->combiner->Run(
|
2211
|
+
NewClosure([t, fn = std::move(fn)](grpc_error_handle) mutable {
|
2212
|
+
// TODO(ctiller): this can result in not sending RST_STREAMS if a
|
2213
|
+
// request gets tarpit behind a transport close.
|
2214
|
+
if (!t->closed_with_error.ok()) return;
|
2215
|
+
fn(t.get());
|
2216
|
+
}),
|
2217
|
+
absl::OkStatus());
|
2218
|
+
});
|
2219
|
+
}
|
2220
|
+
|
2221
|
+
} // namespace
|
2222
|
+
} // namespace grpc_core
|
2223
|
+
|
2065
2224
|
void grpc_chttp2_cancel_stream(grpc_chttp2_transport* t, grpc_chttp2_stream* s,
|
2066
|
-
grpc_error_handle due_to_error) {
|
2225
|
+
grpc_error_handle due_to_error, bool tarpit) {
|
2067
2226
|
if (!t->is_client && !s->sent_trailing_metadata &&
|
2068
|
-
grpc_error_has_clear_grpc_status(due_to_error)
|
2069
|
-
|
2227
|
+
grpc_error_has_clear_grpc_status(due_to_error) &&
|
2228
|
+
!(s->read_closed && s->write_closed)) {
|
2229
|
+
close_from_api(t, s, due_to_error, tarpit);
|
2070
2230
|
return;
|
2071
2231
|
}
|
2072
2232
|
|
2233
|
+
if (!due_to_error.ok() && !s->seen_error) {
|
2234
|
+
s->seen_error = true;
|
2235
|
+
}
|
2073
2236
|
if (!s->read_closed || !s->write_closed) {
|
2074
2237
|
if (s->id != 0) {
|
2075
2238
|
grpc_http2_error_code http_error;
|
2076
2239
|
grpc_error_get_status(due_to_error, s->deadline, nullptr, nullptr,
|
2077
2240
|
&http_error, nullptr);
|
2078
|
-
|
2079
|
-
t,
|
2080
|
-
|
2241
|
+
grpc_core::MaybeTarpit(
|
2242
|
+
t, tarpit,
|
2243
|
+
[id = s->id, http_error,
|
2244
|
+
remove_stream_handle = grpc_chttp2_mark_stream_closed(
|
2245
|
+
t, s, 1, 1, due_to_error)](grpc_chttp2_transport* t) {
|
2246
|
+
grpc_chttp2_add_rst_stream_to_next_write(
|
2247
|
+
t, id, static_cast<uint32_t>(http_error), nullptr);
|
2248
|
+
grpc_chttp2_initiate_write(t,
|
2249
|
+
GRPC_CHTTP2_INITIATE_WRITE_RST_STREAM);
|
2250
|
+
});
|
2251
|
+
return;
|
2081
2252
|
}
|
2082
2253
|
}
|
2083
|
-
if (!due_to_error.ok() && !s->seen_error) {
|
2084
|
-
s->seen_error = true;
|
2085
|
-
}
|
2086
2254
|
grpc_chttp2_mark_stream_closed(t, s, 1, 1, due_to_error);
|
2087
2255
|
}
|
2088
2256
|
|
@@ -2175,16 +2343,17 @@ void grpc_chttp2_fail_pending_writes(grpc_chttp2_transport* t,
|
|
2175
2343
|
flush_write_list(t, s, &s->on_flow_controlled_cbs, error);
|
2176
2344
|
}
|
2177
2345
|
|
2178
|
-
|
2179
|
-
|
2180
|
-
|
2346
|
+
grpc_chttp2_transport::RemovedStreamHandle grpc_chttp2_mark_stream_closed(
|
2347
|
+
grpc_chttp2_transport* t, grpc_chttp2_stream* s, int close_reads,
|
2348
|
+
int close_writes, grpc_error_handle error) {
|
2349
|
+
grpc_chttp2_transport::RemovedStreamHandle rsh;
|
2181
2350
|
if (grpc_http_trace.enabled()) {
|
2182
2351
|
gpr_log(
|
2183
2352
|
GPR_DEBUG, "MARK_STREAM_CLOSED: t=%p s=%p(id=%d) %s [%s]", t, s, s->id,
|
2184
2353
|
(close_reads && close_writes)
|
2185
2354
|
? "read+write"
|
2186
2355
|
: (close_reads ? "read" : (close_writes ? "write" : "nothing??")),
|
2187
|
-
error
|
2356
|
+
grpc_core::StatusToString(error).c_str());
|
2188
2357
|
}
|
2189
2358
|
if (s->read_closed && s->write_closed) {
|
2190
2359
|
// already closed, but we should still fake the status if needed.
|
@@ -2193,7 +2362,7 @@ void grpc_chttp2_mark_stream_closed(grpc_chttp2_transport* t,
|
|
2193
2362
|
grpc_chttp2_fake_status(t, s, overall_error);
|
2194
2363
|
}
|
2195
2364
|
grpc_chttp2_maybe_complete_recv_trailing_metadata(t, s);
|
2196
|
-
return;
|
2365
|
+
return rsh;
|
2197
2366
|
}
|
2198
2367
|
bool closed_read = false;
|
2199
2368
|
bool became_closed = false;
|
@@ -2211,7 +2380,7 @@ void grpc_chttp2_mark_stream_closed(grpc_chttp2_transport* t,
|
|
2211
2380
|
became_closed = true;
|
2212
2381
|
grpc_error_handle overall_error = removal_error(error, s, "Stream removed");
|
2213
2382
|
if (s->id != 0) {
|
2214
|
-
remove_stream(t, s->id, overall_error);
|
2383
|
+
rsh = remove_stream(t, s->id, overall_error);
|
2215
2384
|
} else {
|
2216
2385
|
// Purge streams waiting on concurrency still waiting for id assignment
|
2217
2386
|
grpc_chttp2_list_remove_waiting_for_concurrency(t, s);
|
@@ -2235,17 +2404,11 @@ void grpc_chttp2_mark_stream_closed(grpc_chttp2_transport* t,
|
|
2235
2404
|
grpc_chttp2_maybe_complete_recv_trailing_metadata(t, s);
|
2236
2405
|
GRPC_CHTTP2_STREAM_UNREF(s, "chttp2");
|
2237
2406
|
}
|
2407
|
+
return rsh;
|
2238
2408
|
}
|
2239
2409
|
|
2240
2410
|
static void close_from_api(grpc_chttp2_transport* t, grpc_chttp2_stream* s,
|
2241
|
-
grpc_error_handle error) {
|
2242
|
-
grpc_slice hdr;
|
2243
|
-
grpc_slice status_hdr;
|
2244
|
-
grpc_slice http_status_hdr;
|
2245
|
-
grpc_slice content_type_hdr;
|
2246
|
-
grpc_slice message_pfx;
|
2247
|
-
uint8_t* p;
|
2248
|
-
uint32_t len = 0;
|
2411
|
+
grpc_error_handle error, bool tarpit) {
|
2249
2412
|
grpc_status_code grpc_status;
|
2250
2413
|
std::string message;
|
2251
2414
|
grpc_error_get_status(error, s->deadline, &grpc_status, &message, nullptr,
|
@@ -2253,158 +2416,167 @@ static void close_from_api(grpc_chttp2_transport* t, grpc_chttp2_stream* s,
|
|
2253
2416
|
|
2254
2417
|
GPR_ASSERT(grpc_status >= 0 && (int)grpc_status < 100);
|
2255
2418
|
|
2256
|
-
|
2257
|
-
|
2258
|
-
|
2259
|
-
|
2260
|
-
|
2261
|
-
|
2262
|
-
|
2263
|
-
|
2264
|
-
|
2265
|
-
|
2266
|
-
|
2267
|
-
|
2268
|
-
|
2269
|
-
|
2270
|
-
|
2271
|
-
|
2272
|
-
|
2273
|
-
|
2274
|
-
|
2275
|
-
|
2276
|
-
|
2277
|
-
|
2278
|
-
|
2279
|
-
|
2280
|
-
|
2281
|
-
|
2282
|
-
|
2283
|
-
|
2284
|
-
|
2285
|
-
|
2286
|
-
|
2287
|
-
|
2288
|
-
|
2289
|
-
|
2290
|
-
|
2291
|
-
|
2292
|
-
|
2293
|
-
|
2294
|
-
|
2295
|
-
|
2296
|
-
|
2297
|
-
|
2298
|
-
|
2299
|
-
|
2300
|
-
|
2301
|
-
|
2302
|
-
|
2303
|
-
|
2304
|
-
|
2305
|
-
|
2306
|
-
|
2307
|
-
|
2308
|
-
|
2309
|
-
|
2310
|
-
|
2311
|
-
|
2312
|
-
|
2313
|
-
|
2314
|
-
|
2315
|
-
|
2316
|
-
|
2317
|
-
|
2318
|
-
|
2319
|
-
|
2320
|
-
|
2321
|
-
|
2322
|
-
|
2323
|
-
|
2324
|
-
|
2325
|
-
|
2326
|
-
|
2327
|
-
|
2328
|
-
|
2329
|
-
|
2330
|
-
|
2331
|
-
|
2332
|
-
|
2333
|
-
|
2334
|
-
*p++ = 1;
|
2335
|
-
*p++ = static_cast<uint8_t>('0' + grpc_status);
|
2336
|
-
} else {
|
2337
|
-
*p++ = 2;
|
2338
|
-
*p++ = static_cast<uint8_t>('0' + (grpc_status / 10));
|
2339
|
-
*p++ = static_cast<uint8_t>('0' + (grpc_status % 10));
|
2340
|
-
}
|
2341
|
-
GPR_ASSERT(p == GRPC_SLICE_END_PTR(status_hdr));
|
2342
|
-
len += static_cast<uint32_t> GRPC_SLICE_LENGTH(status_hdr);
|
2343
|
-
|
2344
|
-
size_t msg_len = message.length();
|
2345
|
-
GPR_ASSERT(msg_len <= UINT32_MAX);
|
2346
|
-
grpc_core::VarintWriter<1> msg_len_writer(static_cast<uint32_t>(msg_len));
|
2347
|
-
message_pfx = GRPC_SLICE_MALLOC(14 + msg_len_writer.length());
|
2348
|
-
p = GRPC_SLICE_START_PTR(message_pfx);
|
2349
|
-
*p++ = 0x00; // literal header, not indexed
|
2350
|
-
*p++ = 12; // len(grpc-message)
|
2351
|
-
*p++ = 'g';
|
2352
|
-
*p++ = 'r';
|
2353
|
-
*p++ = 'p';
|
2354
|
-
*p++ = 'c';
|
2355
|
-
*p++ = '-';
|
2356
|
-
*p++ = 'm';
|
2357
|
-
*p++ = 'e';
|
2358
|
-
*p++ = 's';
|
2359
|
-
*p++ = 's';
|
2360
|
-
*p++ = 'a';
|
2361
|
-
*p++ = 'g';
|
2362
|
-
*p++ = 'e';
|
2363
|
-
msg_len_writer.Write(0, p);
|
2364
|
-
p += msg_len_writer.length();
|
2365
|
-
GPR_ASSERT(p == GRPC_SLICE_END_PTR(message_pfx));
|
2366
|
-
len += static_cast<uint32_t> GRPC_SLICE_LENGTH(message_pfx);
|
2367
|
-
len += static_cast<uint32_t>(msg_len);
|
2368
|
-
|
2369
|
-
hdr = GRPC_SLICE_MALLOC(9);
|
2370
|
-
p = GRPC_SLICE_START_PTR(hdr);
|
2371
|
-
*p++ = static_cast<uint8_t>(len >> 16);
|
2372
|
-
*p++ = static_cast<uint8_t>(len >> 8);
|
2373
|
-
*p++ = static_cast<uint8_t>(len);
|
2374
|
-
*p++ = GRPC_CHTTP2_FRAME_HEADER;
|
2375
|
-
*p++ = GRPC_CHTTP2_DATA_FLAG_END_STREAM | GRPC_CHTTP2_DATA_FLAG_END_HEADERS;
|
2376
|
-
*p++ = static_cast<uint8_t>(s->id >> 24);
|
2377
|
-
*p++ = static_cast<uint8_t>(s->id >> 16);
|
2378
|
-
*p++ = static_cast<uint8_t>(s->id >> 8);
|
2379
|
-
*p++ = static_cast<uint8_t>(s->id);
|
2380
|
-
GPR_ASSERT(p == GRPC_SLICE_END_PTR(hdr));
|
2381
|
-
|
2382
|
-
grpc_slice_buffer_add(&t->qbuf, hdr);
|
2383
|
-
if (!s->sent_initial_metadata) {
|
2384
|
-
grpc_slice_buffer_add(&t->qbuf, http_status_hdr);
|
2385
|
-
grpc_slice_buffer_add(&t->qbuf, content_type_hdr);
|
2386
|
-
}
|
2387
|
-
grpc_slice_buffer_add(&t->qbuf, status_hdr);
|
2388
|
-
grpc_slice_buffer_add(&t->qbuf, message_pfx);
|
2389
|
-
grpc_slice_buffer_add(&t->qbuf,
|
2390
|
-
grpc_slice_from_cpp_string(std::move(message)));
|
2391
|
-
grpc_chttp2_reset_ping_clock(t);
|
2392
|
-
grpc_chttp2_add_rst_stream_to_next_write(t, s->id, GRPC_HTTP2_NO_ERROR,
|
2393
|
-
&s->stats.outgoing);
|
2394
|
-
|
2395
|
-
grpc_chttp2_mark_stream_closed(t, s, 1, 1, error);
|
2396
|
-
grpc_chttp2_initiate_write(t, GRPC_CHTTP2_INITIATE_WRITE_CLOSE_FROM_API);
|
2397
|
-
}
|
2398
|
-
|
2399
|
-
struct cancel_stream_cb_args {
|
2400
|
-
grpc_error_handle error;
|
2401
|
-
grpc_chttp2_transport* t;
|
2402
|
-
};
|
2419
|
+
auto remove_stream_handle = grpc_chttp2_mark_stream_closed(t, s, 1, 1, error);
|
2420
|
+
grpc_core::MaybeTarpit(
|
2421
|
+
t, tarpit,
|
2422
|
+
[error = std::move(error),
|
2423
|
+
sent_initial_metadata = s->sent_initial_metadata, id = s->id,
|
2424
|
+
grpc_status, message = std::move(message),
|
2425
|
+
remove_stream_handle =
|
2426
|
+
std::move(remove_stream_handle)](grpc_chttp2_transport* t) mutable {
|
2427
|
+
grpc_slice hdr;
|
2428
|
+
grpc_slice status_hdr;
|
2429
|
+
grpc_slice http_status_hdr;
|
2430
|
+
grpc_slice content_type_hdr;
|
2431
|
+
grpc_slice message_pfx;
|
2432
|
+
uint8_t* p;
|
2433
|
+
uint32_t len = 0;
|
2434
|
+
|
2435
|
+
// Hand roll a header block.
|
2436
|
+
// This is unnecessarily ugly - at some point we should find a more
|
2437
|
+
// elegant solution.
|
2438
|
+
// It's complicated by the fact that our send machinery would be dead
|
2439
|
+
// by the time we got around to sending this, so instead we ignore
|
2440
|
+
// HPACK compression and just write the uncompressed bytes onto the
|
2441
|
+
// wire.
|
2442
|
+
if (!sent_initial_metadata) {
|
2443
|
+
http_status_hdr = GRPC_SLICE_MALLOC(13);
|
2444
|
+
p = GRPC_SLICE_START_PTR(http_status_hdr);
|
2445
|
+
*p++ = 0x00;
|
2446
|
+
*p++ = 7;
|
2447
|
+
*p++ = ':';
|
2448
|
+
*p++ = 's';
|
2449
|
+
*p++ = 't';
|
2450
|
+
*p++ = 'a';
|
2451
|
+
*p++ = 't';
|
2452
|
+
*p++ = 'u';
|
2453
|
+
*p++ = 's';
|
2454
|
+
*p++ = 3;
|
2455
|
+
*p++ = '2';
|
2456
|
+
*p++ = '0';
|
2457
|
+
*p++ = '0';
|
2458
|
+
GPR_ASSERT(p == GRPC_SLICE_END_PTR(http_status_hdr));
|
2459
|
+
len += static_cast<uint32_t> GRPC_SLICE_LENGTH(http_status_hdr);
|
2460
|
+
|
2461
|
+
content_type_hdr = GRPC_SLICE_MALLOC(31);
|
2462
|
+
p = GRPC_SLICE_START_PTR(content_type_hdr);
|
2463
|
+
*p++ = 0x00;
|
2464
|
+
*p++ = 12;
|
2465
|
+
*p++ = 'c';
|
2466
|
+
*p++ = 'o';
|
2467
|
+
*p++ = 'n';
|
2468
|
+
*p++ = 't';
|
2469
|
+
*p++ = 'e';
|
2470
|
+
*p++ = 'n';
|
2471
|
+
*p++ = 't';
|
2472
|
+
*p++ = '-';
|
2473
|
+
*p++ = 't';
|
2474
|
+
*p++ = 'y';
|
2475
|
+
*p++ = 'p';
|
2476
|
+
*p++ = 'e';
|
2477
|
+
*p++ = 16;
|
2478
|
+
*p++ = 'a';
|
2479
|
+
*p++ = 'p';
|
2480
|
+
*p++ = 'p';
|
2481
|
+
*p++ = 'l';
|
2482
|
+
*p++ = 'i';
|
2483
|
+
*p++ = 'c';
|
2484
|
+
*p++ = 'a';
|
2485
|
+
*p++ = 't';
|
2486
|
+
*p++ = 'i';
|
2487
|
+
*p++ = 'o';
|
2488
|
+
*p++ = 'n';
|
2489
|
+
*p++ = '/';
|
2490
|
+
*p++ = 'g';
|
2491
|
+
*p++ = 'r';
|
2492
|
+
*p++ = 'p';
|
2493
|
+
*p++ = 'c';
|
2494
|
+
GPR_ASSERT(p == GRPC_SLICE_END_PTR(content_type_hdr));
|
2495
|
+
len += static_cast<uint32_t> GRPC_SLICE_LENGTH(content_type_hdr);
|
2496
|
+
}
|
2403
2497
|
|
2404
|
-
|
2405
|
-
|
2406
|
-
|
2407
|
-
|
2498
|
+
status_hdr = GRPC_SLICE_MALLOC(15 + (grpc_status >= 10));
|
2499
|
+
p = GRPC_SLICE_START_PTR(status_hdr);
|
2500
|
+
*p++ = 0x00; // literal header, not indexed
|
2501
|
+
*p++ = 11; // len(grpc-status)
|
2502
|
+
*p++ = 'g';
|
2503
|
+
*p++ = 'r';
|
2504
|
+
*p++ = 'p';
|
2505
|
+
*p++ = 'c';
|
2506
|
+
*p++ = '-';
|
2507
|
+
*p++ = 's';
|
2508
|
+
*p++ = 't';
|
2509
|
+
*p++ = 'a';
|
2510
|
+
*p++ = 't';
|
2511
|
+
*p++ = 'u';
|
2512
|
+
*p++ = 's';
|
2513
|
+
if (grpc_status < 10) {
|
2514
|
+
*p++ = 1;
|
2515
|
+
*p++ = static_cast<uint8_t>('0' + grpc_status);
|
2516
|
+
} else {
|
2517
|
+
*p++ = 2;
|
2518
|
+
*p++ = static_cast<uint8_t>('0' + (grpc_status / 10));
|
2519
|
+
*p++ = static_cast<uint8_t>('0' + (grpc_status % 10));
|
2520
|
+
}
|
2521
|
+
GPR_ASSERT(p == GRPC_SLICE_END_PTR(status_hdr));
|
2522
|
+
len += static_cast<uint32_t> GRPC_SLICE_LENGTH(status_hdr);
|
2523
|
+
|
2524
|
+
size_t msg_len = message.length();
|
2525
|
+
GPR_ASSERT(msg_len <= UINT32_MAX);
|
2526
|
+
grpc_core::VarintWriter<1> msg_len_writer(
|
2527
|
+
static_cast<uint32_t>(msg_len));
|
2528
|
+
message_pfx = GRPC_SLICE_MALLOC(14 + msg_len_writer.length());
|
2529
|
+
p = GRPC_SLICE_START_PTR(message_pfx);
|
2530
|
+
*p++ = 0x00; // literal header, not indexed
|
2531
|
+
*p++ = 12; // len(grpc-message)
|
2532
|
+
*p++ = 'g';
|
2533
|
+
*p++ = 'r';
|
2534
|
+
*p++ = 'p';
|
2535
|
+
*p++ = 'c';
|
2536
|
+
*p++ = '-';
|
2537
|
+
*p++ = 'm';
|
2538
|
+
*p++ = 'e';
|
2539
|
+
*p++ = 's';
|
2540
|
+
*p++ = 's';
|
2541
|
+
*p++ = 'a';
|
2542
|
+
*p++ = 'g';
|
2543
|
+
*p++ = 'e';
|
2544
|
+
msg_len_writer.Write(0, p);
|
2545
|
+
p += msg_len_writer.length();
|
2546
|
+
GPR_ASSERT(p == GRPC_SLICE_END_PTR(message_pfx));
|
2547
|
+
len += static_cast<uint32_t> GRPC_SLICE_LENGTH(message_pfx);
|
2548
|
+
len += static_cast<uint32_t>(msg_len);
|
2549
|
+
|
2550
|
+
hdr = GRPC_SLICE_MALLOC(9);
|
2551
|
+
p = GRPC_SLICE_START_PTR(hdr);
|
2552
|
+
*p++ = static_cast<uint8_t>(len >> 16);
|
2553
|
+
*p++ = static_cast<uint8_t>(len >> 8);
|
2554
|
+
*p++ = static_cast<uint8_t>(len);
|
2555
|
+
*p++ = GRPC_CHTTP2_FRAME_HEADER;
|
2556
|
+
*p++ = GRPC_CHTTP2_DATA_FLAG_END_STREAM |
|
2557
|
+
GRPC_CHTTP2_DATA_FLAG_END_HEADERS;
|
2558
|
+
*p++ = static_cast<uint8_t>(id >> 24);
|
2559
|
+
*p++ = static_cast<uint8_t>(id >> 16);
|
2560
|
+
*p++ = static_cast<uint8_t>(id >> 8);
|
2561
|
+
*p++ = static_cast<uint8_t>(id);
|
2562
|
+
GPR_ASSERT(p == GRPC_SLICE_END_PTR(hdr));
|
2563
|
+
|
2564
|
+
grpc_slice_buffer_add(&t->qbuf, hdr);
|
2565
|
+
if (!sent_initial_metadata) {
|
2566
|
+
grpc_slice_buffer_add(&t->qbuf, http_status_hdr);
|
2567
|
+
grpc_slice_buffer_add(&t->qbuf, content_type_hdr);
|
2568
|
+
}
|
2569
|
+
grpc_slice_buffer_add(&t->qbuf, status_hdr);
|
2570
|
+
grpc_slice_buffer_add(&t->qbuf, message_pfx);
|
2571
|
+
grpc_slice_buffer_add(&t->qbuf,
|
2572
|
+
grpc_slice_from_cpp_string(std::move(message)));
|
2573
|
+
grpc_chttp2_reset_ping_clock(t);
|
2574
|
+
grpc_chttp2_add_rst_stream_to_next_write(t, id, GRPC_HTTP2_NO_ERROR,
|
2575
|
+
nullptr);
|
2576
|
+
|
2577
|
+
grpc_chttp2_initiate_write(t,
|
2578
|
+
GRPC_CHTTP2_INITIATE_WRITE_CLOSE_FROM_API);
|
2579
|
+
});
|
2408
2580
|
}
|
2409
2581
|
|
2410
2582
|
static void end_all_the_calls(grpc_chttp2_transport* t,
|
@@ -2417,9 +2589,14 @@ static void end_all_the_calls(grpc_chttp2_transport* t,
|
|
2417
2589
|
error = grpc_error_set_int(error, grpc_core::StatusIntProperty::kRpcStatus,
|
2418
2590
|
GRPC_STATUS_UNAVAILABLE);
|
2419
2591
|
}
|
2420
|
-
cancel_unstarted_streams(t, error);
|
2421
|
-
|
2422
|
-
|
2592
|
+
cancel_unstarted_streams(t, error, false);
|
2593
|
+
std::vector<grpc_chttp2_stream*> to_cancel;
|
2594
|
+
for (auto id_stream : t->stream_map) {
|
2595
|
+
to_cancel.push_back(id_stream.second);
|
2596
|
+
}
|
2597
|
+
for (auto s : to_cancel) {
|
2598
|
+
grpc_chttp2_cancel_stream(t, s, error, false);
|
2599
|
+
}
|
2423
2600
|
}
|
2424
2601
|
|
2425
2602
|
//
|
@@ -2455,21 +2632,19 @@ void grpc_chttp2_act_on_flowctl_action(
|
|
2455
2632
|
GRPC_CHTTP2_INITIATE_WRITE_TRANSPORT_FLOW_CONTROL, []() {});
|
2456
2633
|
WithUrgency(t, action.send_initial_window_update(),
|
2457
2634
|
GRPC_CHTTP2_INITIATE_WRITE_SEND_SETTINGS, [t, &action]() {
|
2458
|
-
|
2459
|
-
|
2460
|
-
action.initial_window_size());
|
2461
|
-
});
|
2462
|
-
WithUrgency(t, action.send_max_frame_size_update(),
|
2463
|
-
GRPC_CHTTP2_INITIATE_WRITE_SEND_SETTINGS, [t, &action]() {
|
2464
|
-
queue_setting_update(t, GRPC_CHTTP2_SETTINGS_MAX_FRAME_SIZE,
|
2465
|
-
action.max_frame_size());
|
2635
|
+
t->settings.mutable_local().SetInitialWindowSize(
|
2636
|
+
action.initial_window_size());
|
2466
2637
|
});
|
2638
|
+
WithUrgency(
|
2639
|
+
t, action.send_max_frame_size_update(),
|
2640
|
+
GRPC_CHTTP2_INITIATE_WRITE_SEND_SETTINGS, [t, &action]() {
|
2641
|
+
t->settings.mutable_local().SetMaxFrameSize(action.max_frame_size());
|
2642
|
+
});
|
2467
2643
|
if (t->enable_preferred_rx_crypto_frame_advertisement) {
|
2468
2644
|
WithUrgency(
|
2469
2645
|
t, action.preferred_rx_crypto_frame_size_update(),
|
2470
2646
|
GRPC_CHTTP2_INITIATE_WRITE_SEND_SETTINGS, [t, &action]() {
|
2471
|
-
|
2472
|
-
t, GRPC_CHTTP2_SETTINGS_GRPC_PREFERRED_RECEIVE_CRYPTO_FRAME_SIZE,
|
2647
|
+
t->settings.mutable_local().SetPreferredReceiveCryptoMessageSize(
|
2473
2648
|
action.preferred_rx_crypto_frame_size());
|
2474
2649
|
});
|
2475
2650
|
}
|
@@ -2503,31 +2678,45 @@ static grpc_error_handle try_http_parsing(grpc_chttp2_transport* t) {
|
|
2503
2678
|
return error;
|
2504
2679
|
}
|
2505
2680
|
|
2506
|
-
static void read_action(
|
2507
|
-
|
2508
|
-
t
|
2509
|
-
|
2510
|
-
|
2681
|
+
static void read_action(grpc_core::RefCountedPtr<grpc_chttp2_transport> t,
|
2682
|
+
grpc_error_handle error) {
|
2683
|
+
auto* tp = t.get();
|
2684
|
+
tp->combiner->Run(grpc_core::InitTransportClosure<read_action_locked>(
|
2685
|
+
std::move(t), &tp->read_action_locked),
|
2686
|
+
error);
|
2511
2687
|
}
|
2512
2688
|
|
2513
|
-
static void
|
2514
|
-
|
2515
|
-
|
2516
|
-
grpc_error_handle err = error;
|
2517
|
-
if (!err.ok()) {
|
2518
|
-
err = grpc_error_set_int(
|
2519
|
-
GRPC_ERROR_CREATE_REFERENCING("Endpoint read failed", &err, 1),
|
2520
|
-
grpc_core::StatusIntProperty::kOccurredDuringWrite, t->write_state);
|
2521
|
-
}
|
2522
|
-
std::swap(err, error);
|
2689
|
+
static void read_action_parse_loop_locked(
|
2690
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t,
|
2691
|
+
grpc_error_handle error) {
|
2523
2692
|
if (t->closed_with_error.ok()) {
|
2524
|
-
size_t i = 0;
|
2525
2693
|
grpc_error_handle errors[3] = {error, absl::OkStatus(), absl::OkStatus()};
|
2526
|
-
|
2527
|
-
|
2694
|
+
size_t requests_started = 0;
|
2695
|
+
for (size_t i = 0;
|
2696
|
+
i < t->read_buffer.count && errors[1] == absl::OkStatus(); i++) {
|
2697
|
+
auto r = grpc_chttp2_perform_read(t.get(), t->read_buffer.slices[i],
|
2698
|
+
requests_started);
|
2699
|
+
if (auto* partial_read_size = absl::get_if<size_t>(&r)) {
|
2700
|
+
for (size_t j = 0; j < i; j++) {
|
2701
|
+
grpc_core::CSliceUnref(grpc_slice_buffer_take_first(&t->read_buffer));
|
2702
|
+
}
|
2703
|
+
grpc_slice_buffer_sub_first(
|
2704
|
+
&t->read_buffer, *partial_read_size,
|
2705
|
+
GRPC_SLICE_LENGTH(t->read_buffer.slices[0]));
|
2706
|
+
t->combiner->ForceOffload();
|
2707
|
+
auto* tp = t.get();
|
2708
|
+
tp->combiner->Run(
|
2709
|
+
grpc_core::InitTransportClosure<read_action_parse_loop_locked>(
|
2710
|
+
std::move(t), &tp->read_action_locked),
|
2711
|
+
std::move(errors[0]));
|
2712
|
+
// Early return: we queued to retry later.
|
2713
|
+
return;
|
2714
|
+
} else {
|
2715
|
+
errors[1] = std::move(absl::get<absl::Status>(r));
|
2716
|
+
}
|
2528
2717
|
}
|
2529
2718
|
if (errors[1] != absl::OkStatus()) {
|
2530
|
-
errors[2] = try_http_parsing(t);
|
2719
|
+
errors[2] = try_http_parsing(t.get());
|
2531
2720
|
error = GRPC_ERROR_CREATE_REFERENCING("Failed parsing HTTP/2", errors,
|
2532
2721
|
GPR_ARRAY_SIZE(errors));
|
2533
2722
|
}
|
@@ -2535,10 +2724,11 @@ static void read_action_locked(void* tp, grpc_error_handle error) {
|
|
2535
2724
|
if (t->initial_window_update != 0) {
|
2536
2725
|
if (t->initial_window_update > 0) {
|
2537
2726
|
grpc_chttp2_stream* s;
|
2538
|
-
while (grpc_chttp2_list_pop_stalled_by_stream(t, &s)) {
|
2539
|
-
grpc_chttp2_mark_stream_writable(t, s);
|
2727
|
+
while (grpc_chttp2_list_pop_stalled_by_stream(t.get(), &s)) {
|
2728
|
+
grpc_chttp2_mark_stream_writable(t.get(), s);
|
2540
2729
|
grpc_chttp2_initiate_write(
|
2541
|
-
t,
|
2730
|
+
t.get(),
|
2731
|
+
GRPC_CHTTP2_INITIATE_WRITE_FLOW_CONTROL_UNSTALLED_BY_SETTING);
|
2542
2732
|
}
|
2543
2733
|
}
|
2544
2734
|
t->initial_window_update = 0;
|
@@ -2557,13 +2747,12 @@ static void read_action_locked(void* tp, grpc_error_handle error) {
|
|
2557
2747
|
error = grpc_error_add_child(error, t->goaway_error);
|
2558
2748
|
}
|
2559
2749
|
|
2560
|
-
close_transport_locked(t, error);
|
2561
|
-
t->endpoint_reading = 0;
|
2750
|
+
close_transport_locked(t.get(), error);
|
2562
2751
|
} else if (t->closed_with_error.ok()) {
|
2563
2752
|
keep_reading = true;
|
2564
2753
|
// Since we have read a byte, reset the keepalive timer
|
2565
2754
|
if (t->keepalive_state == GRPC_CHTTP2_KEEPALIVE_STATE_WAITING) {
|
2566
|
-
maybe_reset_keepalive_ping_timer_locked(t);
|
2755
|
+
maybe_reset_keepalive_ping_timer_locked(t.get());
|
2567
2756
|
}
|
2568
2757
|
}
|
2569
2758
|
grpc_slice_buffer_reset_and_unref(&t->read_buffer);
|
@@ -2575,45 +2764,73 @@ static void read_action_locked(void* tp, grpc_error_handle error) {
|
|
2575
2764
|
gpr_log(GPR_INFO,
|
2576
2765
|
"transport %p : Pausing reading due to too "
|
2577
2766
|
"many unwritten SETTINGS ACK and RST_STREAM frames",
|
2578
|
-
t));
|
2767
|
+
t.get()));
|
2579
2768
|
} else {
|
2580
|
-
continue_read_action_locked(t);
|
2769
|
+
continue_read_action_locked(std::move(t));
|
2581
2770
|
}
|
2582
|
-
} else {
|
2583
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "reading_action");
|
2584
2771
|
}
|
2585
2772
|
}
|
2586
2773
|
|
2587
|
-
static void
|
2774
|
+
static void read_action_locked(
|
2775
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t,
|
2776
|
+
grpc_error_handle error) {
|
2777
|
+
// got an incoming read, cancel any pending keepalive timers
|
2778
|
+
t->keepalive_incoming_data_wanted = false;
|
2779
|
+
if (t->keepalive_ping_timeout_handle != TaskHandle::kInvalid) {
|
2780
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_ping_trace) ||
|
2781
|
+
GRPC_TRACE_FLAG_ENABLED(grpc_keepalive_trace)) {
|
2782
|
+
gpr_log(GPR_INFO,
|
2783
|
+
"%s[%p]: Clear keepalive timer because data was received",
|
2784
|
+
t->is_client ? "CLIENT" : "SERVER", t.get());
|
2785
|
+
}
|
2786
|
+
t->event_engine->Cancel(
|
2787
|
+
std::exchange(t->keepalive_ping_timeout_handle, TaskHandle::kInvalid));
|
2788
|
+
}
|
2789
|
+
grpc_error_handle err = error;
|
2790
|
+
if (!err.ok()) {
|
2791
|
+
err = grpc_error_set_int(
|
2792
|
+
GRPC_ERROR_CREATE_REFERENCING("Endpoint read failed", &err, 1),
|
2793
|
+
grpc_core::StatusIntProperty::kOccurredDuringWrite, t->write_state);
|
2794
|
+
}
|
2795
|
+
std::swap(err, error);
|
2796
|
+
read_action_parse_loop_locked(std::move(t), std::move(err));
|
2797
|
+
}
|
2798
|
+
|
2799
|
+
static void continue_read_action_locked(
|
2800
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t) {
|
2588
2801
|
const bool urgent = !t->goaway_error.ok();
|
2589
|
-
|
2590
|
-
|
2591
|
-
|
2592
|
-
|
2802
|
+
auto* tp = t.get();
|
2803
|
+
grpc_endpoint_read(tp->ep, &tp->read_buffer,
|
2804
|
+
grpc_core::InitTransportClosure<read_action>(
|
2805
|
+
std::move(t), &tp->read_action_locked),
|
2806
|
+
urgent, grpc_chttp2_min_read_progress_size(tp));
|
2593
2807
|
}
|
2594
2808
|
|
2595
2809
|
// t is reffed prior to calling the first time, and once the callback chain
|
2596
2810
|
// that kicks off finishes, it's unreffed
|
2597
|
-
void schedule_bdp_ping_locked(
|
2598
|
-
|
2599
|
-
|
2600
|
-
|
2601
|
-
|
2602
|
-
|
2603
|
-
|
2604
|
-
|
2605
|
-
|
2606
|
-
|
2607
|
-
|
2608
|
-
|
2609
|
-
|
2610
|
-
|
2611
|
-
|
2612
|
-
|
2613
|
-
|
2614
|
-
|
2615
|
-
|
2616
|
-
|
2811
|
+
void schedule_bdp_ping_locked(
|
2812
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t) {
|
2813
|
+
auto* tp = t.get();
|
2814
|
+
tp->flow_control.bdp_estimator()->SchedulePing();
|
2815
|
+
send_ping_locked(tp,
|
2816
|
+
grpc_core::InitTransportClosure<start_bdp_ping>(
|
2817
|
+
tp->Ref(), &tp->start_bdp_ping_locked),
|
2818
|
+
grpc_core::InitTransportClosure<finish_bdp_ping>(
|
2819
|
+
std::move(t), &tp->finish_bdp_ping_locked));
|
2820
|
+
grpc_chttp2_initiate_write(tp, GRPC_CHTTP2_INITIATE_WRITE_BDP_PING);
|
2821
|
+
}
|
2822
|
+
|
2823
|
+
static void start_bdp_ping(grpc_core::RefCountedPtr<grpc_chttp2_transport> t,
|
2824
|
+
grpc_error_handle error) {
|
2825
|
+
grpc_chttp2_transport* tp = t.get();
|
2826
|
+
tp->combiner->Run(grpc_core::InitTransportClosure<start_bdp_ping_locked>(
|
2827
|
+
std::move(t), &tp->start_bdp_ping_locked),
|
2828
|
+
error);
|
2829
|
+
}
|
2830
|
+
|
2831
|
+
static void start_bdp_ping_locked(
|
2832
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t,
|
2833
|
+
grpc_error_handle error) {
|
2617
2834
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_http_trace)) {
|
2618
2835
|
gpr_log(GPR_INFO, "%s: Start BDP ping err=%s",
|
2619
2836
|
std::string(t->peer_string.as_string_view()).c_str(),
|
@@ -2624,157 +2841,143 @@ static void start_bdp_ping_locked(void* tp, grpc_error_handle error) {
|
|
2624
2841
|
}
|
2625
2842
|
// Reset the keepalive ping timer
|
2626
2843
|
if (t->keepalive_state == GRPC_CHTTP2_KEEPALIVE_STATE_WAITING) {
|
2627
|
-
maybe_reset_keepalive_ping_timer_locked(t);
|
2844
|
+
maybe_reset_keepalive_ping_timer_locked(t.get());
|
2628
2845
|
}
|
2629
2846
|
t->flow_control.bdp_estimator()->StartPing();
|
2630
2847
|
t->bdp_ping_started = true;
|
2631
2848
|
}
|
2632
2849
|
|
2633
|
-
static void finish_bdp_ping(
|
2634
|
-
|
2635
|
-
t
|
2636
|
-
|
2637
|
-
|
2850
|
+
static void finish_bdp_ping(grpc_core::RefCountedPtr<grpc_chttp2_transport> t,
|
2851
|
+
grpc_error_handle error) {
|
2852
|
+
grpc_chttp2_transport* tp = t.get();
|
2853
|
+
tp->combiner->Run(grpc_core::InitTransportClosure<finish_bdp_ping_locked>(
|
2854
|
+
std::move(t), &tp->finish_bdp_ping_locked),
|
2855
|
+
error);
|
2638
2856
|
}
|
2639
2857
|
|
2640
|
-
static void finish_bdp_ping_locked(
|
2641
|
-
|
2858
|
+
static void finish_bdp_ping_locked(
|
2859
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t,
|
2860
|
+
grpc_error_handle error) {
|
2642
2861
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_http_trace)) {
|
2643
2862
|
gpr_log(GPR_INFO, "%s: Complete BDP ping err=%s",
|
2644
2863
|
std::string(t->peer_string.as_string_view()).c_str(),
|
2645
2864
|
grpc_core::StatusToString(error).c_str());
|
2646
2865
|
}
|
2647
2866
|
if (!error.ok() || !t->closed_with_error.ok()) {
|
2648
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "bdp_ping");
|
2649
2867
|
return;
|
2650
2868
|
}
|
2651
2869
|
if (!t->bdp_ping_started) {
|
2652
2870
|
// start_bdp_ping_locked has not been run yet. Schedule
|
2653
2871
|
// finish_bdp_ping_locked to be run later.
|
2654
|
-
|
2655
|
-
finish_bdp_ping_locked, t, nullptr),
|
2656
|
-
error);
|
2872
|
+
finish_bdp_ping(std::move(t), std::move(error));
|
2657
2873
|
return;
|
2658
2874
|
}
|
2659
2875
|
t->bdp_ping_started = false;
|
2660
2876
|
grpc_core::Timestamp next_ping =
|
2661
2877
|
t->flow_control.bdp_estimator()->CompletePing();
|
2662
|
-
grpc_chttp2_act_on_flowctl_action(t->flow_control.PeriodicUpdate(), t,
|
2878
|
+
grpc_chttp2_act_on_flowctl_action(t->flow_control.PeriodicUpdate(), t.get(),
|
2663
2879
|
nullptr);
|
2664
|
-
GPR_ASSERT(
|
2880
|
+
GPR_ASSERT(t->next_bdp_ping_timer_handle == TaskHandle::kInvalid);
|
2665
2881
|
t->next_bdp_ping_timer_handle =
|
2666
2882
|
t->event_engine->RunAfter(next_ping - grpc_core::Timestamp::Now(), [t] {
|
2667
2883
|
grpc_core::ApplicationCallbackExecCtx callback_exec_ctx;
|
2668
2884
|
grpc_core::ExecCtx exec_ctx;
|
2669
|
-
next_bdp_ping_timer_expired(t);
|
2885
|
+
next_bdp_ping_timer_expired(t.get());
|
2670
2886
|
});
|
2671
2887
|
}
|
2672
2888
|
|
2673
2889
|
static void next_bdp_ping_timer_expired(grpc_chttp2_transport* t) {
|
2674
2890
|
t->combiner->Run(
|
2675
|
-
|
2676
|
-
|
2891
|
+
grpc_core::InitTransportClosure<next_bdp_ping_timer_expired_locked>(
|
2892
|
+
t->Ref(), &t->next_bdp_ping_timer_expired_locked),
|
2677
2893
|
absl::OkStatus());
|
2678
2894
|
}
|
2679
2895
|
|
2680
2896
|
static void next_bdp_ping_timer_expired_locked(
|
2681
|
-
|
2897
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t,
|
2898
|
+
GRPC_UNUSED grpc_error_handle error) {
|
2682
2899
|
GPR_DEBUG_ASSERT(error.ok());
|
2683
|
-
|
2684
|
-
|
2685
|
-
t->next_bdp_ping_timer_handle.reset();
|
2900
|
+
GPR_ASSERT(t->next_bdp_ping_timer_handle != TaskHandle::kInvalid);
|
2901
|
+
t->next_bdp_ping_timer_handle = TaskHandle::kInvalid;
|
2686
2902
|
if (t->flow_control.bdp_estimator()->accumulator() == 0) {
|
2687
2903
|
// Block the bdp ping till we receive more data.
|
2688
2904
|
t->bdp_ping_blocked = true;
|
2689
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "bdp_ping");
|
2690
2905
|
} else {
|
2691
|
-
schedule_bdp_ping_locked(t);
|
2906
|
+
schedule_bdp_ping_locked(std::move(t));
|
2692
2907
|
}
|
2693
2908
|
}
|
2694
2909
|
|
2695
2910
|
void grpc_chttp2_config_default_keepalive_args(grpc_channel_args* args,
|
2696
2911
|
bool is_client) {
|
2697
|
-
|
2698
|
-
|
2699
|
-
|
2700
|
-
|
2701
|
-
|
2702
|
-
|
2703
|
-
|
2704
|
-
|
2705
|
-
|
2706
|
-
|
2707
|
-
|
2708
|
-
|
2709
|
-
|
2710
|
-
|
2711
|
-
|
2712
|
-
|
2713
|
-
|
2714
|
-
|
2715
|
-
|
2716
|
-
|
2717
|
-
|
2718
|
-
|
2719
|
-
|
2720
|
-
|
2721
|
-
|
2722
|
-
|
2723
|
-
const bool value = static_cast<uint32_t>(grpc_channel_arg_get_integer(
|
2724
|
-
&args->args[i],
|
2725
|
-
{is_client ? g_default_client_keepalive_permit_without_calls
|
2726
|
-
: g_default_server_keepalive_timeout_ms,
|
2727
|
-
0, 1}));
|
2728
|
-
if (is_client) {
|
2729
|
-
g_default_client_keepalive_permit_without_calls = value;
|
2730
|
-
} else {
|
2731
|
-
g_default_server_keepalive_permit_without_calls = value;
|
2732
|
-
}
|
2733
|
-
} else if (0 ==
|
2734
|
-
strcmp(args->args[i].key, GRPC_ARG_HTTP2_MAX_PING_STRIKES)) {
|
2735
|
-
g_default_max_ping_strikes = grpc_channel_arg_get_integer(
|
2736
|
-
&args->args[i], {g_default_max_ping_strikes, 0, INT_MAX});
|
2737
|
-
} else if (0 == strcmp(args->args[i].key,
|
2738
|
-
GRPC_ARG_HTTP2_MAX_PINGS_WITHOUT_DATA)) {
|
2739
|
-
g_default_max_pings_without_data = grpc_channel_arg_get_integer(
|
2740
|
-
&args->args[i], {g_default_max_pings_without_data, 0, INT_MAX});
|
2741
|
-
} else if (0 ==
|
2742
|
-
strcmp(
|
2743
|
-
args->args[i].key,
|
2744
|
-
GRPC_ARG_HTTP2_MIN_RECV_PING_INTERVAL_WITHOUT_DATA_MS)) {
|
2745
|
-
g_default_min_recv_ping_interval_without_data_ms =
|
2746
|
-
grpc_channel_arg_get_integer(
|
2747
|
-
&args->args[i],
|
2748
|
-
{g_default_min_recv_ping_interval_without_data_ms, 0, INT_MAX});
|
2749
|
-
}
|
2750
|
-
}
|
2912
|
+
grpc_chttp2_config_default_keepalive_args(grpc_core::ChannelArgs::FromC(args),
|
2913
|
+
is_client);
|
2914
|
+
}
|
2915
|
+
|
2916
|
+
void grpc_chttp2_config_default_keepalive_args(
|
2917
|
+
const grpc_core::ChannelArgs& channel_args, bool is_client) {
|
2918
|
+
const auto keepalive_time =
|
2919
|
+
std::max(grpc_core::Duration::Milliseconds(1),
|
2920
|
+
channel_args.GetDurationFromIntMillis(GRPC_ARG_KEEPALIVE_TIME_MS)
|
2921
|
+
.value_or(is_client ? g_default_client_keepalive_time
|
2922
|
+
: g_default_server_keepalive_time));
|
2923
|
+
if (is_client) {
|
2924
|
+
g_default_client_keepalive_time = keepalive_time;
|
2925
|
+
} else {
|
2926
|
+
g_default_server_keepalive_time = keepalive_time;
|
2927
|
+
}
|
2928
|
+
|
2929
|
+
const auto keepalive_timeout = std::max(
|
2930
|
+
grpc_core::Duration::Zero(),
|
2931
|
+
channel_args.GetDurationFromIntMillis(GRPC_ARG_KEEPALIVE_TIMEOUT_MS)
|
2932
|
+
.value_or(is_client ? g_default_client_keepalive_timeout
|
2933
|
+
: g_default_server_keepalive_timeout));
|
2934
|
+
if (is_client) {
|
2935
|
+
g_default_client_keepalive_timeout = keepalive_timeout;
|
2936
|
+
} else {
|
2937
|
+
g_default_server_keepalive_timeout = keepalive_timeout;
|
2751
2938
|
}
|
2939
|
+
|
2940
|
+
const bool keepalive_permit_without_calls =
|
2941
|
+
channel_args.GetBool(GRPC_ARG_KEEPALIVE_PERMIT_WITHOUT_CALLS)
|
2942
|
+
.value_or(is_client
|
2943
|
+
? g_default_client_keepalive_permit_without_calls
|
2944
|
+
: g_default_server_keepalive_permit_without_calls);
|
2945
|
+
if (is_client) {
|
2946
|
+
g_default_client_keepalive_permit_without_calls =
|
2947
|
+
keepalive_permit_without_calls;
|
2948
|
+
} else {
|
2949
|
+
g_default_server_keepalive_permit_without_calls =
|
2950
|
+
keepalive_permit_without_calls;
|
2951
|
+
}
|
2952
|
+
|
2953
|
+
grpc_core::Chttp2PingAbusePolicy::SetDefaults(channel_args);
|
2954
|
+
grpc_core::Chttp2PingRatePolicy::SetDefaults(channel_args);
|
2752
2955
|
}
|
2753
2956
|
|
2754
|
-
static void init_keepalive_ping(
|
2755
|
-
|
2756
|
-
|
2757
|
-
|
2957
|
+
static void init_keepalive_ping(
|
2958
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t) {
|
2959
|
+
auto* tp = t.get();
|
2960
|
+
tp->combiner->Run(grpc_core::InitTransportClosure<init_keepalive_ping_locked>(
|
2961
|
+
std::move(t), &tp->init_keepalive_ping_locked),
|
2962
|
+
absl::OkStatus());
|
2758
2963
|
}
|
2759
2964
|
|
2760
|
-
static void init_keepalive_ping_locked(
|
2761
|
-
|
2965
|
+
static void init_keepalive_ping_locked(
|
2966
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t,
|
2967
|
+
GRPC_UNUSED grpc_error_handle error) {
|
2762
2968
|
GPR_DEBUG_ASSERT(error.ok());
|
2763
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(arg);
|
2764
2969
|
GPR_ASSERT(t->keepalive_state == GRPC_CHTTP2_KEEPALIVE_STATE_WAITING);
|
2765
|
-
GPR_ASSERT(t->keepalive_ping_timer_handle
|
2766
|
-
t->keepalive_ping_timer_handle
|
2970
|
+
GPR_ASSERT(t->keepalive_ping_timer_handle != TaskHandle::kInvalid);
|
2971
|
+
t->keepalive_ping_timer_handle = TaskHandle::kInvalid;
|
2767
2972
|
if (t->destroying || !t->closed_with_error.ok()) {
|
2768
2973
|
t->keepalive_state = GRPC_CHTTP2_KEEPALIVE_STATE_DYING;
|
2769
2974
|
} else {
|
2770
|
-
if (t->keepalive_permit_without_calls ||
|
2771
|
-
grpc_chttp2_stream_map_size(&t->stream_map) > 0) {
|
2975
|
+
if (t->keepalive_permit_without_calls || !t->stream_map.empty()) {
|
2772
2976
|
t->keepalive_state = GRPC_CHTTP2_KEEPALIVE_STATE_PINGING;
|
2773
|
-
GRPC_CHTTP2_REF_TRANSPORT(t, "keepalive ping end");
|
2774
2977
|
send_keepalive_ping_locked(t);
|
2775
|
-
grpc_chttp2_initiate_write(t,
|
2978
|
+
grpc_chttp2_initiate_write(t.get(),
|
2979
|
+
GRPC_CHTTP2_INITIATE_WRITE_KEEPALIVE_PING);
|
2776
2980
|
} else {
|
2777
|
-
GRPC_CHTTP2_REF_TRANSPORT(t, "init keepalive ping");
|
2778
2981
|
t->keepalive_ping_timer_handle =
|
2779
2982
|
t->event_engine->RunAfter(t->keepalive_time, [t] {
|
2780
2983
|
grpc_core::ApplicationCallbackExecCtx callback_exec_ctx;
|
@@ -2783,48 +2986,21 @@ static void init_keepalive_ping_locked(void* arg,
|
|
2783
2986
|
});
|
2784
2987
|
}
|
2785
2988
|
}
|
2786
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "init keepalive ping");
|
2787
|
-
}
|
2788
|
-
|
2789
|
-
static void start_keepalive_ping(void* arg, grpc_error_handle error) {
|
2790
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(arg);
|
2791
|
-
t->combiner->Run(GRPC_CLOSURE_INIT(&t->start_keepalive_ping_locked,
|
2792
|
-
start_keepalive_ping_locked, t, nullptr),
|
2793
|
-
error);
|
2794
|
-
}
|
2795
|
-
|
2796
|
-
static void start_keepalive_ping_locked(void* arg, grpc_error_handle error) {
|
2797
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(arg);
|
2798
|
-
if (!error.ok()) {
|
2799
|
-
return;
|
2800
|
-
}
|
2801
|
-
if (t->channelz_socket != nullptr) {
|
2802
|
-
t->channelz_socket->RecordKeepaliveSent();
|
2803
|
-
}
|
2804
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_http_trace) ||
|
2805
|
-
GRPC_TRACE_FLAG_ENABLED(grpc_keepalive_trace)) {
|
2806
|
-
gpr_log(GPR_INFO, "%s: Start keepalive ping",
|
2807
|
-
std::string(t->peer_string.as_string_view()).c_str());
|
2808
|
-
}
|
2809
|
-
GRPC_CHTTP2_REF_TRANSPORT(t, "keepalive watchdog");
|
2810
|
-
t->keepalive_watchdog_timer_handle =
|
2811
|
-
t->event_engine->RunAfter(t->keepalive_timeout, [t] {
|
2812
|
-
grpc_core::ApplicationCallbackExecCtx callback_exec_ctx;
|
2813
|
-
grpc_core::ExecCtx exec_ctx;
|
2814
|
-
keepalive_watchdog_fired(t);
|
2815
|
-
});
|
2816
|
-
t->keepalive_ping_started = true;
|
2817
2989
|
}
|
2818
2990
|
|
2819
|
-
static void finish_keepalive_ping(
|
2820
|
-
|
2821
|
-
|
2822
|
-
|
2823
|
-
|
2991
|
+
static void finish_keepalive_ping(
|
2992
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t,
|
2993
|
+
grpc_error_handle error) {
|
2994
|
+
auto* tp = t.get();
|
2995
|
+
tp->combiner->Run(
|
2996
|
+
grpc_core::InitTransportClosure<finish_keepalive_ping_locked>(
|
2997
|
+
std::move(t), &tp->finish_keepalive_ping_locked),
|
2998
|
+
error);
|
2824
2999
|
}
|
2825
3000
|
|
2826
|
-
static void finish_keepalive_ping_locked(
|
2827
|
-
|
3001
|
+
static void finish_keepalive_ping_locked(
|
3002
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t,
|
3003
|
+
grpc_error_handle error) {
|
2828
3004
|
if (t->keepalive_state == GRPC_CHTTP2_KEEPALIVE_STATE_PINGING) {
|
2829
3005
|
if (error.ok()) {
|
2830
3006
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_http_trace) ||
|
@@ -2832,25 +3008,8 @@ static void finish_keepalive_ping_locked(void* arg, grpc_error_handle error) {
|
|
2832
3008
|
gpr_log(GPR_INFO, "%s: Finish keepalive ping",
|
2833
3009
|
std::string(t->peer_string.as_string_view()).c_str());
|
2834
3010
|
}
|
2835
|
-
if (!t->keepalive_ping_started) {
|
2836
|
-
// start_keepalive_ping_locked has not run yet. Reschedule
|
2837
|
-
// finish_keepalive_ping_locked for it to be run later.
|
2838
|
-
t->combiner->Run(
|
2839
|
-
GRPC_CLOSURE_INIT(&t->finish_keepalive_ping_locked,
|
2840
|
-
finish_keepalive_ping_locked, t, nullptr),
|
2841
|
-
error);
|
2842
|
-
return;
|
2843
|
-
}
|
2844
|
-
t->keepalive_ping_started = false;
|
2845
3011
|
t->keepalive_state = GRPC_CHTTP2_KEEPALIVE_STATE_WAITING;
|
2846
|
-
|
2847
|
-
if (t->event_engine->Cancel(*t->keepalive_watchdog_timer_handle)) {
|
2848
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "keepalive watchdog");
|
2849
|
-
t->keepalive_watchdog_timer_handle.reset();
|
2850
|
-
}
|
2851
|
-
}
|
2852
|
-
GPR_ASSERT(!t->keepalive_ping_timer_handle.has_value());
|
2853
|
-
GRPC_CHTTP2_REF_TRANSPORT(t, "init keepalive ping");
|
3012
|
+
GPR_ASSERT(t->keepalive_ping_timer_handle == TaskHandle::kInvalid);
|
2854
3013
|
t->keepalive_ping_timer_handle =
|
2855
3014
|
t->event_engine->RunAfter(t->keepalive_time, [t] {
|
2856
3015
|
grpc_core::ApplicationCallbackExecCtx callback_exec_ctx;
|
@@ -2859,57 +3018,24 @@ static void finish_keepalive_ping_locked(void* arg, grpc_error_handle error) {
|
|
2859
3018
|
});
|
2860
3019
|
}
|
2861
3020
|
}
|
2862
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "keepalive ping end");
|
2863
|
-
}
|
2864
|
-
|
2865
|
-
static void keepalive_watchdog_fired(grpc_chttp2_transport* t) {
|
2866
|
-
t->combiner->Run(
|
2867
|
-
GRPC_CLOSURE_INIT(&t->keepalive_watchdog_fired_locked,
|
2868
|
-
keepalive_watchdog_fired_locked, t, nullptr),
|
2869
|
-
absl::OkStatus());
|
2870
|
-
}
|
2871
|
-
|
2872
|
-
static void keepalive_watchdog_fired_locked(
|
2873
|
-
void* arg, GRPC_UNUSED grpc_error_handle error) {
|
2874
|
-
GPR_DEBUG_ASSERT(error.ok());
|
2875
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(arg);
|
2876
|
-
GPR_ASSERT(t->keepalive_watchdog_timer_handle.has_value());
|
2877
|
-
t->keepalive_watchdog_timer_handle.reset();
|
2878
|
-
if (t->keepalive_state == GRPC_CHTTP2_KEEPALIVE_STATE_PINGING) {
|
2879
|
-
gpr_log(GPR_INFO, "%s: Keepalive watchdog fired. Closing transport.",
|
2880
|
-
std::string(t->peer_string.as_string_view()).c_str());
|
2881
|
-
t->keepalive_state = GRPC_CHTTP2_KEEPALIVE_STATE_DYING;
|
2882
|
-
close_transport_locked(
|
2883
|
-
t, grpc_error_set_int(GRPC_ERROR_CREATE("keepalive watchdog timeout"),
|
2884
|
-
grpc_core::StatusIntProperty::kRpcStatus,
|
2885
|
-
GRPC_STATUS_UNAVAILABLE));
|
2886
|
-
} else {
|
2887
|
-
// If keepalive_state is not PINGING, we consider it as an error. Maybe the
|
2888
|
-
// cancellation failed in finish_keepalive_ping_locked. Users have seen
|
2889
|
-
// other states: https://github.com/grpc/grpc/issues/32085.
|
2890
|
-
gpr_log(GPR_ERROR, "keepalive_ping_end state error: %d (expect: %d)",
|
2891
|
-
t->keepalive_state, GRPC_CHTTP2_KEEPALIVE_STATE_PINGING);
|
2892
|
-
}
|
2893
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "keepalive watchdog");
|
2894
3021
|
}
|
2895
3022
|
|
2896
3023
|
static void maybe_reset_keepalive_ping_timer_locked(grpc_chttp2_transport* t) {
|
2897
|
-
if (t->keepalive_ping_timer_handle
|
2898
|
-
|
2899
|
-
|
2900
|
-
|
2901
|
-
|
2902
|
-
|
2903
|
-
|
2904
|
-
|
2905
|
-
}
|
2906
|
-
t->keepalive_ping_timer_handle =
|
2907
|
-
t->event_engine->RunAfter(t->keepalive_time, [t] {
|
2908
|
-
grpc_core::ApplicationCallbackExecCtx callback_exec_ctx;
|
2909
|
-
grpc_core::ExecCtx exec_ctx;
|
2910
|
-
init_keepalive_ping(t);
|
2911
|
-
});
|
3024
|
+
if (t->keepalive_ping_timer_handle != TaskHandle::kInvalid &&
|
3025
|
+
t->event_engine->Cancel(t->keepalive_ping_timer_handle)) {
|
3026
|
+
// Cancel succeeds, resets the keepalive ping timer. Note that we don't
|
3027
|
+
// need to Ref or Unref here since we still hold the Ref.
|
3028
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_http_trace) ||
|
3029
|
+
GRPC_TRACE_FLAG_ENABLED(grpc_keepalive_trace)) {
|
3030
|
+
gpr_log(GPR_INFO, "%s: Keepalive ping cancelled. Resetting timer.",
|
3031
|
+
std::string(t->peer_string.as_string_view()).c_str());
|
2912
3032
|
}
|
3033
|
+
t->keepalive_ping_timer_handle =
|
3034
|
+
t->event_engine->RunAfter(t->keepalive_time, [t = t->Ref()]() mutable {
|
3035
|
+
grpc_core::ApplicationCallbackExecCtx callback_exec_ctx;
|
3036
|
+
grpc_core::ExecCtx exec_ctx;
|
3037
|
+
init_keepalive_ping(std::move(t));
|
3038
|
+
});
|
2913
3039
|
}
|
2914
3040
|
}
|
2915
3041
|
|
@@ -2921,8 +3047,9 @@ static void connectivity_state_set(grpc_chttp2_transport* t,
|
|
2921
3047
|
grpc_connectivity_state state,
|
2922
3048
|
const absl::Status& status,
|
2923
3049
|
const char* reason) {
|
2924
|
-
GRPC_CHTTP2_IF_TRACING(
|
2925
|
-
|
3050
|
+
GRPC_CHTTP2_IF_TRACING(gpr_log(
|
3051
|
+
GPR_INFO, "transport %p set connectivity_state=%d; status=%s; reason=%s",
|
3052
|
+
t, state, status.ToString().c_str(), reason));
|
2926
3053
|
t->state_tracker.SetState(state, status, reason);
|
2927
3054
|
}
|
2928
3055
|
|
@@ -2930,16 +3057,14 @@ static void connectivity_state_set(grpc_chttp2_transport* t,
|
|
2930
3057
|
// POLLSET STUFF
|
2931
3058
|
//
|
2932
3059
|
|
2933
|
-
|
2934
|
-
|
2935
|
-
|
2936
|
-
grpc_endpoint_add_to_pollset(t->ep, pollset);
|
3060
|
+
void grpc_chttp2_transport::SetPollset(grpc_stream* /*gs*/,
|
3061
|
+
grpc_pollset* pollset) {
|
3062
|
+
grpc_endpoint_add_to_pollset(ep, pollset);
|
2937
3063
|
}
|
2938
3064
|
|
2939
|
-
|
2940
|
-
|
2941
|
-
|
2942
|
-
grpc_endpoint_add_to_pollset_set(t->ep, pollset_set);
|
3065
|
+
void grpc_chttp2_transport::SetPollsetSet(grpc_stream* /*gs*/,
|
3066
|
+
grpc_pollset_set* pollset_set) {
|
3067
|
+
grpc_endpoint_add_to_pollset_set(ep, pollset_set);
|
2943
3068
|
}
|
2944
3069
|
|
2945
3070
|
//
|
@@ -2949,18 +3074,17 @@ static void set_pollset_set(grpc_transport* gt, grpc_stream* /*gs*/,
|
|
2949
3074
|
static void post_benign_reclaimer(grpc_chttp2_transport* t) {
|
2950
3075
|
if (!t->benign_reclaimer_registered) {
|
2951
3076
|
t->benign_reclaimer_registered = true;
|
2952
|
-
GRPC_CHTTP2_REF_TRANSPORT(t, "benign_reclaimer");
|
2953
3077
|
t->memory_owner.PostReclaimer(
|
2954
3078
|
grpc_core::ReclamationPass::kBenign,
|
2955
|
-
[t](
|
3079
|
+
[t = t->Ref()](
|
3080
|
+
absl::optional<grpc_core::ReclamationSweep> sweep) mutable {
|
2956
3081
|
if (sweep.has_value()) {
|
2957
|
-
|
2958
|
-
|
2959
|
-
|
2960
|
-
|
2961
|
-
|
2962
|
-
|
2963
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "benign_reclaimer");
|
3082
|
+
auto* tp = t.get();
|
3083
|
+
tp->active_reclamation = std::move(*sweep);
|
3084
|
+
tp->combiner->Run(
|
3085
|
+
grpc_core::InitTransportClosure<benign_reclaimer_locked>(
|
3086
|
+
std::move(t), &tp->benign_reclaimer_locked),
|
3087
|
+
absl::OkStatus());
|
2964
3088
|
}
|
2965
3089
|
});
|
2966
3090
|
}
|
@@ -2969,34 +3093,33 @@ static void post_benign_reclaimer(grpc_chttp2_transport* t) {
|
|
2969
3093
|
static void post_destructive_reclaimer(grpc_chttp2_transport* t) {
|
2970
3094
|
if (!t->destructive_reclaimer_registered) {
|
2971
3095
|
t->destructive_reclaimer_registered = true;
|
2972
|
-
GRPC_CHTTP2_REF_TRANSPORT(t, "destructive_reclaimer");
|
2973
3096
|
t->memory_owner.PostReclaimer(
|
2974
3097
|
grpc_core::ReclamationPass::kDestructive,
|
2975
|
-
[t](
|
3098
|
+
[t = t->Ref()](
|
3099
|
+
absl::optional<grpc_core::ReclamationSweep> sweep) mutable {
|
2976
3100
|
if (sweep.has_value()) {
|
2977
|
-
|
2978
|
-
|
2979
|
-
|
2980
|
-
|
2981
|
-
|
2982
|
-
|
2983
|
-
} else {
|
2984
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "destructive_reclaimer");
|
3101
|
+
auto* tp = t.get();
|
3102
|
+
tp->active_reclamation = std::move(*sweep);
|
3103
|
+
tp->combiner->Run(
|
3104
|
+
grpc_core::InitTransportClosure<destructive_reclaimer_locked>(
|
3105
|
+
std::move(t), &tp->destructive_reclaimer_locked),
|
3106
|
+
absl::OkStatus());
|
2985
3107
|
}
|
2986
3108
|
});
|
2987
3109
|
}
|
2988
3110
|
}
|
2989
3111
|
|
2990
|
-
static void benign_reclaimer_locked(
|
2991
|
-
|
2992
|
-
|
3112
|
+
static void benign_reclaimer_locked(
|
3113
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t,
|
3114
|
+
grpc_error_handle error) {
|
3115
|
+
if (error.ok() && t->stream_map.empty()) {
|
2993
3116
|
// Channel with no active streams: send a goaway to try and make it
|
2994
3117
|
// disconnect cleanly
|
2995
3118
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_resource_quota_trace)) {
|
2996
3119
|
gpr_log(GPR_INFO, "HTTP2: %s - send goaway to free memory",
|
2997
3120
|
std::string(t->peer_string.as_string_view()).c_str());
|
2998
3121
|
}
|
2999
|
-
send_goaway(t,
|
3122
|
+
send_goaway(t.get(),
|
3000
3123
|
grpc_error_set_int(GRPC_ERROR_CREATE("Buffers full"),
|
3001
3124
|
grpc_core::StatusIntProperty::kHttp2Error,
|
3002
3125
|
GRPC_HTTP2_ENHANCE_YOUR_CALM),
|
@@ -3006,43 +3129,42 @@ static void benign_reclaimer_locked(void* arg, grpc_error_handle error) {
|
|
3006
3129
|
"HTTP2: %s - skip benign reclamation, there are still %" PRIdPTR
|
3007
3130
|
" streams",
|
3008
3131
|
std::string(t->peer_string.as_string_view()).c_str(),
|
3009
|
-
|
3132
|
+
t->stream_map.size());
|
3010
3133
|
}
|
3011
3134
|
t->benign_reclaimer_registered = false;
|
3012
3135
|
if (error != absl::CancelledError()) {
|
3013
3136
|
t->active_reclamation.Finish();
|
3014
3137
|
}
|
3015
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "benign_reclaimer");
|
3016
3138
|
}
|
3017
3139
|
|
3018
|
-
static void destructive_reclaimer_locked(
|
3019
|
-
|
3020
|
-
|
3140
|
+
static void destructive_reclaimer_locked(
|
3141
|
+
grpc_core::RefCountedPtr<grpc_chttp2_transport> t,
|
3142
|
+
grpc_error_handle error) {
|
3021
3143
|
t->destructive_reclaimer_registered = false;
|
3022
|
-
if (error.ok() &&
|
3023
|
-
|
3024
|
-
|
3144
|
+
if (error.ok() && !t->stream_map.empty()) {
|
3145
|
+
// As stream_map is a hash map, this selects effectively a random stream.
|
3146
|
+
grpc_chttp2_stream* s = t->stream_map.begin()->second;
|
3025
3147
|
if (GRPC_TRACE_FLAG_ENABLED(grpc_resource_quota_trace)) {
|
3026
3148
|
gpr_log(GPR_INFO, "HTTP2: %s - abandon stream id %d",
|
3027
3149
|
std::string(t->peer_string.as_string_view()).c_str(), s->id);
|
3028
3150
|
}
|
3029
3151
|
grpc_chttp2_cancel_stream(
|
3030
|
-
t, s,
|
3152
|
+
t.get(), s,
|
3031
3153
|
grpc_error_set_int(GRPC_ERROR_CREATE("Buffers full"),
|
3032
3154
|
grpc_core::StatusIntProperty::kHttp2Error,
|
3033
|
-
GRPC_HTTP2_ENHANCE_YOUR_CALM)
|
3034
|
-
|
3155
|
+
GRPC_HTTP2_ENHANCE_YOUR_CALM),
|
3156
|
+
false);
|
3157
|
+
if (!t->stream_map.empty()) {
|
3035
3158
|
// Since we cancel one stream per destructive reclamation, if
|
3036
3159
|
// there are more streams left, we can immediately post a new
|
3037
3160
|
// reclaimer in case the resource quota needs to free more
|
3038
3161
|
// memory
|
3039
|
-
post_destructive_reclaimer(t);
|
3162
|
+
post_destructive_reclaimer(t.get());
|
3040
3163
|
}
|
3041
3164
|
}
|
3042
3165
|
if (error != absl::CancelledError()) {
|
3043
3166
|
t->active_reclamation.Finish();
|
3044
3167
|
}
|
3045
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "destructive_reclaimer");
|
3046
3168
|
}
|
3047
3169
|
|
3048
3170
|
//
|
@@ -3100,53 +3222,46 @@ const char* grpc_chttp2_initiate_write_reason_string(
|
|
3100
3222
|
GPR_UNREACHABLE_CODE(return "unknown");
|
3101
3223
|
}
|
3102
3224
|
|
3103
|
-
|
3104
|
-
|
3225
|
+
grpc_endpoint* grpc_chttp2_transport::GetEndpoint() { return ep; }
|
3226
|
+
|
3227
|
+
size_t grpc_chttp2_transport::SizeOfStream() const {
|
3228
|
+
return sizeof(grpc_chttp2_stream);
|
3105
3229
|
}
|
3106
3230
|
|
3107
|
-
|
3108
|
-
|
3109
|
-
|
3110
|
-
|
3111
|
-
nullptr,
|
3112
|
-
set_pollset,
|
3113
|
-
set_pollset_set,
|
3114
|
-
perform_stream_op,
|
3115
|
-
perform_transport_op,
|
3116
|
-
destroy_stream,
|
3117
|
-
destroy_transport,
|
3118
|
-
chttp2_get_endpoint};
|
3231
|
+
bool grpc_chttp2_transport::
|
3232
|
+
HackyDisableStreamOpBatchCoalescingInConnectedChannel() const {
|
3233
|
+
return false;
|
3234
|
+
}
|
3119
3235
|
|
3120
|
-
|
3236
|
+
absl::string_view grpc_chttp2_transport::GetTransportName() const {
|
3237
|
+
return "chttp2";
|
3238
|
+
}
|
3121
3239
|
|
3122
3240
|
grpc_core::RefCountedPtr<grpc_core::channelz::SocketNode>
|
3123
|
-
grpc_chttp2_transport_get_socket_node(
|
3241
|
+
grpc_chttp2_transport_get_socket_node(grpc_core::Transport* transport) {
|
3124
3242
|
grpc_chttp2_transport* t =
|
3125
3243
|
reinterpret_cast<grpc_chttp2_transport*>(transport);
|
3126
3244
|
return t->channelz_socket;
|
3127
3245
|
}
|
3128
3246
|
|
3129
|
-
|
3247
|
+
grpc_core::Transport* grpc_create_chttp2_transport(
|
3130
3248
|
const grpc_core::ChannelArgs& channel_args, grpc_endpoint* ep,
|
3131
3249
|
bool is_client) {
|
3132
|
-
|
3133
|
-
return &t->base;
|
3250
|
+
return new grpc_chttp2_transport(channel_args, ep, is_client);
|
3134
3251
|
}
|
3135
3252
|
|
3136
3253
|
void grpc_chttp2_transport_start_reading(
|
3137
|
-
|
3254
|
+
grpc_core::Transport* transport, grpc_slice_buffer* read_buffer,
|
3138
3255
|
grpc_closure* notify_on_receive_settings, grpc_closure* notify_on_close) {
|
3139
|
-
|
3140
|
-
reinterpret_cast<grpc_chttp2_transport*>(transport);
|
3141
|
-
GRPC_CHTTP2_REF_TRANSPORT(
|
3142
|
-
t, "reading_action"); // matches unref inside reading_action
|
3256
|
+
auto t = reinterpret_cast<grpc_chttp2_transport*>(transport)->Ref();
|
3143
3257
|
if (read_buffer != nullptr) {
|
3144
3258
|
grpc_slice_buffer_move_into(read_buffer, &t->read_buffer);
|
3145
3259
|
gpr_free(read_buffer);
|
3146
3260
|
}
|
3147
|
-
t
|
3148
|
-
|
3149
|
-
|
3261
|
+
auto* tp = t.get();
|
3262
|
+
tp->combiner->Run(
|
3263
|
+
grpc_core::NewClosure([t = std::move(t), notify_on_receive_settings,
|
3264
|
+
notify_on_close](grpc_error_handle) mutable {
|
3150
3265
|
if (!t->closed_with_error.ok()) {
|
3151
3266
|
if (notify_on_receive_settings != nullptr) {
|
3152
3267
|
grpc_core::ExecCtx::Run(DEBUG_LOCATION, notify_on_receive_settings,
|
@@ -3156,12 +3271,11 @@ void grpc_chttp2_transport_start_reading(
|
|
3156
3271
|
grpc_core::ExecCtx::Run(DEBUG_LOCATION, notify_on_close,
|
3157
3272
|
t->closed_with_error);
|
3158
3273
|
}
|
3159
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "reading_action");
|
3160
3274
|
return;
|
3161
3275
|
}
|
3162
3276
|
t->notify_on_receive_settings = notify_on_receive_settings;
|
3163
3277
|
t->notify_on_close = notify_on_close;
|
3164
|
-
read_action_locked(t, absl::OkStatus());
|
3278
|
+
read_action_locked(std::move(t), absl::OkStatus());
|
3165
3279
|
}),
|
3166
3280
|
absl::OkStatus());
|
3167
3281
|
}
|