grpc 1.50.0-x86_64-linux → 1.52.0.pre2-x86_64-linux
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of grpc might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/grpc_c.32-msvcrt.ruby +0 -0
- data/grpc_c.64-msvcrt.ruby +0 -0
- data/grpc_c.64-ucrt.ruby +0 -0
- data/src/ruby/ext/grpc/{ext-export-truffleruby.clang → ext-export-truffleruby-with-ruby-abi-version.clang} +0 -0
- data/src/ruby/ext/grpc/{ext-export-truffleruby.gcc → ext-export-truffleruby-with-ruby-abi-version.gcc} +0 -0
- data/src/ruby/ext/grpc/ext-export-with-ruby-abi-version.clang +2 -0
- data/src/ruby/ext/grpc/ext-export-with-ruby-abi-version.gcc +7 -0
- data/src/ruby/ext/grpc/ext-export.clang +0 -1
- data/src/ruby/ext/grpc/ext-export.gcc +1 -2
- data/src/ruby/ext/grpc/extconf.rb +47 -2
- data/src/ruby/ext/grpc/rb_call.c +1 -0
- data/src/ruby/ext/grpc/rb_channel.c +1 -0
- data/src/ruby/ext/grpc/rb_channel_args.c +1 -0
- data/src/ruby/ext/grpc/rb_compression_options.c +1 -1
- data/src/ruby/ext/grpc/rb_grpc.c +1 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +38 -38
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +59 -59
- data/src/ruby/lib/grpc/2.7/grpc_c.so +0 -0
- data/src/ruby/lib/grpc/3.0/grpc_c.so +0 -0
- data/src/ruby/lib/grpc/3.1/grpc_c.so +0 -0
- data/src/ruby/lib/grpc/{grpc_c.so → 3.2/grpc_c.so} +0 -0
- data/src/ruby/lib/grpc/generic/bidi_call.rb +2 -0
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/spec/channel_spec.rb +0 -43
- data/src/ruby/spec/client_server_spec.rb +20 -8
- data/src/ruby/spec/generic/active_call_spec.rb +12 -3
- metadata +28 -2564
- data/.yardopts +0 -1
- data/Makefile +0 -3169
- data/include/grpc/byte_buffer.h +0 -27
- data/include/grpc/byte_buffer_reader.h +0 -26
- data/include/grpc/census.h +0 -40
- data/include/grpc/compression.h +0 -75
- data/include/grpc/event_engine/README.md +0 -38
- data/include/grpc/event_engine/endpoint_config.h +0 -49
- data/include/grpc/event_engine/event_engine.h +0 -446
- data/include/grpc/event_engine/internal/memory_allocator_impl.h +0 -68
- data/include/grpc/event_engine/memory_allocator.h +0 -211
- data/include/grpc/event_engine/memory_request.h +0 -57
- data/include/grpc/event_engine/port.h +0 -39
- data/include/grpc/event_engine/slice.h +0 -286
- data/include/grpc/event_engine/slice_buffer.h +0 -118
- data/include/grpc/fork.h +0 -26
- data/include/grpc/grpc.h +0 -605
- data/include/grpc/grpc_cronet.h +0 -38
- data/include/grpc/grpc_posix.h +0 -63
- data/include/grpc/grpc_security.h +0 -1270
- data/include/grpc/grpc_security_constants.h +0 -152
- data/include/grpc/impl/codegen/README.md +0 -22
- data/include/grpc/impl/codegen/atm.h +0 -97
- data/include/grpc/impl/codegen/atm_gcc_atomic.h +0 -84
- data/include/grpc/impl/codegen/atm_gcc_sync.h +0 -85
- data/include/grpc/impl/codegen/atm_windows.h +0 -132
- data/include/grpc/impl/codegen/byte_buffer.h +0 -103
- data/include/grpc/impl/codegen/byte_buffer_reader.h +0 -44
- data/include/grpc/impl/codegen/compression_types.h +0 -109
- data/include/grpc/impl/codegen/connectivity_state.h +0 -47
- data/include/grpc/impl/codegen/fork.h +0 -50
- data/include/grpc/impl/codegen/gpr_slice.h +0 -71
- data/include/grpc/impl/codegen/gpr_types.h +0 -62
- data/include/grpc/impl/codegen/grpc_types.h +0 -818
- data/include/grpc/impl/codegen/log.h +0 -112
- data/include/grpc/impl/codegen/port_platform.h +0 -782
- data/include/grpc/impl/codegen/propagation_bits.h +0 -54
- data/include/grpc/impl/codegen/slice.h +0 -132
- data/include/grpc/impl/codegen/status.h +0 -156
- data/include/grpc/impl/codegen/sync.h +0 -68
- data/include/grpc/impl/codegen/sync_abseil.h +0 -38
- data/include/grpc/impl/codegen/sync_custom.h +0 -40
- data/include/grpc/impl/codegen/sync_generic.h +0 -51
- data/include/grpc/impl/codegen/sync_posix.h +0 -54
- data/include/grpc/impl/codegen/sync_windows.h +0 -42
- data/include/grpc/load_reporting.h +0 -48
- data/include/grpc/module.modulemap +0 -64
- data/include/grpc/slice.h +0 -161
- data/include/grpc/slice_buffer.h +0 -84
- data/include/grpc/status.h +0 -26
- data/include/grpc/support/alloc.h +0 -52
- data/include/grpc/support/atm.h +0 -26
- data/include/grpc/support/atm_gcc_atomic.h +0 -26
- data/include/grpc/support/atm_gcc_sync.h +0 -26
- data/include/grpc/support/atm_windows.h +0 -26
- data/include/grpc/support/cpu.h +0 -44
- data/include/grpc/support/log.h +0 -26
- data/include/grpc/support/log_windows.h +0 -38
- data/include/grpc/support/port_platform.h +0 -24
- data/include/grpc/support/string_util.h +0 -51
- data/include/grpc/support/sync.h +0 -282
- data/include/grpc/support/sync_abseil.h +0 -26
- data/include/grpc/support/sync_custom.h +0 -26
- data/include/grpc/support/sync_generic.h +0 -26
- data/include/grpc/support/sync_posix.h +0 -26
- data/include/grpc/support/sync_windows.h +0 -26
- data/include/grpc/support/thd_id.h +0 -44
- data/include/grpc/support/time.h +0 -92
- data/include/grpc/support/workaround_list.h +0 -31
- data/src/core/ext/filters/census/grpc_context.cc +0 -42
- data/src/core/ext/filters/channel_idle/channel_idle_filter.cc +0 -309
- data/src/core/ext/filters/channel_idle/channel_idle_filter.h +0 -141
- data/src/core/ext/filters/channel_idle/idle_filter_state.cc +0 -96
- data/src/core/ext/filters/channel_idle/idle_filter_state.h +0 -68
- data/src/core/ext/filters/client_channel/backend_metric.cc +0 -84
- data/src/core/ext/filters/client_channel/backend_metric.h +0 -47
- data/src/core/ext/filters/client_channel/backup_poller.cc +0 -187
- data/src/core/ext/filters/client_channel/backup_poller.h +0 -40
- data/src/core/ext/filters/client_channel/channel_connectivity.cc +0 -242
- data/src/core/ext/filters/client_channel/client_channel.cc +0 -3208
- data/src/core/ext/filters/client_channel/client_channel.h +0 -627
- data/src/core/ext/filters/client_channel/client_channel_channelz.cc +0 -94
- data/src/core/ext/filters/client_channel/client_channel_channelz.h +0 -85
- data/src/core/ext/filters/client_channel/client_channel_factory.cc +0 -32
- data/src/core/ext/filters/client_channel/client_channel_factory.h +0 -46
- data/src/core/ext/filters/client_channel/client_channel_plugin.cc +0 -42
- data/src/core/ext/filters/client_channel/config_selector.cc +0 -60
- data/src/core/ext/filters/client_channel/config_selector.h +0 -155
- data/src/core/ext/filters/client_channel/connector.h +0 -84
- data/src/core/ext/filters/client_channel/dynamic_filters.cc +0 -202
- data/src/core/ext/filters/client_channel/dynamic_filters.h +0 -109
- data/src/core/ext/filters/client_channel/global_subchannel_pool.cc +0 -65
- data/src/core/ext/filters/client_channel/global_subchannel_pool.h +0 -63
- data/src/core/ext/filters/client_channel/health/health_check_client.cc +0 -176
- 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 -201
- data/src/core/ext/filters/client_channel/http_proxy.h +0 -52
- data/src/core/ext/filters/client_channel/lb_policy/address_filtering.cc +0 -101
- data/src/core/ext/filters/client_channel/lb_policy/address_filtering.h +0 -103
- data/src/core/ext/filters/client_channel/lb_policy/backend_metric_data.h +0 -49
- data/src/core/ext/filters/client_channel/lb_policy/child_policy_handler.cc +0 -320
- data/src/core/ext/filters/client_channel/lb_policy/child_policy_handler.h +0 -89
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.cc +0 -149
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.h +0 -30
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +0 -1942
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.h +0 -40
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.cc +0 -89
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.h +0 -41
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.cc +0 -92
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.h +0 -82
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc +0 -202
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h +0 -76
- data/src/core/ext/filters/client_channel/lb_policy/oob_backend_metric.cc +0 -416
- data/src/core/ext/filters/client_channel/lb_policy/oob_backend_metric.h +0 -57
- data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.cc +0 -1140
- data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.h +0 -94
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +0 -545
- data/src/core/ext/filters/client_channel/lb_policy/priority/priority.cc +0 -954
- data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.cc +0 -891
- data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.h +0 -47
- data/src/core/ext/filters/client_channel/lb_policy/rls/rls.cc +0 -2513
- data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +0 -531
- data/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h +0 -439
- data/src/core/ext/filters/client_channel/lb_policy/weighted_target/weighted_target.cc +0 -775
- data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +0 -772
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds.h +0 -66
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_channel_args.h +0 -29
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_impl.cc +0 -800
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_manager.cc +0 -731
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc +0 -1300
- data/src/core/ext/filters/client_channel/local_subchannel_pool.cc +0 -60
- data/src/core/ext/filters/client_channel/local_subchannel_pool.h +0 -59
- data/src/core/ext/filters/client_channel/resolver/binder/binder_resolver.cc +0 -149
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc +0 -877
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.h +0 -91
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +0 -116
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +0 -883
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc +0 -1206
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h +0 -137
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_posix.cc +0 -29
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_windows.cc +0 -35
- data/src/core/ext/filters/client_channel/resolver/dns/dns_resolver_selection.cc +0 -30
- data/src/core/ext/filters/client_channel/resolver/dns/dns_resolver_selection.h +0 -30
- data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc +0 -203
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc +0 -370
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.h +0 -110
- data/src/core/ext/filters/client_channel/resolver/google_c2p/google_c2p_resolver.cc +0 -464
- data/src/core/ext/filters/client_channel/resolver/polling_resolver.cc +0 -259
- data/src/core/ext/filters/client_channel/resolver/polling_resolver.h +0 -123
- data/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.cc +0 -193
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +0 -1130
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.h +0 -30
- data/src/core/ext/filters/client_channel/resolver_result_parsing.cc +0 -188
- data/src/core/ext/filters/client_channel/resolver_result_parsing.h +0 -108
- data/src/core/ext/filters/client_channel/retry_filter.cc +0 -2683
- data/src/core/ext/filters/client_channel/retry_filter.h +0 -31
- data/src/core/ext/filters/client_channel/retry_service_config.cc +0 -324
- data/src/core/ext/filters/client_channel/retry_service_config.h +0 -108
- data/src/core/ext/filters/client_channel/retry_throttle.cc +0 -141
- data/src/core/ext/filters/client_channel/retry_throttle.h +0 -91
- data/src/core/ext/filters/client_channel/service_config_channel_arg_filter.cc +0 -174
- data/src/core/ext/filters/client_channel/subchannel.cc +0 -978
- data/src/core/ext/filters/client_channel/subchannel.h +0 -435
- data/src/core/ext/filters/client_channel/subchannel_interface_internal.h +0 -38
- data/src/core/ext/filters/client_channel/subchannel_pool_interface.cc +0 -66
- data/src/core/ext/filters/client_channel/subchannel_pool_interface.h +0 -100
- data/src/core/ext/filters/client_channel/subchannel_stream_client.cc +0 -471
- data/src/core/ext/filters/client_channel/subchannel_stream_client.h +0 -222
- data/src/core/ext/filters/deadline/deadline_filter.cc +0 -401
- data/src/core/ext/filters/deadline/deadline_filter.h +0 -93
- data/src/core/ext/filters/fault_injection/fault_injection_filter.cc +0 -279
- data/src/core/ext/filters/fault_injection/fault_injection_filter.h +0 -75
- data/src/core/ext/filters/fault_injection/service_config_parser.cc +0 -187
- data/src/core/ext/filters/fault_injection/service_config_parser.h +0 -104
- data/src/core/ext/filters/http/client/http_client_filter.cc +0 -159
- data/src/core/ext/filters/http/client/http_client_filter.h +0 -61
- data/src/core/ext/filters/http/client_authority_filter.cc +0 -90
- data/src/core/ext/filters/http/client_authority_filter.h +0 -56
- data/src/core/ext/filters/http/http_filters_plugin.cc +0 -97
- data/src/core/ext/filters/http/message_compress/message_compress_filter.cc +0 -332
- data/src/core/ext/filters/http/message_compress/message_compress_filter.h +0 -52
- data/src/core/ext/filters/http/message_compress/message_decompress_filter.cc +0 -322
- data/src/core/ext/filters/http/message_compress/message_decompress_filter.h +0 -32
- data/src/core/ext/filters/http/server/http_server_filter.cc +0 -160
- data/src/core/ext/filters/http/server/http_server_filter.h +0 -63
- data/src/core/ext/filters/message_size/message_size_filter.cc +0 -404
- data/src/core/ext/filters/message_size/message_size_filter.h +0 -83
- data/src/core/ext/filters/rbac/rbac_filter.cc +0 -174
- data/src/core/ext/filters/rbac/rbac_filter.h +0 -84
- data/src/core/ext/filters/rbac/rbac_service_config_parser.cc +0 -621
- data/src/core/ext/filters/rbac/rbac_service_config_parser.h +0 -85
- data/src/core/ext/filters/server_config_selector/server_config_selector.cc +0 -62
- data/src/core/ext/filters/server_config_selector/server_config_selector.h +0 -85
- data/src/core/ext/filters/server_config_selector/server_config_selector_filter.cc +0 -161
- data/src/core/ext/filters/server_config_selector/server_config_selector_filter.h +0 -33
- data/src/core/ext/transport/chttp2/alpn/alpn.cc +0 -45
- data/src/core/ext/transport/chttp2/alpn/alpn.h +0 -36
- data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +0 -438
- data/src/core/ext/transport/chttp2/client/chttp2_connector.h +0 -77
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +0 -1109
- data/src/core/ext/transport/chttp2/server/chttp2_server.h +0 -47
- data/src/core/ext/transport/chttp2/transport/bin_decoder.cc +0 -252
- data/src/core/ext/transport/chttp2/transport/bin_decoder.h +0 -58
- data/src/core/ext/transport/chttp2/transport/bin_encoder.cc +0 -232
- data/src/core/ext/transport/chttp2/transport/bin_encoder.h +0 -42
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +0 -3004
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +0 -77
- 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/decode_huff.cc +0 -287
- data/src/core/ext/transport/chttp2/transport/decode_huff.h +0 -1018
- data/src/core/ext/transport/chttp2/transport/flow_control.cc +0 -411
- data/src/core/ext/transport/chttp2/transport/flow_control.h +0 -385
- data/src/core/ext/transport/chttp2/transport/frame.h +0 -43
- data/src/core/ext/transport/chttp2/transport/frame_data.cc +0 -155
- data/src/core/ext/transport/chttp2/transport/frame_data.h +0 -60
- data/src/core/ext/transport/chttp2/transport/frame_goaway.cc +0 -190
- data/src/core/ext/transport/chttp2/transport/frame_goaway.h +0 -65
- data/src/core/ext/transport/chttp2/transport/frame_ping.cc +0 -136
- data/src/core/ext/transport/chttp2/transport/frame_ping.h +0 -49
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc +0 -127
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.h +0 -54
- data/src/core/ext/transport/chttp2/transport/frame_settings.cc +0 -243
- data/src/core/ext/transport/chttp2/transport/frame_settings.h +0 -66
- data/src/core/ext/transport/chttp2/transport/frame_window_update.cc +0 -121
- data/src/core/ext/transport/chttp2/transport/frame_window_update.h +0 -46
- data/src/core/ext/transport/chttp2/transport/hpack_constants.h +0 -47
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +0 -668
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.h +0 -236
- data/src/core/ext/transport/chttp2/transport/hpack_encoder_table.cc +0 -88
- data/src/core/ext/transport/chttp2/transport/hpack_encoder_table.h +0 -80
- data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +0 -1390
- data/src/core/ext/transport/chttp2/transport/hpack_parser.h +0 -142
- data/src/core/ext/transport/chttp2/transport/hpack_parser_table.cc +0 -246
- data/src/core/ext/transport/chttp2/transport/hpack_parser_table.h +0 -137
- data/src/core/ext/transport/chttp2/transport/http2_settings.cc +0 -62
- data/src/core/ext/transport/chttp2/transport/http2_settings.h +0 -60
- data/src/core/ext/transport/chttp2/transport/huffsyms.cc +0 -92
- data/src/core/ext/transport/chttp2/transport/huffsyms.h +0 -32
- data/src/core/ext/transport/chttp2/transport/internal.h +0 -787
- data/src/core/ext/transport/chttp2/transport/parsing.cc +0 -731
- data/src/core/ext/transport/chttp2/transport/stream_lists.cc +0 -216
- 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/transport/chttp2/transport/varint.cc +0 -62
- data/src/core/ext/transport/chttp2/transport/varint.h +0 -73
- data/src/core/ext/transport/chttp2/transport/writing.cc +0 -683
- data/src/core/ext/transport/inproc/inproc_plugin.cc +0 -23
- data/src/core/ext/transport/inproc/inproc_transport.cc +0 -1292
- data/src/core/ext/transport/inproc/inproc_transport.h +0 -34
- 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 -121
- data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.h +0 -569
- 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 -352
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.h +0 -1768
- 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 -413
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.h +0 -2251
- 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 -544
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.h +0 -3066
- 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 -145
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.h +0 -664
- 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 -220
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.h +0 -1255
- 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 -323
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.h +0 -1759
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.c +0 -40
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.h +0 -88
- 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 -47
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.h +0 -148
- 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 -144
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.h +0 -647
- 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 -189
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.h +0 -1041
- 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 -63
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.h +0 -238
- 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 -221
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.h +0 -1094
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.c +0 -86
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.h +0 -402
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.c +0 -1096
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.h +0 -6440
- 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 -44
- data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.h +0 -92
- 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 -98
- 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 -54
- data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.h +0 -150
- 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 -55
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.h +0 -172
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.c +0 -471
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +0 -2731
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.c +0 -52
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.h +0 -168
- 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 -191
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +0 -1063
- 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 -280
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.h +0 -1375
- 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/http_inputs.upb.c +0 -74
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.h +0 -230
- 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/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 -41
- 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/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 -73
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.h +0 -191
- data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.c +0 -47
- 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/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/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/typed_struct.upb.c +0 -46
- 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 -127
- 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 -256
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump_shared.upbdefs.h +0 -115
- 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 -397
- 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 -559
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.h +0 -155
- 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 -112
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.h +0 -65
- 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 -270
- 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 -228
- 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 -300
- 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 -41
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/proxy_protocol.upbdefs.h +0 -35
- 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 -57
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/socket_option.upbdefs.h +0 -35
- 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 -128
- 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 -220
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.h +0 -65
- 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 -88
- 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 -194
- data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.h +0 -75
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.c +0 -112
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.h +0 -40
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.c +0 -939
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.h +0 -305
- 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 -54
- 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 -47
- 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 -77
- 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 -78
- 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/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +0 -562
- 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/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 -254
- 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 -197
- 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/http_inputs.upbdefs.c +0 -52
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/http_inputs.upbdefs.h +0 -50
- 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/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 -38
- 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/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/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/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/typed_struct.upbdefs.c +0 -40
- data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.h +0 -35
- data/src/core/ext/xds/certificate_provider_store.cc +0 -159
- data/src/core/ext/xds/certificate_provider_store.h +0 -138
- data/src/core/ext/xds/file_watcher_certificate_provider_factory.cc +0 -153
- data/src/core/ext/xds/file_watcher_certificate_provider_factory.h +0 -77
- data/src/core/ext/xds/upb_utils.h +0 -45
- data/src/core/ext/xds/xds_api.cc +0 -699
- data/src/core/ext/xds/xds_api.h +0 -196
- data/src/core/ext/xds/xds_bootstrap.cc +0 -38
- data/src/core/ext/xds/xds_bootstrap.h +0 -89
- data/src/core/ext/xds/xds_bootstrap_grpc.cc +0 -370
- data/src/core/ext/xds/xds_bootstrap_grpc.h +0 -169
- data/src/core/ext/xds/xds_certificate_provider.cc +0 -419
- data/src/core/ext/xds/xds_certificate_provider.h +0 -183
- data/src/core/ext/xds/xds_channel_args.h +0 -32
- data/src/core/ext/xds/xds_channel_stack_modifier.cc +0 -120
- data/src/core/ext/xds/xds_channel_stack_modifier.h +0 -65
- data/src/core/ext/xds/xds_client.cc +0 -2000
- data/src/core/ext/xds/xds_client.h +0 -336
- data/src/core/ext/xds/xds_client_grpc.cc +0 -229
- data/src/core/ext/xds/xds_client_grpc.h +0 -79
- data/src/core/ext/xds/xds_client_stats.cc +0 -159
- data/src/core/ext/xds/xds_client_stats.h +0 -242
- data/src/core/ext/xds/xds_cluster.cc +0 -551
- data/src/core/ext/xds/xds_cluster.h +0 -120
- data/src/core/ext/xds/xds_cluster_specifier_plugin.cc +0 -149
- data/src/core/ext/xds/xds_cluster_specifier_plugin.h +0 -73
- data/src/core/ext/xds/xds_common_types.cc +0 -434
- data/src/core/ext/xds/xds_common_types.h +0 -102
- data/src/core/ext/xds/xds_endpoint.cc +0 -383
- data/src/core/ext/xds/xds_endpoint.h +0 -142
- data/src/core/ext/xds/xds_http_fault_filter.cc +0 -222
- data/src/core/ext/xds/xds_http_fault_filter.h +0 -66
- data/src/core/ext/xds/xds_http_filters.cc +0 -129
- data/src/core/ext/xds/xds_http_filters.h +0 -133
- data/src/core/ext/xds/xds_http_rbac_filter.cc +0 -560
- data/src/core/ext/xds/xds_http_rbac_filter.h +0 -61
- data/src/core/ext/xds/xds_lb_policy_registry.cc +0 -290
- data/src/core/ext/xds/xds_lb_policy_registry.h +0 -72
- data/src/core/ext/xds/xds_listener.cc +0 -1102
- data/src/core/ext/xds/xds_listener.h +0 -228
- data/src/core/ext/xds/xds_resource_type.cc +0 -33
- data/src/core/ext/xds/xds_resource_type.h +0 -112
- data/src/core/ext/xds/xds_resource_type_impl.h +0 -91
- data/src/core/ext/xds/xds_route_config.cc +0 -1152
- data/src/core/ext/xds/xds_route_config.h +0 -241
- data/src/core/ext/xds/xds_routing.cc +0 -263
- data/src/core/ext/xds/xds_routing.h +0 -104
- data/src/core/ext/xds/xds_server_config_fetcher.cc +0 -1360
- data/src/core/ext/xds/xds_transport.h +0 -86
- data/src/core/ext/xds/xds_transport_grpc.cc +0 -357
- data/src/core/ext/xds/xds_transport_grpc.h +0 -135
- data/src/core/lib/address_utils/parse_address.cc +0 -339
- data/src/core/lib/address_utils/parse_address.h +0 -86
- data/src/core/lib/address_utils/sockaddr_utils.cc +0 -443
- data/src/core/lib/address_utils/sockaddr_utils.h +0 -100
- data/src/core/lib/avl/avl.h +0 -482
- data/src/core/lib/backoff/backoff.cc +0 -47
- data/src/core/lib/backoff/backoff.h +0 -89
- data/src/core/lib/channel/call_finalization.h +0 -88
- data/src/core/lib/channel/call_tracer.h +0 -94
- data/src/core/lib/channel/channel_args.cc +0 -626
- data/src/core/lib/channel/channel_args.h +0 -529
- data/src/core/lib/channel/channel_args_preconditioning.cc +0 -43
- data/src/core/lib/channel/channel_args_preconditioning.h +0 -62
- data/src/core/lib/channel/channel_fwd.h +0 -26
- data/src/core/lib/channel/channel_stack.cc +0 -311
- data/src/core/lib/channel/channel_stack.h +0 -381
- data/src/core/lib/channel/channel_stack_builder.cc +0 -54
- data/src/core/lib/channel/channel_stack_builder.h +0 -112
- data/src/core/lib/channel/channel_stack_builder_impl.cc +0 -95
- data/src/core/lib/channel/channel_stack_builder_impl.h +0 -46
- data/src/core/lib/channel/channel_trace.cc +0 -184
- data/src/core/lib/channel/channel_trace.h +0 -138
- data/src/core/lib/channel/channelz.cc +0 -583
- data/src/core/lib/channel/channelz.h +0 -374
- data/src/core/lib/channel/channelz_registry.cc +0 -277
- data/src/core/lib/channel/channelz_registry.h +0 -100
- data/src/core/lib/channel/connected_channel.cc +0 -241
- data/src/core/lib/channel/connected_channel.h +0 -36
- data/src/core/lib/channel/context.h +0 -63
- data/src/core/lib/channel/promise_based_filter.cc +0 -1262
- data/src/core/lib/channel/promise_based_filter.h +0 -571
- data/src/core/lib/channel/status_util.cc +0 -138
- data/src/core/lib/channel/status_util.h +0 -74
- data/src/core/lib/compression/compression.cc +0 -96
- data/src/core/lib/compression/compression_internal.cc +0 -249
- data/src/core/lib/compression/compression_internal.h +0 -93
- data/src/core/lib/compression/message_compress.cc +0 -194
- data/src/core/lib/compression/message_compress.h +0 -39
- data/src/core/lib/config/core_configuration.cc +0 -111
- data/src/core/lib/config/core_configuration.h +0 -243
- data/src/core/lib/debug/stats.cc +0 -165
- data/src/core/lib/debug/stats.h +0 -70
- data/src/core/lib/debug/stats_data.cc +0 -190
- data/src/core/lib/debug/stats_data.h +0 -151
- data/src/core/lib/debug/trace.cc +0 -153
- data/src/core/lib/debug/trace.h +0 -133
- data/src/core/lib/event_engine/channel_args_endpoint_config.cc +0 -40
- data/src/core/lib/event_engine/channel_args_endpoint_config.h +0 -49
- data/src/core/lib/event_engine/default_event_engine.cc +0 -71
- data/src/core/lib/event_engine/default_event_engine.h +0 -37
- data/src/core/lib/event_engine/default_event_engine_factory.cc +0 -50
- data/src/core/lib/event_engine/default_event_engine_factory.h +0 -33
- data/src/core/lib/event_engine/executor/executor.h +0 -38
- data/src/core/lib/event_engine/executor/threaded_executor.cc +0 -36
- data/src/core/lib/event_engine/executor/threaded_executor.h +0 -44
- data/src/core/lib/event_engine/forkable.cc +0 -101
- data/src/core/lib/event_engine/forkable.h +0 -61
- data/src/core/lib/event_engine/handle_containers.h +0 -67
- data/src/core/lib/event_engine/memory_allocator.cc +0 -74
- data/src/core/lib/event_engine/poller.h +0 -56
- data/src/core/lib/event_engine/posix_engine/posix_engine.cc +0 -142
- data/src/core/lib/event_engine/posix_engine/posix_engine.h +0 -121
- data/src/core/lib/event_engine/posix_engine/timer.cc +0 -311
- data/src/core/lib/event_engine/posix_engine/timer.h +0 -193
- data/src/core/lib/event_engine/posix_engine/timer_heap.cc +0 -107
- data/src/core/lib/event_engine/posix_engine/timer_heap.h +0 -56
- data/src/core/lib/event_engine/posix_engine/timer_manager.cc +0 -311
- data/src/core/lib/event_engine/posix_engine/timer_manager.h +0 -142
- data/src/core/lib/event_engine/resolved_address.cc +0 -41
- data/src/core/lib/event_engine/slice.cc +0 -102
- data/src/core/lib/event_engine/slice_buffer.cc +0 -50
- data/src/core/lib/event_engine/socket_notifier.h +0 -55
- data/src/core/lib/event_engine/thread_pool.cc +0 -195
- data/src/core/lib/event_engine/thread_pool.h +0 -114
- data/src/core/lib/event_engine/time_util.cc +0 -30
- data/src/core/lib/event_engine/time_util.h +0 -32
- data/src/core/lib/event_engine/trace.cc +0 -18
- data/src/core/lib/event_engine/trace.h +0 -30
- data/src/core/lib/event_engine/utils.cc +0 -44
- data/src/core/lib/event_engine/utils.h +0 -36
- data/src/core/lib/event_engine/windows/iocp.cc +0 -155
- data/src/core/lib/event_engine/windows/iocp.h +0 -69
- data/src/core/lib/event_engine/windows/win_socket.cc +0 -196
- data/src/core/lib/event_engine/windows/win_socket.h +0 -120
- data/src/core/lib/event_engine/windows/windows_engine.cc +0 -159
- data/src/core/lib/event_engine/windows/windows_engine.h +0 -120
- data/src/core/lib/experiments/config.cc +0 -146
- data/src/core/lib/experiments/config.h +0 -43
- data/src/core/lib/experiments/experiments.cc +0 -75
- data/src/core/lib/experiments/experiments.h +0 -56
- data/src/core/lib/gpr/alloc.cc +0 -68
- data/src/core/lib/gpr/alloc.h +0 -28
- data/src/core/lib/gpr/atm.cc +0 -35
- data/src/core/lib/gpr/cpu_iphone.cc +0 -44
- data/src/core/lib/gpr/cpu_linux.cc +0 -82
- data/src/core/lib/gpr/cpu_posix.cc +0 -83
- data/src/core/lib/gpr/cpu_windows.cc +0 -33
- data/src/core/lib/gpr/log.cc +0 -145
- data/src/core/lib/gpr/log_android.cc +0 -77
- data/src/core/lib/gpr/log_linux.cc +0 -114
- data/src/core/lib/gpr/log_posix.cc +0 -110
- data/src/core/lib/gpr/log_windows.cc +0 -115
- data/src/core/lib/gpr/murmur_hash.cc +0 -82
- data/src/core/lib/gpr/murmur_hash.h +0 -29
- data/src/core/lib/gpr/spinlock.h +0 -53
- data/src/core/lib/gpr/string.cc +0 -343
- data/src/core/lib/gpr/string.h +0 -112
- data/src/core/lib/gpr/string_posix.cc +0 -72
- data/src/core/lib/gpr/string_util_windows.cc +0 -55
- data/src/core/lib/gpr/string_windows.cc +0 -69
- data/src/core/lib/gpr/sync.cc +0 -124
- data/src/core/lib/gpr/sync_abseil.cc +0 -100
- data/src/core/lib/gpr/sync_posix.cc +0 -157
- data/src/core/lib/gpr/sync_windows.cc +0 -120
- data/src/core/lib/gpr/time.cc +0 -267
- data/src/core/lib/gpr/time_posix.cc +0 -177
- data/src/core/lib/gpr/time_precise.cc +0 -168
- data/src/core/lib/gpr/time_precise.h +0 -70
- data/src/core/lib/gpr/time_windows.cc +0 -102
- data/src/core/lib/gpr/tls.h +0 -156
- data/src/core/lib/gpr/tmpfile.h +0 -32
- data/src/core/lib/gpr/tmpfile_msys.cc +0 -58
- data/src/core/lib/gpr/tmpfile_posix.cc +0 -69
- data/src/core/lib/gpr/tmpfile_windows.cc +0 -67
- data/src/core/lib/gpr/useful.h +0 -171
- data/src/core/lib/gpr/wrap_memcpy.cc +0 -43
- data/src/core/lib/gprpp/atomic_utils.h +0 -47
- data/src/core/lib/gprpp/bitset.h +0 -201
- data/src/core/lib/gprpp/chunked_vector.h +0 -257
- data/src/core/lib/gprpp/construct_destruct.h +0 -40
- data/src/core/lib/gprpp/cpp_impl_of.h +0 -49
- data/src/core/lib/gprpp/debug_location.h +0 -87
- data/src/core/lib/gprpp/dual_ref_counted.h +0 -327
- data/src/core/lib/gprpp/env.h +0 -53
- data/src/core/lib/gprpp/env_linux.cc +0 -80
- data/src/core/lib/gprpp/env_posix.cc +0 -47
- data/src/core/lib/gprpp/env_windows.cc +0 -56
- data/src/core/lib/gprpp/examine_stack.cc +0 -43
- data/src/core/lib/gprpp/examine_stack.h +0 -45
- data/src/core/lib/gprpp/fork.cc +0 -233
- data/src/core/lib/gprpp/fork.h +0 -95
- data/src/core/lib/gprpp/global_config.h +0 -93
- data/src/core/lib/gprpp/global_config_custom.h +0 -29
- data/src/core/lib/gprpp/global_config_env.cc +0 -139
- data/src/core/lib/gprpp/global_config_env.h +0 -133
- data/src/core/lib/gprpp/global_config_generic.h +0 -40
- data/src/core/lib/gprpp/host_port.cc +0 -114
- data/src/core/lib/gprpp/host_port.h +0 -56
- data/src/core/lib/gprpp/manual_constructor.h +0 -146
- data/src/core/lib/gprpp/match.h +0 -75
- data/src/core/lib/gprpp/memory.h +0 -53
- data/src/core/lib/gprpp/mpscq.cc +0 -108
- data/src/core/lib/gprpp/mpscq.h +0 -99
- data/src/core/lib/gprpp/no_destruct.h +0 -94
- data/src/core/lib/gprpp/notification.h +0 -67
- data/src/core/lib/gprpp/orphanable.h +0 -122
- data/src/core/lib/gprpp/overload.h +0 -59
- data/src/core/lib/gprpp/packed_table.h +0 -40
- data/src/core/lib/gprpp/ref_counted.h +0 -349
- data/src/core/lib/gprpp/ref_counted_ptr.h +0 -337
- data/src/core/lib/gprpp/single_set_ptr.h +0 -87
- data/src/core/lib/gprpp/sorted_pack.h +0 -98
- data/src/core/lib/gprpp/stat.h +0 -36
- data/src/core/lib/gprpp/stat_posix.cc +0 -54
- data/src/core/lib/gprpp/stat_windows.cc +0 -48
- data/src/core/lib/gprpp/status_helper.cc +0 -454
- data/src/core/lib/gprpp/status_helper.h +0 -191
- data/src/core/lib/gprpp/sync.h +0 -200
- data/src/core/lib/gprpp/table.h +0 -451
- data/src/core/lib/gprpp/tchar.cc +0 -49
- data/src/core/lib/gprpp/tchar.h +0 -33
- data/src/core/lib/gprpp/thd.h +0 -171
- data/src/core/lib/gprpp/thd_posix.cc +0 -211
- data/src/core/lib/gprpp/thd_windows.cc +0 -173
- data/src/core/lib/gprpp/time.cc +0 -235
- data/src/core/lib/gprpp/time.h +0 -356
- data/src/core/lib/gprpp/time_averaged_stats.cc +0 -60
- data/src/core/lib/gprpp/time_averaged_stats.h +0 -79
- data/src/core/lib/gprpp/time_util.cc +0 -81
- data/src/core/lib/gprpp/time_util.h +0 -42
- data/src/core/lib/gprpp/unique_type_name.h +0 -104
- data/src/core/lib/gprpp/validation_errors.cc +0 -61
- data/src/core/lib/gprpp/validation_errors.h +0 -110
- data/src/core/lib/gprpp/work_serializer.cc +0 -247
- data/src/core/lib/gprpp/work_serializer.h +0 -86
- data/src/core/lib/handshaker/proxy_mapper.h +0 -53
- data/src/core/lib/handshaker/proxy_mapper_registry.cc +0 -71
- data/src/core/lib/handshaker/proxy_mapper_registry.h +0 -75
- data/src/core/lib/http/format_request.cc +0 -137
- data/src/core/lib/http/format_request.h +0 -38
- data/src/core/lib/http/httpcli.cc +0 -397
- data/src/core/lib/http/httpcli.h +0 -271
- data/src/core/lib/http/httpcli_security_connector.cc +0 -215
- data/src/core/lib/http/httpcli_ssl_credentials.h +0 -39
- data/src/core/lib/http/parser.cc +0 -462
- data/src/core/lib/http/parser.h +0 -130
- data/src/core/lib/iomgr/block_annotate.h +0 -57
- data/src/core/lib/iomgr/buffer_list.cc +0 -307
- data/src/core/lib/iomgr/buffer_list.h +0 -163
- data/src/core/lib/iomgr/call_combiner.cc +0 -257
- data/src/core/lib/iomgr/call_combiner.h +0 -215
- data/src/core/lib/iomgr/cfstream_handle.cc +0 -210
- data/src/core/lib/iomgr/cfstream_handle.h +0 -90
- data/src/core/lib/iomgr/closure.h +0 -266
- data/src/core/lib/iomgr/combiner.cc +0 -330
- data/src/core/lib/iomgr/combiner.h +0 -89
- data/src/core/lib/iomgr/dualstack_socket_posix.cc +0 -48
- data/src/core/lib/iomgr/dynamic_annotations.h +0 -67
- data/src/core/lib/iomgr/endpoint.cc +0 -67
- data/src/core/lib/iomgr/endpoint.h +0 -109
- data/src/core/lib/iomgr/endpoint_cfstream.cc +0 -375
- data/src/core/lib/iomgr/endpoint_cfstream.h +0 -49
- data/src/core/lib/iomgr/endpoint_pair.h +0 -34
- data/src/core/lib/iomgr/endpoint_pair_posix.cc +0 -81
- data/src/core/lib/iomgr/endpoint_pair_windows.cc +0 -86
- data/src/core/lib/iomgr/error.cc +0 -217
- data/src/core/lib/iomgr/error.h +0 -299
- data/src/core/lib/iomgr/error_cfstream.cc +0 -54
- data/src/core/lib/iomgr/error_cfstream.h +0 -31
- data/src/core/lib/iomgr/ev_apple.cc +0 -360
- data/src/core/lib/iomgr/ev_apple.h +0 -43
- data/src/core/lib/iomgr/ev_epoll1_linux.cc +0 -1367
- data/src/core/lib/iomgr/ev_epoll1_linux.h +0 -31
- data/src/core/lib/iomgr/ev_poll_posix.cc +0 -1448
- data/src/core/lib/iomgr/ev_poll_posix.h +0 -29
- data/src/core/lib/iomgr/ev_posix.cc +0 -375
- data/src/core/lib/iomgr/ev_posix.h +0 -209
- data/src/core/lib/iomgr/ev_windows.cc +0 -30
- data/src/core/lib/iomgr/exec_ctx.cc +0 -133
- data/src/core/lib/iomgr/exec_ctx.h +0 -334
- data/src/core/lib/iomgr/executor.cc +0 -451
- data/src/core/lib/iomgr/executor.h +0 -119
- data/src/core/lib/iomgr/fork_posix.cc +0 -120
- data/src/core/lib/iomgr/fork_windows.cc +0 -41
- data/src/core/lib/iomgr/gethostname.h +0 -26
- data/src/core/lib/iomgr/gethostname_fallback.cc +0 -30
- data/src/core/lib/iomgr/gethostname_host_name_max.cc +0 -40
- data/src/core/lib/iomgr/gethostname_sysconf.cc +0 -40
- data/src/core/lib/iomgr/grpc_if_nametoindex.h +0 -30
- data/src/core/lib/iomgr/grpc_if_nametoindex_posix.cc +0 -42
- data/src/core/lib/iomgr/grpc_if_nametoindex_unsupported.cc +0 -38
- data/src/core/lib/iomgr/internal_errqueue.cc +0 -59
- data/src/core/lib/iomgr/internal_errqueue.h +0 -186
- data/src/core/lib/iomgr/iocp_windows.cc +0 -157
- data/src/core/lib/iomgr/iocp_windows.h +0 -48
- data/src/core/lib/iomgr/iomgr.cc +0 -200
- data/src/core/lib/iomgr/iomgr.h +0 -60
- data/src/core/lib/iomgr/iomgr_fwd.h +0 -26
- data/src/core/lib/iomgr/iomgr_internal.cc +0 -53
- data/src/core/lib/iomgr/iomgr_internal.h +0 -74
- data/src/core/lib/iomgr/iomgr_posix.cc +0 -91
- data/src/core/lib/iomgr/iomgr_posix_cfstream.cc +0 -201
- data/src/core/lib/iomgr/iomgr_windows.cc +0 -105
- data/src/core/lib/iomgr/load_file.cc +0 -81
- data/src/core/lib/iomgr/load_file.h +0 -35
- data/src/core/lib/iomgr/lockfree_event.cc +0 -261
- data/src/core/lib/iomgr/lockfree_event.h +0 -72
- data/src/core/lib/iomgr/nameser.h +0 -106
- data/src/core/lib/iomgr/polling_entity.cc +0 -96
- data/src/core/lib/iomgr/polling_entity.h +0 -74
- data/src/core/lib/iomgr/pollset.cc +0 -56
- data/src/core/lib/iomgr/pollset.h +0 -99
- data/src/core/lib/iomgr/pollset_set.cc +0 -55
- data/src/core/lib/iomgr/pollset_set.h +0 -53
- data/src/core/lib/iomgr/pollset_set_windows.cc +0 -52
- data/src/core/lib/iomgr/pollset_set_windows.h +0 -26
- data/src/core/lib/iomgr/pollset_windows.cc +0 -243
- data/src/core/lib/iomgr/pollset_windows.h +0 -70
- data/src/core/lib/iomgr/port.h +0 -238
- data/src/core/lib/iomgr/python_util.h +0 -47
- data/src/core/lib/iomgr/resolve_address.cc +0 -44
- data/src/core/lib/iomgr/resolve_address.h +0 -117
- data/src/core/lib/iomgr/resolve_address_impl.h +0 -59
- data/src/core/lib/iomgr/resolve_address_posix.cc +0 -215
- data/src/core/lib/iomgr/resolve_address_posix.h +0 -64
- data/src/core/lib/iomgr/resolve_address_windows.cc +0 -199
- data/src/core/lib/iomgr/resolve_address_windows.h +0 -64
- data/src/core/lib/iomgr/resolved_address.h +0 -39
- data/src/core/lib/iomgr/sockaddr.h +0 -32
- data/src/core/lib/iomgr/sockaddr_posix.h +0 -57
- data/src/core/lib/iomgr/sockaddr_utils_posix.cc +0 -63
- data/src/core/lib/iomgr/sockaddr_windows.h +0 -57
- data/src/core/lib/iomgr/socket_factory_posix.cc +0 -95
- data/src/core/lib/iomgr/socket_factory_posix.h +0 -69
- data/src/core/lib/iomgr/socket_mutator.cc +0 -97
- data/src/core/lib/iomgr/socket_mutator.h +0 -84
- data/src/core/lib/iomgr/socket_utils.h +0 -47
- data/src/core/lib/iomgr/socket_utils_common_posix.cc +0 -477
- data/src/core/lib/iomgr/socket_utils_linux.cc +0 -42
- data/src/core/lib/iomgr/socket_utils_posix.cc +0 -140
- data/src/core/lib/iomgr/socket_utils_posix.h +0 -255
- data/src/core/lib/iomgr/socket_utils_windows.cc +0 -47
- data/src/core/lib/iomgr/socket_windows.cc +0 -202
- data/src/core/lib/iomgr/socket_windows.h +0 -125
- data/src/core/lib/iomgr/tcp_client.cc +0 -40
- data/src/core/lib/iomgr/tcp_client.h +0 -66
- data/src/core/lib/iomgr/tcp_client_cfstream.cc +0 -211
- data/src/core/lib/iomgr/tcp_client_posix.cc +0 -473
- data/src/core/lib/iomgr/tcp_client_posix.h +0 -72
- data/src/core/lib/iomgr/tcp_client_windows.cc +0 -243
- data/src/core/lib/iomgr/tcp_posix.cc +0 -2075
- data/src/core/lib/iomgr/tcp_posix.h +0 -67
- data/src/core/lib/iomgr/tcp_server.cc +0 -78
- data/src/core/lib/iomgr/tcp_server.h +0 -150
- data/src/core/lib/iomgr/tcp_server_posix.cc +0 -653
- data/src/core/lib/iomgr/tcp_server_utils_posix.h +0 -129
- data/src/core/lib/iomgr/tcp_server_utils_posix_common.cc +0 -227
- data/src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc +0 -179
- data/src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.cc +0 -36
- data/src/core/lib/iomgr/tcp_server_windows.cc +0 -568
- data/src/core/lib/iomgr/tcp_windows.cc +0 -534
- data/src/core/lib/iomgr/tcp_windows.h +0 -52
- data/src/core/lib/iomgr/timer.cc +0 -46
- data/src/core/lib/iomgr/timer.h +0 -136
- data/src/core/lib/iomgr/timer_generic.cc +0 -735
- data/src/core/lib/iomgr/timer_generic.h +0 -40
- data/src/core/lib/iomgr/timer_heap.cc +0 -134
- data/src/core/lib/iomgr/timer_heap.h +0 -43
- data/src/core/lib/iomgr/timer_manager.cc +0 -363
- data/src/core/lib/iomgr/timer_manager.h +0 -41
- data/src/core/lib/iomgr/unix_sockets_posix.cc +0 -96
- data/src/core/lib/iomgr/unix_sockets_posix.h +0 -46
- data/src/core/lib/iomgr/unix_sockets_posix_noop.cc +0 -53
- data/src/core/lib/iomgr/wakeup_fd_eventfd.cc +0 -80
- data/src/core/lib/iomgr/wakeup_fd_nospecial.cc +0 -39
- data/src/core/lib/iomgr/wakeup_fd_pipe.cc +0 -99
- data/src/core/lib/iomgr/wakeup_fd_pipe.h +0 -28
- data/src/core/lib/iomgr/wakeup_fd_posix.cc +0 -73
- data/src/core/lib/iomgr/wakeup_fd_posix.h +0 -96
- data/src/core/lib/json/json.h +0 -246
- data/src/core/lib/json/json_args.h +0 -34
- data/src/core/lib/json/json_object_loader.cc +0 -202
- data/src/core/lib/json/json_object_loader.h +0 -598
- data/src/core/lib/json/json_reader.cc +0 -929
- data/src/core/lib/json/json_util.cc +0 -106
- data/src/core/lib/json/json_util.h +0 -163
- data/src/core/lib/json/json_writer.cc +0 -340
- data/src/core/lib/load_balancing/lb_policy.cc +0 -93
- data/src/core/lib/load_balancing/lb_policy.h +0 -435
- data/src/core/lib/load_balancing/lb_policy_factory.h +0 -49
- data/src/core/lib/load_balancing/lb_policy_registry.cc +0 -141
- data/src/core/lib/load_balancing/lb_policy_registry.h +0 -82
- data/src/core/lib/load_balancing/subchannel_interface.h +0 -140
- data/src/core/lib/matchers/matchers.cc +0 -330
- data/src/core/lib/matchers/matchers.h +0 -162
- data/src/core/lib/promise/activity.cc +0 -120
- data/src/core/lib/promise/activity.h +0 -581
- data/src/core/lib/promise/arena_promise.h +0 -201
- data/src/core/lib/promise/call_push_pull.h +0 -148
- data/src/core/lib/promise/context.h +0 -85
- data/src/core/lib/promise/detail/basic_seq.h +0 -516
- data/src/core/lib/promise/detail/promise_factory.h +0 -187
- data/src/core/lib/promise/detail/promise_like.h +0 -85
- data/src/core/lib/promise/detail/status.h +0 -50
- data/src/core/lib/promise/exec_ctx_wakeup_scheduler.h +0 -48
- data/src/core/lib/promise/intra_activity_waiter.h +0 -49
- data/src/core/lib/promise/latch.h +0 -103
- data/src/core/lib/promise/loop.h +0 -136
- data/src/core/lib/promise/map.h +0 -87
- data/src/core/lib/promise/poll.h +0 -66
- data/src/core/lib/promise/promise.h +0 -96
- data/src/core/lib/promise/race.h +0 -83
- data/src/core/lib/promise/seq.h +0 -108
- data/src/core/lib/promise/sleep.cc +0 -89
- data/src/core/lib/promise/sleep.h +0 -85
- data/src/core/lib/promise/try_seq.h +0 -177
- data/src/core/lib/resolver/resolver.cc +0 -37
- data/src/core/lib/resolver/resolver.h +0 -138
- data/src/core/lib/resolver/resolver_factory.h +0 -77
- data/src/core/lib/resolver/resolver_registry.cc +0 -149
- data/src/core/lib/resolver/resolver_registry.h +0 -123
- data/src/core/lib/resolver/server_address.cc +0 -180
- data/src/core/lib/resolver/server_address.h +0 -147
- data/src/core/lib/resource_quota/api.cc +0 -105
- data/src/core/lib/resource_quota/api.h +0 -49
- data/src/core/lib/resource_quota/arena.cc +0 -119
- data/src/core/lib/resource_quota/arena.h +0 -163
- data/src/core/lib/resource_quota/memory_quota.cc +0 -602
- data/src/core/lib/resource_quota/memory_quota.h +0 -530
- data/src/core/lib/resource_quota/periodic_update.cc +0 -78
- data/src/core/lib/resource_quota/periodic_update.h +0 -71
- data/src/core/lib/resource_quota/resource_quota.cc +0 -33
- data/src/core/lib/resource_quota/resource_quota.h +0 -74
- data/src/core/lib/resource_quota/thread_quota.cc +0 -45
- data/src/core/lib/resource_quota/thread_quota.h +0 -61
- data/src/core/lib/resource_quota/trace.cc +0 -19
- data/src/core/lib/resource_quota/trace.h +0 -24
- data/src/core/lib/security/authorization/authorization_engine.h +0 -44
- data/src/core/lib/security/authorization/authorization_policy_provider.h +0 -47
- data/src/core/lib/security/authorization/authorization_policy_provider_vtable.cc +0 -50
- data/src/core/lib/security/authorization/evaluate_args.cc +0 -221
- data/src/core/lib/security/authorization/evaluate_args.h +0 -95
- data/src/core/lib/security/authorization/grpc_authorization_engine.cc +0 -66
- data/src/core/lib/security/authorization/grpc_authorization_engine.h +0 -69
- data/src/core/lib/security/authorization/grpc_server_authz_filter.cc +0 -120
- data/src/core/lib/security/authorization/grpc_server_authz_filter.h +0 -61
- data/src/core/lib/security/authorization/matchers.cc +0 -238
- data/src/core/lib/security/authorization/matchers.h +0 -218
- data/src/core/lib/security/authorization/rbac_policy.cc +0 -446
- data/src/core/lib/security/authorization/rbac_policy.h +0 -178
- data/src/core/lib/security/certificate_provider/certificate_provider_factory.h +0 -66
- data/src/core/lib/security/certificate_provider/certificate_provider_registry.cc +0 -60
- data/src/core/lib/security/certificate_provider/certificate_provider_registry.h +0 -70
- data/src/core/lib/security/context/security_context.cc +0 -330
- data/src/core/lib/security/context/security_context.h +0 -171
- data/src/core/lib/security/credentials/alts/alts_credentials.cc +0 -119
- data/src/core/lib/security/credentials/alts/alts_credentials.h +0 -123
- data/src/core/lib/security/credentials/alts/check_gcp_environment.cc +0 -72
- data/src/core/lib/security/credentials/alts/check_gcp_environment.h +0 -57
- data/src/core/lib/security/credentials/alts/check_gcp_environment_linux.cc +0 -68
- data/src/core/lib/security/credentials/alts/check_gcp_environment_no_op.cc +0 -33
- data/src/core/lib/security/credentials/alts/check_gcp_environment_windows.cc +0 -102
- data/src/core/lib/security/credentials/alts/grpc_alts_credentials_client_options.cc +0 -125
- data/src/core/lib/security/credentials/alts/grpc_alts_credentials_options.cc +0 -46
- data/src/core/lib/security/credentials/alts/grpc_alts_credentials_options.h +0 -75
- data/src/core/lib/security/credentials/alts/grpc_alts_credentials_server_options.cc +0 -56
- data/src/core/lib/security/credentials/call_creds_util.cc +0 -97
- data/src/core/lib/security/credentials/call_creds_util.h +0 -43
- data/src/core/lib/security/credentials/channel_creds_registry.h +0 -103
- data/src/core/lib/security/credentials/channel_creds_registry_init.cc +0 -81
- data/src/core/lib/security/credentials/composite/composite_credentials.cc +0 -171
- data/src/core/lib/security/credentials/composite/composite_credentials.h +0 -132
- data/src/core/lib/security/credentials/credentials.cc +0 -159
- data/src/core/lib/security/credentials/credentials.h +0 -298
- data/src/core/lib/security/credentials/external/aws_external_account_credentials.cc +0 -524
- data/src/core/lib/security/credentials/external/aws_external_account_credentials.h +0 -100
- data/src/core/lib/security/credentials/external/aws_request_signer.cc +0 -223
- data/src/core/lib/security/credentials/external/aws_request_signer.h +0 -72
- data/src/core/lib/security/credentials/external/external_account_credentials.cc +0 -572
- data/src/core/lib/security/credentials/external/external_account_credentials.h +0 -129
- data/src/core/lib/security/credentials/external/file_external_account_credentials.cc +0 -142
- data/src/core/lib/security/credentials/external/file_external_account_credentials.h +0 -55
- data/src/core/lib/security/credentials/external/url_external_account_credentials.cc +0 -246
- data/src/core/lib/security/credentials/external/url_external_account_credentials.h +0 -71
- data/src/core/lib/security/credentials/fake/fake_credentials.cc +0 -112
- data/src/core/lib/security/credentials/fake/fake_credentials.h +0 -96
- data/src/core/lib/security/credentials/google_default/credentials_generic.cc +0 -40
- data/src/core/lib/security/credentials/google_default/google_default_credentials.cc +0 -500
- data/src/core/lib/security/credentials/google_default/google_default_credentials.h +0 -100
- data/src/core/lib/security/credentials/iam/iam_credentials.cc +0 -82
- data/src/core/lib/security/credentials/iam/iam_credentials.h +0 -65
- data/src/core/lib/security/credentials/insecure/insecure_credentials.cc +0 -73
- data/src/core/lib/security/credentials/insecure/insecure_credentials.h +0 -61
- data/src/core/lib/security/credentials/jwt/json_token.cc +0 -298
- data/src/core/lib/security/credentials/jwt/json_token.h +0 -76
- data/src/core/lib/security/credentials/jwt/jwt_credentials.cc +0 -183
- data/src/core/lib/security/credentials/jwt/jwt_credentials.h +0 -107
- data/src/core/lib/security/credentials/jwt/jwt_verifier.cc +0 -957
- data/src/core/lib/security/credentials/jwt/jwt_verifier.h +0 -124
- data/src/core/lib/security/credentials/local/local_credentials.cc +0 -71
- data/src/core/lib/security/credentials/local/local_credentials.h +0 -77
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc +0 -751
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.h +0 -220
- data/src/core/lib/security/credentials/plugin/plugin_credentials.cc +0 -214
- data/src/core/lib/security/credentials/plugin/plugin_credentials.h +0 -125
- data/src/core/lib/security/credentials/ssl/ssl_credentials.cc +0 -381
- data/src/core/lib/security/credentials/ssl/ssl_credentials.h +0 -131
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_distributor.cc +0 -348
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_distributor.h +0 -223
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.cc +0 -484
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.h +0 -206
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_verifier.cc +0 -241
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_verifier.h +0 -168
- data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.cc +0 -122
- data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h +0 -117
- data/src/core/lib/security/credentials/tls/tls_credentials.cc +0 -150
- data/src/core/lib/security/credentials/tls/tls_credentials.h +0 -71
- data/src/core/lib/security/credentials/tls/tls_utils.cc +0 -127
- data/src/core/lib/security/credentials/tls/tls_utils.h +0 -51
- data/src/core/lib/security/credentials/xds/xds_credentials.cc +0 -236
- data/src/core/lib/security/credentials/xds/xds_credentials.h +0 -114
- data/src/core/lib/security/security_connector/alts/alts_security_connector.cc +0 -317
- data/src/core/lib/security/security_connector/alts/alts_security_connector.h +0 -79
- data/src/core/lib/security/security_connector/fake/fake_security_connector.cc +0 -322
- data/src/core/lib/security/security_connector/fake/fake_security_connector.h +0 -43
- data/src/core/lib/security/security_connector/insecure/insecure_security_connector.cc +0 -120
- data/src/core/lib/security/security_connector/insecure/insecure_security_connector.h +0 -108
- data/src/core/lib/security/security_connector/load_system_roots.h +0 -33
- data/src/core/lib/security/security_connector/load_system_roots_fallback.cc +0 -35
- data/src/core/lib/security/security_connector/load_system_roots_supported.cc +0 -178
- data/src/core/lib/security/security_connector/load_system_roots_supported.h +0 -46
- data/src/core/lib/security/security_connector/local/local_security_connector.cc +0 -310
- data/src/core/lib/security/security_connector/local/local_security_connector.h +0 -63
- data/src/core/lib/security/security_connector/security_connector.cc +0 -127
- data/src/core/lib/security/security_connector/security_connector.h +0 -201
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.cc +0 -463
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.h +0 -83
- data/src/core/lib/security/security_connector/ssl_utils.cc +0 -627
- data/src/core/lib/security/security_connector/ssl_utils.h +0 -187
- data/src/core/lib/security/security_connector/ssl_utils_config.cc +0 -32
- data/src/core/lib/security/security_connector/ssl_utils_config.h +0 -30
- data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +0 -834
- data/src/core/lib/security/security_connector/tls/tls_security_connector.h +0 -286
- data/src/core/lib/security/transport/auth_filters.h +0 -76
- data/src/core/lib/security/transport/client_auth_filter.cc +0 -227
- data/src/core/lib/security/transport/secure_endpoint.cc +0 -568
- data/src/core/lib/security/transport/secure_endpoint.h +0 -43
- data/src/core/lib/security/transport/security_handshaker.cc +0 -673
- data/src/core/lib/security/transport/security_handshaker.h +0 -51
- data/src/core/lib/security/transport/server_auth_filter.cc +0 -360
- data/src/core/lib/security/transport/tsi_error.cc +0 -28
- data/src/core/lib/security/transport/tsi_error.h +0 -30
- data/src/core/lib/security/util/json_util.cc +0 -71
- data/src/core/lib/security/util/json_util.h +0 -43
- data/src/core/lib/service_config/service_config.h +0 -89
- data/src/core/lib/service_config/service_config_call_data.h +0 -76
- data/src/core/lib/service_config/service_config_impl.cc +0 -238
- data/src/core/lib/service_config/service_config_impl.h +0 -128
- data/src/core/lib/service_config/service_config_parser.cc +0 -98
- data/src/core/lib/service_config/service_config_parser.h +0 -101
- data/src/core/lib/slice/b64.cc +0 -239
- data/src/core/lib/slice/b64.h +0 -52
- data/src/core/lib/slice/percent_encoding.cc +0 -150
- data/src/core/lib/slice/percent_encoding.h +0 -54
- data/src/core/lib/slice/slice.cc +0 -496
- data/src/core/lib/slice/slice.h +0 -389
- data/src/core/lib/slice/slice_api.cc +0 -39
- data/src/core/lib/slice/slice_buffer.cc +0 -473
- data/src/core/lib/slice/slice_buffer.h +0 -137
- data/src/core/lib/slice/slice_buffer_api.cc +0 -35
- data/src/core/lib/slice/slice_internal.h +0 -105
- data/src/core/lib/slice/slice_refcount.cc +0 -35
- data/src/core/lib/slice/slice_refcount.h +0 -45
- data/src/core/lib/slice/slice_refcount_base.h +0 -60
- data/src/core/lib/slice/slice_string_helpers.cc +0 -28
- data/src/core/lib/slice/slice_string_helpers.h +0 -31
- data/src/core/lib/surface/api_trace.cc +0 -25
- data/src/core/lib/surface/api_trace.h +0 -53
- data/src/core/lib/surface/builtins.cc +0 -54
- data/src/core/lib/surface/builtins.h +0 -26
- data/src/core/lib/surface/byte_buffer.cc +0 -98
- data/src/core/lib/surface/byte_buffer_reader.cc +0 -101
- data/src/core/lib/surface/call.cc +0 -1916
- data/src/core/lib/surface/call.h +0 -135
- data/src/core/lib/surface/call_details.cc +0 -41
- data/src/core/lib/surface/call_log_batch.cc +0 -117
- data/src/core/lib/surface/call_test_only.h +0 -46
- data/src/core/lib/surface/channel.cc +0 -442
- data/src/core/lib/surface/channel.h +0 -206
- data/src/core/lib/surface/channel_init.cc +0 -55
- data/src/core/lib/surface/channel_init.h +0 -84
- data/src/core/lib/surface/channel_ping.cc +0 -69
- data/src/core/lib/surface/channel_stack_type.cc +0 -57
- data/src/core/lib/surface/channel_stack_type.h +0 -45
- data/src/core/lib/surface/completion_queue.cc +0 -1425
- data/src/core/lib/surface/completion_queue.h +0 -100
- data/src/core/lib/surface/completion_queue_factory.cc +0 -94
- data/src/core/lib/surface/completion_queue_factory.h +0 -37
- data/src/core/lib/surface/event_string.cc +0 -56
- data/src/core/lib/surface/event_string.h +0 -31
- data/src/core/lib/surface/init.cc +0 -260
- data/src/core/lib/surface/init.h +0 -25
- data/src/core/lib/surface/init_internally.cc +0 -24
- data/src/core/lib/surface/init_internally.h +0 -28
- data/src/core/lib/surface/lame_client.cc +0 -152
- data/src/core/lib/surface/lame_client.h +0 -71
- data/src/core/lib/surface/metadata_array.cc +0 -38
- data/src/core/lib/surface/server.cc +0 -1577
- data/src/core/lib/surface/server.h +0 -526
- data/src/core/lib/surface/validate_metadata.cc +0 -123
- data/src/core/lib/surface/validate_metadata.h +0 -48
- data/src/core/lib/surface/version.cc +0 -28
- data/src/core/lib/transport/bdp_estimator.cc +0 -86
- data/src/core/lib/transport/bdp_estimator.h +0 -94
- data/src/core/lib/transport/connectivity_state.cc +0 -189
- data/src/core/lib/transport/connectivity_state.h +0 -144
- data/src/core/lib/transport/error_utils.cc +0 -165
- data/src/core/lib/transport/error_utils.h +0 -63
- data/src/core/lib/transport/handshaker.cc +0 -225
- data/src/core/lib/transport/handshaker.h +0 -167
- data/src/core/lib/transport/handshaker_factory.h +0 -48
- data/src/core/lib/transport/handshaker_registry.cc +0 -55
- data/src/core/lib/transport/handshaker_registry.h +0 -70
- data/src/core/lib/transport/http2_errors.h +0 -41
- data/src/core/lib/transport/http_connect_handshaker.cc +0 -401
- data/src/core/lib/transport/http_connect_handshaker.h +0 -42
- data/src/core/lib/transport/metadata_batch.cc +0 -291
- data/src/core/lib/transport/metadata_batch.h +0 -1310
- data/src/core/lib/transport/parsed_metadata.cc +0 -39
- data/src/core/lib/transport/parsed_metadata.h +0 -409
- 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/status_conversion.cc +0 -92
- data/src/core/lib/transport/status_conversion.h +0 -38
- data/src/core/lib/transport/tcp_connect_handshaker.cc +0 -251
- data/src/core/lib/transport/tcp_connect_handshaker.h +0 -39
- data/src/core/lib/transport/timeout_encoding.cc +0 -284
- data/src/core/lib/transport/timeout_encoding.h +0 -72
- data/src/core/lib/transport/transport.cc +0 -239
- data/src/core/lib/transport/transport.h +0 -594
- data/src/core/lib/transport/transport_fwd.h +0 -20
- data/src/core/lib/transport/transport_impl.h +0 -95
- data/src/core/lib/transport/transport_op_string.cc +0 -146
- data/src/core/lib/uri/uri_parser.cc +0 -373
- data/src/core/lib/uri/uri_parser.h +0 -101
- data/src/core/plugin_registry/grpc_plugin_registry.cc +0 -117
- data/src/core/plugin_registry/grpc_plugin_registry_extra.cc +0 -73
- data/src/core/tsi/alts/crypt/aes_gcm.cc +0 -690
- data/src/core/tsi/alts/crypt/gsec.cc +0 -190
- data/src/core/tsi/alts/crypt/gsec.h +0 -459
- data/src/core/tsi/alts/frame_protector/alts_counter.cc +0 -118
- data/src/core/tsi/alts/frame_protector/alts_counter.h +0 -98
- data/src/core/tsi/alts/frame_protector/alts_crypter.cc +0 -66
- data/src/core/tsi/alts/frame_protector/alts_crypter.h +0 -255
- data/src/core/tsi/alts/frame_protector/alts_frame_protector.cc +0 -408
- data/src/core/tsi/alts/frame_protector/alts_frame_protector.h +0 -55
- data/src/core/tsi/alts/frame_protector/alts_record_protocol_crypter_common.cc +0 -114
- data/src/core/tsi/alts/frame_protector/alts_record_protocol_crypter_common.h +0 -114
- data/src/core/tsi/alts/frame_protector/alts_seal_privacy_integrity_crypter.cc +0 -105
- data/src/core/tsi/alts/frame_protector/alts_unseal_privacy_integrity_crypter.cc +0 -103
- data/src/core/tsi/alts/frame_protector/frame_handler.cc +0 -219
- data/src/core/tsi/alts/frame_protector/frame_handler.h +0 -236
- data/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +0 -927
- data/src/core/tsi/alts/handshaker/alts_handshaker_client.h +0 -160
- data/src/core/tsi/alts/handshaker/alts_shared_resource.cc +0 -91
- data/src/core/tsi/alts/handshaker/alts_shared_resource.h +0 -73
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc +0 -720
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.h +0 -104
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker_private.h +0 -89
- data/src/core/tsi/alts/handshaker/alts_tsi_utils.cc +0 -64
- data/src/core/tsi/alts/handshaker/alts_tsi_utils.h +0 -53
- data/src/core/tsi/alts/handshaker/transport_security_common_api.cc +0 -223
- data/src/core/tsi/alts/handshaker/transport_security_common_api.h +0 -171
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.cc +0 -226
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.h +0 -54
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.cc +0 -144
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.h +0 -49
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol.h +0 -91
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.cc +0 -174
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.h +0 -99
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.cc +0 -478
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.h +0 -199
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.cc +0 -315
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.h +0 -57
- data/src/core/tsi/fake_transport_security.cc +0 -844
- data/src/core/tsi/fake_transport_security.h +0 -53
- data/src/core/tsi/local_transport_security.cc +0 -174
- data/src/core/tsi/local_transport_security.h +0 -47
- data/src/core/tsi/ssl/key_logging/ssl_key_logging.cc +0 -141
- data/src/core/tsi/ssl/key_logging/ssl_key_logging.h +0 -81
- data/src/core/tsi/ssl/session_cache/ssl_session.h +0 -71
- data/src/core/tsi/ssl/session_cache/ssl_session_boringssl.cc +0 -59
- data/src/core/tsi/ssl/session_cache/ssl_session_cache.cc +0 -179
- data/src/core/tsi/ssl/session_cache/ssl_session_cache.h +0 -99
- data/src/core/tsi/ssl/session_cache/ssl_session_openssl.cc +0 -77
- data/src/core/tsi/ssl_transport_security.cc +0 -2441
- data/src/core/tsi/ssl_transport_security.h +0 -405
- data/src/core/tsi/ssl_types.h +0 -42
- data/src/core/tsi/transport_security.cc +0 -396
- data/src/core/tsi/transport_security.h +0 -143
- data/src/core/tsi/transport_security_grpc.cc +0 -74
- data/src/core/tsi/transport_security_grpc.h +0 -83
- data/src/core/tsi/transport_security_interface.h +0 -521
- data/src/ruby/lib/grpc/2.6/grpc_c.so +0 -0
- data/third_party/abseil-cpp/absl/algorithm/algorithm.h +0 -159
- data/third_party/abseil-cpp/absl/algorithm/container.h +0 -1774
- data/third_party/abseil-cpp/absl/base/attributes.h +0 -762
- data/third_party/abseil-cpp/absl/base/call_once.h +0 -219
- data/third_party/abseil-cpp/absl/base/casts.h +0 -180
- data/third_party/abseil-cpp/absl/base/config.h +0 -913
- data/third_party/abseil-cpp/absl/base/const_init.h +0 -76
- data/third_party/abseil-cpp/absl/base/dynamic_annotations.h +0 -471
- data/third_party/abseil-cpp/absl/base/internal/atomic_hook.h +0 -200
- data/third_party/abseil-cpp/absl/base/internal/cycleclock.cc +0 -77
- data/third_party/abseil-cpp/absl/base/internal/cycleclock.h +0 -159
- data/third_party/abseil-cpp/absl/base/internal/direct_mmap.h +0 -169
- data/third_party/abseil-cpp/absl/base/internal/dynamic_annotations.h +0 -398
- data/third_party/abseil-cpp/absl/base/internal/endian.h +0 -282
- data/third_party/abseil-cpp/absl/base/internal/errno_saver.h +0 -43
- data/third_party/abseil-cpp/absl/base/internal/fast_type_id.h +0 -50
- data/third_party/abseil-cpp/absl/base/internal/hide_ptr.h +0 -51
- data/third_party/abseil-cpp/absl/base/internal/identity.h +0 -37
- data/third_party/abseil-cpp/absl/base/internal/inline_variable.h +0 -107
- data/third_party/abseil-cpp/absl/base/internal/invoke.h +0 -241
- data/third_party/abseil-cpp/absl/base/internal/low_level_alloc.cc +0 -620
- data/third_party/abseil-cpp/absl/base/internal/low_level_alloc.h +0 -126
- data/third_party/abseil-cpp/absl/base/internal/low_level_scheduling.h +0 -134
- data/third_party/abseil-cpp/absl/base/internal/per_thread_tls.h +0 -52
- data/third_party/abseil-cpp/absl/base/internal/prefetch.h +0 -138
- data/third_party/abseil-cpp/absl/base/internal/raw_logging.cc +0 -249
- data/third_party/abseil-cpp/absl/base/internal/raw_logging.h +0 -196
- data/third_party/abseil-cpp/absl/base/internal/scheduling_mode.h +0 -58
- data/third_party/abseil-cpp/absl/base/internal/spinlock.cc +0 -232
- data/third_party/abseil-cpp/absl/base/internal/spinlock.h +0 -256
- data/third_party/abseil-cpp/absl/base/internal/spinlock_akaros.inc +0 -35
- data/third_party/abseil-cpp/absl/base/internal/spinlock_linux.inc +0 -71
- data/third_party/abseil-cpp/absl/base/internal/spinlock_posix.inc +0 -46
- data/third_party/abseil-cpp/absl/base/internal/spinlock_wait.cc +0 -81
- data/third_party/abseil-cpp/absl/base/internal/spinlock_wait.h +0 -95
- data/third_party/abseil-cpp/absl/base/internal/spinlock_win32.inc +0 -37
- data/third_party/abseil-cpp/absl/base/internal/strerror.cc +0 -88
- data/third_party/abseil-cpp/absl/base/internal/strerror.h +0 -39
- data/third_party/abseil-cpp/absl/base/internal/sysinfo.cc +0 -507
- data/third_party/abseil-cpp/absl/base/internal/sysinfo.h +0 -74
- data/third_party/abseil-cpp/absl/base/internal/thread_annotations.h +0 -271
- data/third_party/abseil-cpp/absl/base/internal/thread_identity.cc +0 -156
- data/third_party/abseil-cpp/absl/base/internal/thread_identity.h +0 -265
- data/third_party/abseil-cpp/absl/base/internal/throw_delegate.cc +0 -212
- data/third_party/abseil-cpp/absl/base/internal/throw_delegate.h +0 -75
- data/third_party/abseil-cpp/absl/base/internal/tsan_mutex_interface.h +0 -68
- data/third_party/abseil-cpp/absl/base/internal/unaligned_access.h +0 -82
- data/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc +0 -153
- data/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.h +0 -133
- data/third_party/abseil-cpp/absl/base/log_severity.cc +0 -55
- data/third_party/abseil-cpp/absl/base/log_severity.h +0 -172
- data/third_party/abseil-cpp/absl/base/macros.h +0 -158
- data/third_party/abseil-cpp/absl/base/optimization.h +0 -252
- data/third_party/abseil-cpp/absl/base/options.h +0 -238
- data/third_party/abseil-cpp/absl/base/policy_checks.h +0 -111
- data/third_party/abseil-cpp/absl/base/port.h +0 -25
- data/third_party/abseil-cpp/absl/base/thread_annotations.h +0 -335
- data/third_party/abseil-cpp/absl/container/fixed_array.h +0 -529
- data/third_party/abseil-cpp/absl/container/flat_hash_map.h +0 -613
- data/third_party/abseil-cpp/absl/container/flat_hash_set.h +0 -510
- data/third_party/abseil-cpp/absl/container/inlined_vector.h +0 -866
- data/third_party/abseil-cpp/absl/container/internal/common.h +0 -207
- data/third_party/abseil-cpp/absl/container/internal/compressed_tuple.h +0 -290
- data/third_party/abseil-cpp/absl/container/internal/container_memory.h +0 -442
- data/third_party/abseil-cpp/absl/container/internal/hash_function_defaults.h +0 -163
- data/third_party/abseil-cpp/absl/container/internal/hash_policy_traits.h +0 -208
- data/third_party/abseil-cpp/absl/container/internal/hashtable_debug_hooks.h +0 -85
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler.cc +0 -238
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler.h +0 -299
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler_force_weak_definition.cc +0 -31
- data/third_party/abseil-cpp/absl/container/internal/inlined_vector.h +0 -953
- data/third_party/abseil-cpp/absl/container/internal/layout.h +0 -743
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_map.h +0 -198
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.cc +0 -71
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.h +0 -2365
- data/third_party/abseil-cpp/absl/debugging/internal/address_is_readable.cc +0 -96
- data/third_party/abseil-cpp/absl/debugging/internal/address_is_readable.h +0 -32
- data/third_party/abseil-cpp/absl/debugging/internal/demangle.cc +0 -1959
- data/third_party/abseil-cpp/absl/debugging/internal/demangle.h +0 -71
- data/third_party/abseil-cpp/absl/debugging/internal/elf_mem_image.cc +0 -387
- data/third_party/abseil-cpp/absl/debugging/internal/elf_mem_image.h +0 -139
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_aarch64-inl.inc +0 -204
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_arm-inl.inc +0 -139
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_config.h +0 -88
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_emscripten-inl.inc +0 -110
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_generic-inl.inc +0 -108
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_powerpc-inl.inc +0 -258
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_riscv-inl.inc +0 -236
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_unimplemented-inl.inc +0 -24
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_win32-inl.inc +0 -93
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_x86-inl.inc +0 -369
- data/third_party/abseil-cpp/absl/debugging/internal/symbolize.h +0 -153
- data/third_party/abseil-cpp/absl/debugging/internal/vdso_support.cc +0 -204
- data/third_party/abseil-cpp/absl/debugging/internal/vdso_support.h +0 -158
- data/third_party/abseil-cpp/absl/debugging/stacktrace.cc +0 -142
- data/third_party/abseil-cpp/absl/debugging/stacktrace.h +0 -231
- data/third_party/abseil-cpp/absl/debugging/symbolize.cc +0 -43
- data/third_party/abseil-cpp/absl/debugging/symbolize.h +0 -99
- data/third_party/abseil-cpp/absl/debugging/symbolize_darwin.inc +0 -101
- data/third_party/abseil-cpp/absl/debugging/symbolize_elf.inc +0 -1613
- data/third_party/abseil-cpp/absl/debugging/symbolize_emscripten.inc +0 -72
- data/third_party/abseil-cpp/absl/debugging/symbolize_unimplemented.inc +0 -40
- data/third_party/abseil-cpp/absl/debugging/symbolize_win32.inc +0 -81
- data/third_party/abseil-cpp/absl/functional/any_invocable.h +0 -313
- data/third_party/abseil-cpp/absl/functional/bind_front.h +0 -193
- data/third_party/abseil-cpp/absl/functional/function_ref.h +0 -143
- data/third_party/abseil-cpp/absl/functional/internal/any_invocable.h +0 -857
- data/third_party/abseil-cpp/absl/functional/internal/front_binder.h +0 -95
- data/third_party/abseil-cpp/absl/functional/internal/function_ref.h +0 -106
- data/third_party/abseil-cpp/absl/hash/hash.h +0 -421
- data/third_party/abseil-cpp/absl/hash/internal/city.cc +0 -349
- data/third_party/abseil-cpp/absl/hash/internal/city.h +0 -78
- data/third_party/abseil-cpp/absl/hash/internal/hash.cc +0 -69
- data/third_party/abseil-cpp/absl/hash/internal/hash.h +0 -1291
- data/third_party/abseil-cpp/absl/hash/internal/low_level_hash.cc +0 -123
- data/third_party/abseil-cpp/absl/hash/internal/low_level_hash.h +0 -50
- data/third_party/abseil-cpp/absl/memory/memory.h +0 -699
- data/third_party/abseil-cpp/absl/meta/type_traits.h +0 -797
- data/third_party/abseil-cpp/absl/numeric/bits.h +0 -178
- data/third_party/abseil-cpp/absl/numeric/int128.cc +0 -385
- data/third_party/abseil-cpp/absl/numeric/int128.h +0 -1165
- data/third_party/abseil-cpp/absl/numeric/int128_have_intrinsic.inc +0 -296
- data/third_party/abseil-cpp/absl/numeric/int128_no_intrinsic.inc +0 -311
- data/third_party/abseil-cpp/absl/numeric/internal/bits.h +0 -358
- data/third_party/abseil-cpp/absl/numeric/internal/representation.h +0 -55
- data/third_party/abseil-cpp/absl/profiling/internal/exponential_biased.cc +0 -93
- data/third_party/abseil-cpp/absl/profiling/internal/exponential_biased.h +0 -130
- data/third_party/abseil-cpp/absl/profiling/internal/sample_recorder.h +0 -245
- data/third_party/abseil-cpp/absl/random/bernoulli_distribution.h +0 -200
- data/third_party/abseil-cpp/absl/random/beta_distribution.h +0 -427
- data/third_party/abseil-cpp/absl/random/discrete_distribution.cc +0 -98
- data/third_party/abseil-cpp/absl/random/discrete_distribution.h +0 -247
- data/third_party/abseil-cpp/absl/random/distributions.h +0 -452
- data/third_party/abseil-cpp/absl/random/exponential_distribution.h +0 -165
- data/third_party/abseil-cpp/absl/random/gaussian_distribution.cc +0 -104
- data/third_party/abseil-cpp/absl/random/gaussian_distribution.h +0 -275
- data/third_party/abseil-cpp/absl/random/internal/distribution_caller.h +0 -95
- data/third_party/abseil-cpp/absl/random/internal/fast_uniform_bits.h +0 -269
- data/third_party/abseil-cpp/absl/random/internal/fastmath.h +0 -57
- data/third_party/abseil-cpp/absl/random/internal/generate_real.h +0 -144
- data/third_party/abseil-cpp/absl/random/internal/iostream_state_saver.h +0 -245
- data/third_party/abseil-cpp/absl/random/internal/nonsecure_base.h +0 -161
- data/third_party/abseil-cpp/absl/random/internal/pcg_engine.h +0 -308
- data/third_party/abseil-cpp/absl/random/internal/platform.h +0 -171
- data/third_party/abseil-cpp/absl/random/internal/pool_urbg.cc +0 -253
- data/third_party/abseil-cpp/absl/random/internal/pool_urbg.h +0 -131
- data/third_party/abseil-cpp/absl/random/internal/randen.cc +0 -91
- data/third_party/abseil-cpp/absl/random/internal/randen.h +0 -96
- data/third_party/abseil-cpp/absl/random/internal/randen_detect.cc +0 -225
- data/third_party/abseil-cpp/absl/random/internal/randen_detect.h +0 -33
- data/third_party/abseil-cpp/absl/random/internal/randen_engine.h +0 -264
- data/third_party/abseil-cpp/absl/random/internal/randen_hwaes.cc +0 -526
- data/third_party/abseil-cpp/absl/random/internal/randen_hwaes.h +0 -50
- data/third_party/abseil-cpp/absl/random/internal/randen_round_keys.cc +0 -462
- data/third_party/abseil-cpp/absl/random/internal/randen_slow.cc +0 -471
- data/third_party/abseil-cpp/absl/random/internal/randen_slow.h +0 -40
- data/third_party/abseil-cpp/absl/random/internal/randen_traits.h +0 -88
- data/third_party/abseil-cpp/absl/random/internal/salted_seed_seq.h +0 -165
- data/third_party/abseil-cpp/absl/random/internal/seed_material.cc +0 -267
- data/third_party/abseil-cpp/absl/random/internal/seed_material.h +0 -104
- data/third_party/abseil-cpp/absl/random/internal/traits.h +0 -149
- data/third_party/abseil-cpp/absl/random/internal/uniform_helper.h +0 -244
- data/third_party/abseil-cpp/absl/random/internal/wide_multiply.h +0 -96
- data/third_party/abseil-cpp/absl/random/log_uniform_int_distribution.h +0 -256
- data/third_party/abseil-cpp/absl/random/poisson_distribution.h +0 -261
- data/third_party/abseil-cpp/absl/random/random.h +0 -189
- data/third_party/abseil-cpp/absl/random/seed_gen_exception.cc +0 -46
- data/third_party/abseil-cpp/absl/random/seed_gen_exception.h +0 -55
- data/third_party/abseil-cpp/absl/random/seed_sequences.cc +0 -29
- data/third_party/abseil-cpp/absl/random/seed_sequences.h +0 -111
- data/third_party/abseil-cpp/absl/random/uniform_int_distribution.h +0 -275
- data/third_party/abseil-cpp/absl/random/uniform_real_distribution.h +0 -202
- data/third_party/abseil-cpp/absl/random/zipf_distribution.h +0 -272
- data/third_party/abseil-cpp/absl/status/internal/status_internal.h +0 -86
- data/third_party/abseil-cpp/absl/status/internal/statusor_internal.h +0 -396
- data/third_party/abseil-cpp/absl/status/status.cc +0 -616
- data/third_party/abseil-cpp/absl/status/status.h +0 -892
- data/third_party/abseil-cpp/absl/status/status_payload_printer.cc +0 -38
- data/third_party/abseil-cpp/absl/status/status_payload_printer.h +0 -51
- data/third_party/abseil-cpp/absl/status/statusor.cc +0 -103
- data/third_party/abseil-cpp/absl/status/statusor.h +0 -776
- data/third_party/abseil-cpp/absl/strings/ascii.cc +0 -200
- data/third_party/abseil-cpp/absl/strings/ascii.h +0 -242
- data/third_party/abseil-cpp/absl/strings/charconv.cc +0 -984
- data/third_party/abseil-cpp/absl/strings/charconv.h +0 -120
- data/third_party/abseil-cpp/absl/strings/cord.cc +0 -1328
- data/third_party/abseil-cpp/absl/strings/cord.h +0 -1642
- data/third_party/abseil-cpp/absl/strings/cord_analysis.cc +0 -188
- data/third_party/abseil-cpp/absl/strings/cord_analysis.h +0 -44
- data/third_party/abseil-cpp/absl/strings/cord_buffer.cc +0 -30
- data/third_party/abseil-cpp/absl/strings/cord_buffer.h +0 -572
- data/third_party/abseil-cpp/absl/strings/escaping.cc +0 -949
- data/third_party/abseil-cpp/absl/strings/escaping.h +0 -164
- data/third_party/abseil-cpp/absl/strings/internal/char_map.h +0 -156
- data/third_party/abseil-cpp/absl/strings/internal/charconv_bigint.cc +0 -359
- data/third_party/abseil-cpp/absl/strings/internal/charconv_bigint.h +0 -423
- data/third_party/abseil-cpp/absl/strings/internal/charconv_parse.cc +0 -504
- data/third_party/abseil-cpp/absl/strings/internal/charconv_parse.h +0 -99
- data/third_party/abseil-cpp/absl/strings/internal/cord_data_edge.h +0 -63
- data/third_party/abseil-cpp/absl/strings/internal/cord_internal.cc +0 -77
- data/third_party/abseil-cpp/absl/strings/internal/cord_internal.h +0 -655
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree.cc +0 -1228
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree.h +0 -924
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree_navigator.cc +0 -187
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree_navigator.h +0 -267
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree_reader.cc +0 -69
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree_reader.h +0 -212
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_consume.cc +0 -62
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_consume.h +0 -50
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_crc.cc +0 -54
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_crc.h +0 -102
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_flat.h +0 -187
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_ring.cc +0 -773
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_ring.h +0 -607
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_ring_reader.h +0 -118
- data/third_party/abseil-cpp/absl/strings/internal/cordz_functions.cc +0 -96
- data/third_party/abseil-cpp/absl/strings/internal/cordz_functions.h +0 -85
- data/third_party/abseil-cpp/absl/strings/internal/cordz_handle.cc +0 -139
- data/third_party/abseil-cpp/absl/strings/internal/cordz_handle.h +0 -131
- data/third_party/abseil-cpp/absl/strings/internal/cordz_info.cc +0 -418
- data/third_party/abseil-cpp/absl/strings/internal/cordz_info.h +0 -298
- data/third_party/abseil-cpp/absl/strings/internal/cordz_statistics.h +0 -88
- data/third_party/abseil-cpp/absl/strings/internal/cordz_update_scope.h +0 -71
- data/third_party/abseil-cpp/absl/strings/internal/cordz_update_tracker.h +0 -123
- data/third_party/abseil-cpp/absl/strings/internal/escaping.cc +0 -181
- data/third_party/abseil-cpp/absl/strings/internal/escaping.h +0 -58
- data/third_party/abseil-cpp/absl/strings/internal/memutil.cc +0 -112
- data/third_party/abseil-cpp/absl/strings/internal/memutil.h +0 -148
- data/third_party/abseil-cpp/absl/strings/internal/ostringstream.cc +0 -36
- data/third_party/abseil-cpp/absl/strings/internal/ostringstream.h +0 -89
- data/third_party/abseil-cpp/absl/strings/internal/resize_uninitialized.h +0 -119
- data/third_party/abseil-cpp/absl/strings/internal/stl_type_traits.h +0 -248
- data/third_party/abseil-cpp/absl/strings/internal/str_format/arg.cc +0 -488
- data/third_party/abseil-cpp/absl/strings/internal/str_format/arg.h +0 -526
- data/third_party/abseil-cpp/absl/strings/internal/str_format/bind.cc +0 -258
- data/third_party/abseil-cpp/absl/strings/internal/str_format/bind.h +0 -248
- data/third_party/abseil-cpp/absl/strings/internal/str_format/checker.h +0 -338
- data/third_party/abseil-cpp/absl/strings/internal/str_format/extension.cc +0 -74
- data/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h +0 -448
- data/third_party/abseil-cpp/absl/strings/internal/str_format/float_conversion.cc +0 -1423
- data/third_party/abseil-cpp/absl/strings/internal/str_format/float_conversion.h +0 -37
- data/third_party/abseil-cpp/absl/strings/internal/str_format/output.cc +0 -72
- data/third_party/abseil-cpp/absl/strings/internal/str_format/output.h +0 -97
- data/third_party/abseil-cpp/absl/strings/internal/str_format/parser.cc +0 -339
- data/third_party/abseil-cpp/absl/strings/internal/str_format/parser.h +0 -359
- data/third_party/abseil-cpp/absl/strings/internal/str_join_internal.h +0 -317
- data/third_party/abseil-cpp/absl/strings/internal/str_split_internal.h +0 -430
- data/third_party/abseil-cpp/absl/strings/internal/string_constant.h +0 -72
- data/third_party/abseil-cpp/absl/strings/internal/utf8.cc +0 -53
- data/third_party/abseil-cpp/absl/strings/internal/utf8.h +0 -50
- data/third_party/abseil-cpp/absl/strings/match.cc +0 -43
- data/third_party/abseil-cpp/absl/strings/match.h +0 -100
- data/third_party/abseil-cpp/absl/strings/numbers.cc +0 -1093
- data/third_party/abseil-cpp/absl/strings/numbers.h +0 -303
- data/third_party/abseil-cpp/absl/strings/str_cat.cc +0 -246
- data/third_party/abseil-cpp/absl/strings/str_cat.h +0 -415
- data/third_party/abseil-cpp/absl/strings/str_format.h +0 -812
- data/third_party/abseil-cpp/absl/strings/str_join.h +0 -287
- data/third_party/abseil-cpp/absl/strings/str_replace.cc +0 -82
- data/third_party/abseil-cpp/absl/strings/str_replace.h +0 -219
- data/third_party/abseil-cpp/absl/strings/str_split.cc +0 -139
- data/third_party/abseil-cpp/absl/strings/str_split.h +0 -547
- data/third_party/abseil-cpp/absl/strings/string_view.cc +0 -219
- data/third_party/abseil-cpp/absl/strings/string_view.h +0 -711
- data/third_party/abseil-cpp/absl/strings/strip.h +0 -93
- data/third_party/abseil-cpp/absl/strings/substitute.cc +0 -172
- data/third_party/abseil-cpp/absl/strings/substitute.h +0 -729
- data/third_party/abseil-cpp/absl/synchronization/barrier.cc +0 -52
- data/third_party/abseil-cpp/absl/synchronization/barrier.h +0 -79
- data/third_party/abseil-cpp/absl/synchronization/blocking_counter.cc +0 -67
- data/third_party/abseil-cpp/absl/synchronization/blocking_counter.h +0 -101
- data/third_party/abseil-cpp/absl/synchronization/internal/create_thread_identity.cc +0 -143
- data/third_party/abseil-cpp/absl/synchronization/internal/create_thread_identity.h +0 -56
- data/third_party/abseil-cpp/absl/synchronization/internal/futex.h +0 -154
- data/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc +0 -698
- data/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.h +0 -141
- data/third_party/abseil-cpp/absl/synchronization/internal/kernel_timeout.h +0 -156
- data/third_party/abseil-cpp/absl/synchronization/internal/per_thread_sem.cc +0 -102
- data/third_party/abseil-cpp/absl/synchronization/internal/per_thread_sem.h +0 -110
- data/third_party/abseil-cpp/absl/synchronization/internal/waiter.cc +0 -403
- data/third_party/abseil-cpp/absl/synchronization/internal/waiter.h +0 -161
- data/third_party/abseil-cpp/absl/synchronization/mutex.cc +0 -2786
- data/third_party/abseil-cpp/absl/synchronization/mutex.h +0 -1090
- data/third_party/abseil-cpp/absl/synchronization/notification.cc +0 -78
- data/third_party/abseil-cpp/absl/synchronization/notification.h +0 -124
- data/third_party/abseil-cpp/absl/time/civil_time.cc +0 -173
- data/third_party/abseil-cpp/absl/time/civil_time.h +0 -538
- data/third_party/abseil-cpp/absl/time/clock.cc +0 -585
- data/third_party/abseil-cpp/absl/time/clock.h +0 -74
- data/third_party/abseil-cpp/absl/time/duration.cc +0 -955
- data/third_party/abseil-cpp/absl/time/format.cc +0 -160
- data/third_party/abseil-cpp/absl/time/internal/cctz/include/cctz/civil_time.h +0 -332
- data/third_party/abseil-cpp/absl/time/internal/cctz/include/cctz/civil_time_detail.h +0 -632
- data/third_party/abseil-cpp/absl/time/internal/cctz/include/cctz/time_zone.h +0 -459
- data/third_party/abseil-cpp/absl/time/internal/cctz/include/cctz/zone_info_source.h +0 -102
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/civil_time_detail.cc +0 -94
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_fixed.cc +0 -140
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_fixed.h +0 -52
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_format.cc +0 -1029
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_if.cc +0 -45
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_if.h +0 -77
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_impl.cc +0 -113
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_impl.h +0 -93
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_info.cc +0 -1027
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_info.h +0 -137
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_libc.cc +0 -315
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_libc.h +0 -55
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_lookup.cc +0 -236
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_posix.cc +0 -159
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_posix.h +0 -132
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/tzfile.h +0 -122
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/zone_info_source.cc +0 -115
- data/third_party/abseil-cpp/absl/time/internal/get_current_time_chrono.inc +0 -31
- data/third_party/abseil-cpp/absl/time/internal/get_current_time_posix.inc +0 -24
- data/third_party/abseil-cpp/absl/time/time.cc +0 -500
- data/third_party/abseil-cpp/absl/time/time.h +0 -1620
- data/third_party/abseil-cpp/absl/types/bad_optional_access.cc +0 -48
- data/third_party/abseil-cpp/absl/types/bad_optional_access.h +0 -78
- data/third_party/abseil-cpp/absl/types/bad_variant_access.cc +0 -64
- data/third_party/abseil-cpp/absl/types/bad_variant_access.h +0 -82
- data/third_party/abseil-cpp/absl/types/internal/optional.h +0 -404
- data/third_party/abseil-cpp/absl/types/internal/span.h +0 -128
- data/third_party/abseil-cpp/absl/types/internal/variant.h +0 -1646
- data/third_party/abseil-cpp/absl/types/optional.h +0 -779
- data/third_party/abseil-cpp/absl/types/span.h +0 -727
- data/third_party/abseil-cpp/absl/types/variant.h +0 -866
- data/third_party/abseil-cpp/absl/utility/utility.h +0 -350
- data/third_party/address_sorting/address_sorting.c +0 -375
- data/third_party/address_sorting/address_sorting_internal.h +0 -70
- data/third_party/address_sorting/address_sorting_posix.c +0 -98
- data/third_party/address_sorting/address_sorting_windows.c +0 -95
- data/third_party/address_sorting/include/address_sorting/address_sorting.h +0 -115
- data/third_party/boringssl-with-bazel/err_data.c +0 -1493
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_bitstr.c +0 -284
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_bool.c +0 -122
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_d2i_fp.c +0 -91
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_dup.c +0 -87
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_enum.c +0 -195
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_gentm.c +0 -266
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_i2d_fp.c +0 -88
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_int.c +0 -420
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_mbstr.c +0 -298
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_object.c +0 -299
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_octet.c +0 -77
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_print.c +0 -83
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_strex.c +0 -650
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_strnid.c +0 -266
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_time.c +0 -212
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_type.c +0 -163
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_utctm.c +0 -264
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_utf8.c +0 -236
- data/third_party/boringssl-with-bazel/src/crypto/asn1/asn1_lib.c +0 -452
- data/third_party/boringssl-with-bazel/src/crypto/asn1/asn1_par.c +0 -80
- data/third_party/boringssl-with-bazel/src/crypto/asn1/asn_pack.c +0 -101
- data/third_party/boringssl-with-bazel/src/crypto/asn1/charmap.h +0 -15
- data/third_party/boringssl-with-bazel/src/crypto/asn1/f_int.c +0 -102
- data/third_party/boringssl-with-bazel/src/crypto/asn1/f_string.c +0 -91
- data/third_party/boringssl-with-bazel/src/crypto/asn1/internal.h +0 -224
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_dec.c +0 -969
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_enc.c +0 -710
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_fre.c +0 -233
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_new.c +0 -332
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_typ.c +0 -131
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_utl.c +0 -281
- data/third_party/boringssl-with-bazel/src/crypto/asn1/time_support.c +0 -206
- data/third_party/boringssl-with-bazel/src/crypto/base64/base64.c +0 -482
- data/third_party/boringssl-with-bazel/src/crypto/bio/bio.c +0 -702
- data/third_party/boringssl-with-bazel/src/crypto/bio/bio_mem.c +0 -324
- data/third_party/boringssl-with-bazel/src/crypto/bio/connect.c +0 -541
- data/third_party/boringssl-with-bazel/src/crypto/bio/fd.c +0 -275
- data/third_party/boringssl-with-bazel/src/crypto/bio/file.c +0 -311
- data/third_party/boringssl-with-bazel/src/crypto/bio/hexdump.c +0 -192
- data/third_party/boringssl-with-bazel/src/crypto/bio/internal.h +0 -111
- data/third_party/boringssl-with-bazel/src/crypto/bio/pair.c +0 -483
- data/third_party/boringssl-with-bazel/src/crypto/bio/printf.c +0 -115
- data/third_party/boringssl-with-bazel/src/crypto/bio/socket.c +0 -192
- data/third_party/boringssl-with-bazel/src/crypto/bio/socket_helper.c +0 -122
- data/third_party/boringssl-with-bazel/src/crypto/blake2/blake2.c +0 -156
- data/third_party/boringssl-with-bazel/src/crypto/bn_extra/bn_asn1.c +0 -57
- data/third_party/boringssl-with-bazel/src/crypto/bn_extra/convert.c +0 -470
- data/third_party/boringssl-with-bazel/src/crypto/buf/buf.c +0 -172
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/asn1_compat.c +0 -52
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/ber.c +0 -266
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/cbb.c +0 -728
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/cbs.c +0 -711
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/internal.h +0 -96
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/unicode.c +0 -155
- data/third_party/boringssl-with-bazel/src/crypto/chacha/chacha.c +0 -175
- data/third_party/boringssl-with-bazel/src/crypto/chacha/internal.h +0 -45
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/cipher_extra.c +0 -127
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/derive_key.c +0 -152
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_aesccm.c +0 -447
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_aesctrhmac.c +0 -283
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_aesgcmsiv.c +0 -891
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_chacha20poly1305.c +0 -343
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_null.c +0 -85
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_rc2.c +0 -462
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_rc4.c +0 -87
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_tls.c +0 -601
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/internal.h +0 -226
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/tls_cbc.c +0 -338
- data/third_party/boringssl-with-bazel/src/crypto/cmac/cmac.c +0 -278
- data/third_party/boringssl-with-bazel/src/crypto/conf/conf.c +0 -821
- data/third_party/boringssl-with-bazel/src/crypto/conf/conf_def.h +0 -127
- data/third_party/boringssl-with-bazel/src/crypto/conf/internal.h +0 -31
- data/third_party/boringssl-with-bazel/src/crypto/cpu-aarch64-fuchsia.c +0 -55
- data/third_party/boringssl-with-bazel/src/crypto/cpu-aarch64-linux.c +0 -62
- data/third_party/boringssl-with-bazel/src/crypto/cpu-aarch64-win.c +0 -41
- data/third_party/boringssl-with-bazel/src/crypto/cpu-arm-linux.c +0 -229
- data/third_party/boringssl-with-bazel/src/crypto/cpu-arm-linux.h +0 -201
- data/third_party/boringssl-with-bazel/src/crypto/cpu-arm.c +0 -38
- data/third_party/boringssl-with-bazel/src/crypto/cpu-intel.c +0 -291
- data/third_party/boringssl-with-bazel/src/crypto/cpu-ppc64le.c +0 -38
- data/third_party/boringssl-with-bazel/src/crypto/crypto.c +0 -226
- data/third_party/boringssl-with-bazel/src/crypto/curve25519/curve25519.c +0 -2159
- data/third_party/boringssl-with-bazel/src/crypto/curve25519/curve25519_tables.h +0 -7872
- data/third_party/boringssl-with-bazel/src/crypto/curve25519/internal.h +0 -146
- data/third_party/boringssl-with-bazel/src/crypto/curve25519/spake25519.c +0 -539
- data/third_party/boringssl-with-bazel/src/crypto/dh_extra/dh_asn1.c +0 -160
- data/third_party/boringssl-with-bazel/src/crypto/dh_extra/params.c +0 -272
- data/third_party/boringssl-with-bazel/src/crypto/digest_extra/digest_extra.c +0 -268
- data/third_party/boringssl-with-bazel/src/crypto/dsa/dsa.c +0 -967
- data/third_party/boringssl-with-bazel/src/crypto/dsa/dsa_asn1.c +0 -390
- data/third_party/boringssl-with-bazel/src/crypto/dsa/internal.h +0 -34
- data/third_party/boringssl-with-bazel/src/crypto/ec_extra/ec_asn1.c +0 -559
- data/third_party/boringssl-with-bazel/src/crypto/ec_extra/ec_derive.c +0 -95
- data/third_party/boringssl-with-bazel/src/crypto/ec_extra/hash_to_curve.c +0 -385
- data/third_party/boringssl-with-bazel/src/crypto/ec_extra/internal.h +0 -56
- data/third_party/boringssl-with-bazel/src/crypto/ecdh_extra/ecdh_extra.c +0 -124
- data/third_party/boringssl-with-bazel/src/crypto/ecdsa_extra/ecdsa_asn1.c +0 -267
- data/third_party/boringssl-with-bazel/src/crypto/engine/engine.c +0 -99
- data/third_party/boringssl-with-bazel/src/crypto/err/err.c +0 -857
- data/third_party/boringssl-with-bazel/src/crypto/err/internal.h +0 -58
- data/third_party/boringssl-with-bazel/src/crypto/evp/digestsign.c +0 -231
- data/third_party/boringssl-with-bazel/src/crypto/evp/evp.c +0 -456
- data/third_party/boringssl-with-bazel/src/crypto/evp/evp_asn1.c +0 -547
- data/third_party/boringssl-with-bazel/src/crypto/evp/evp_ctx.c +0 -484
- data/third_party/boringssl-with-bazel/src/crypto/evp/internal.h +0 -269
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_dsa_asn1.c +0 -277
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_ec.c +0 -286
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_ec_asn1.c +0 -255
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_ed25519.c +0 -104
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_ed25519_asn1.c +0 -221
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_rsa.c +0 -648
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_rsa_asn1.c +0 -194
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_x25519.c +0 -110
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_x25519_asn1.c +0 -248
- data/third_party/boringssl-with-bazel/src/crypto/evp/pbkdf.c +0 -146
- data/third_party/boringssl-with-bazel/src/crypto/evp/print.c +0 -489
- data/third_party/boringssl-with-bazel/src/crypto/evp/scrypt.c +0 -211
- data/third_party/boringssl-with-bazel/src/crypto/evp/sign.c +0 -151
- data/third_party/boringssl-with-bazel/src/crypto/ex_data.c +0 -261
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/aes/aes.c +0 -108
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/aes/aes_nohw.c +0 -1282
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/aes/internal.h +0 -238
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/aes/key_wrap.c +0 -236
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/aes/mode_wrappers.c +0 -122
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bcm.c +0 -266
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/add.c +0 -316
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/asm/x86_64-gcc.c +0 -541
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/bn.c +0 -438
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/bytes.c +0 -230
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/cmp.c +0 -200
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/ctx.c +0 -236
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/div.c +0 -902
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/div_extra.c +0 -87
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/exponentiation.c +0 -1288
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/gcd.c +0 -378
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/gcd_extra.c +0 -326
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/generic.c +0 -711
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/internal.h +0 -715
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/jacobi.c +0 -146
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/montgomery.c +0 -502
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/montgomery_inv.c +0 -186
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/mul.c +0 -749
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/prime.c +0 -1064
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/random.c +0 -341
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/rsaz_exp.c +0 -226
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/rsaz_exp.h +0 -104
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/shift.c +0 -364
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/sqrt.c +0 -498
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/aead.c +0 -284
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/cipher.c +0 -648
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/e_aes.c +0 -1473
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/e_des.c +0 -237
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/internal.h +0 -128
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/delocate.h +0 -89
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/des/des.c +0 -784
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/des/internal.h +0 -238
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/dh/check.c +0 -217
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/dh/dh.c +0 -456
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/digest/digest.c +0 -282
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/digest/digests.c +0 -304
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/digest/internal.h +0 -112
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/digest/md32_common.h +0 -195
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/ec.c +0 -1268
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/ec_key.c +0 -472
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/ec_montgomery.c +0 -524
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/felem.c +0 -100
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/internal.h +0 -772
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/oct.c +0 -328
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p224-64.c +0 -1180
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p256-x86_64-table.h +0 -9497
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p256-x86_64.c +0 -633
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p256-x86_64.h +0 -153
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p256.c +0 -740
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p256_table.h +0 -297
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/scalar.c +0 -175
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/simple.c +0 -357
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/simple_mul.c +0 -270
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/util.c +0 -255
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/wnaf.c +0 -270
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ecdh/ecdh.c +0 -122
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ecdsa/ecdsa.c +0 -338
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ecdsa/internal.h +0 -39
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/fips_shared_support.c +0 -32
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/hmac/hmac.c +0 -228
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/md4/md4.c +0 -240
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/md5/internal.h +0 -37
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/md5/md5.c +0 -284
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/cbc.c +0 -178
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/cfb.c +0 -203
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/ctr.c +0 -201
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/gcm.c +0 -733
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/gcm_nohw.c +0 -304
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/internal.h +0 -420
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/ofb.c +0 -97
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/polyval.c +0 -91
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/ctrdrbg.c +0 -202
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/fork_detect.c +0 -137
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/fork_detect.h +0 -49
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/getrandom_fillin.h +0 -64
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/internal.h +0 -184
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/rand.c +0 -457
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/urandom.c +0 -401
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/blinding.c +0 -243
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/internal.h +0 -131
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/padding.c +0 -695
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/rsa.c +0 -935
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/rsa_impl.c +0 -1416
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/self_check/fips.c +0 -79
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/self_check/self_check.c +0 -874
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/internal.h +0 -53
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/sha1-altivec.c +0 -361
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/sha1.c +0 -357
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/sha256.c +0 -321
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/sha512.c +0 -508
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/tls/internal.h +0 -39
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/tls/kdf.c +0 -165
- data/third_party/boringssl-with-bazel/src/crypto/hkdf/hkdf.c +0 -112
- data/third_party/boringssl-with-bazel/src/crypto/hpke/hpke.c +0 -618
- data/third_party/boringssl-with-bazel/src/crypto/hrss/hrss.c +0 -2198
- data/third_party/boringssl-with-bazel/src/crypto/hrss/internal.h +0 -68
- data/third_party/boringssl-with-bazel/src/crypto/internal.h +0 -959
- data/third_party/boringssl-with-bazel/src/crypto/lhash/internal.h +0 -253
- data/third_party/boringssl-with-bazel/src/crypto/lhash/lhash.c +0 -353
- data/third_party/boringssl-with-bazel/src/crypto/mem.c +0 -410
- data/third_party/boringssl-with-bazel/src/crypto/obj/obj.c +0 -553
- data/third_party/boringssl-with-bazel/src/crypto/obj/obj_dat.h +0 -11585
- data/third_party/boringssl-with-bazel/src/crypto/obj/obj_xref.c +0 -122
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_all.c +0 -252
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_info.c +0 -358
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_lib.c +0 -769
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_oth.c +0 -87
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_pk8.c +0 -255
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_pkey.c +0 -214
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_x509.c +0 -65
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_xaux.c +0 -65
- data/third_party/boringssl-with-bazel/src/crypto/pkcs7/internal.h +0 -58
- data/third_party/boringssl-with-bazel/src/crypto/pkcs7/pkcs7.c +0 -193
- data/third_party/boringssl-with-bazel/src/crypto/pkcs7/pkcs7_x509.c +0 -526
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/internal.h +0 -137
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/p5_pbev2.c +0 -316
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8.c +0 -530
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8_x509.c +0 -1383
- data/third_party/boringssl-with-bazel/src/crypto/poly1305/internal.h +0 -41
- data/third_party/boringssl-with-bazel/src/crypto/poly1305/poly1305.c +0 -321
- data/third_party/boringssl-with-bazel/src/crypto/poly1305/poly1305_arm.c +0 -307
- data/third_party/boringssl-with-bazel/src/crypto/poly1305/poly1305_vec.c +0 -860
- data/third_party/boringssl-with-bazel/src/crypto/pool/internal.h +0 -49
- data/third_party/boringssl-with-bazel/src/crypto/pool/pool.c +0 -257
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/deterministic.c +0 -56
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/forkunsafe.c +0 -46
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/fuchsia.c +0 -34
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/passive.c +0 -34
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/rand_extra.c +0 -74
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/windows.c +0 -73
- data/third_party/boringssl-with-bazel/src/crypto/rc4/rc4.c +0 -98
- data/third_party/boringssl-with-bazel/src/crypto/refcount_c11.c +0 -67
- data/third_party/boringssl-with-bazel/src/crypto/refcount_lock.c +0 -53
- data/third_party/boringssl-with-bazel/src/crypto/rsa_extra/rsa_asn1.c +0 -324
- data/third_party/boringssl-with-bazel/src/crypto/rsa_extra/rsa_print.c +0 -22
- data/third_party/boringssl-with-bazel/src/crypto/siphash/siphash.c +0 -82
- data/third_party/boringssl-with-bazel/src/crypto/stack/stack.c +0 -425
- data/third_party/boringssl-with-bazel/src/crypto/thread.c +0 -110
- data/third_party/boringssl-with-bazel/src/crypto/thread_none.c +0 -59
- data/third_party/boringssl-with-bazel/src/crypto/thread_pthread.c +0 -182
- data/third_party/boringssl-with-bazel/src/crypto/thread_win.c +0 -260
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/internal.h +0 -318
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/pmbtoken.c +0 -1399
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/trust_token.c +0 -858
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/voprf.c +0 -766
- data/third_party/boringssl-with-bazel/src/crypto/x509/a_digest.c +0 -96
- data/third_party/boringssl-with-bazel/src/crypto/x509/a_sign.c +0 -128
- data/third_party/boringssl-with-bazel/src/crypto/x509/a_verify.c +0 -118
- data/third_party/boringssl-with-bazel/src/crypto/x509/algorithm.c +0 -163
- data/third_party/boringssl-with-bazel/src/crypto/x509/asn1_gen.c +0 -826
- data/third_party/boringssl-with-bazel/src/crypto/x509/by_dir.c +0 -459
- data/third_party/boringssl-with-bazel/src/crypto/x509/by_file.c +0 -277
- data/third_party/boringssl-with-bazel/src/crypto/x509/i2d_pr.c +0 -83
- data/third_party/boringssl-with-bazel/src/crypto/x509/internal.h +0 -404
- data/third_party/boringssl-with-bazel/src/crypto/x509/name_print.c +0 -246
- data/third_party/boringssl-with-bazel/src/crypto/x509/rsa_pss.c +0 -400
- data/third_party/boringssl-with-bazel/src/crypto/x509/t_crl.c +0 -130
- data/third_party/boringssl-with-bazel/src/crypto/x509/t_req.c +0 -246
- data/third_party/boringssl-with-bazel/src/crypto/x509/t_x509.c +0 -365
- data/third_party/boringssl-with-bazel/src/crypto/x509/t_x509a.c +0 -116
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509.c +0 -90
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_att.c +0 -358
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_cmp.c +0 -461
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_d2.c +0 -106
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_def.c +0 -103
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_ext.c +0 -212
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_lu.c +0 -830
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_obj.c +0 -199
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_req.c +0 -304
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_set.c +0 -240
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_trs.c +0 -331
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_txt.c +0 -204
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_v3.c +0 -281
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_vfy.c +0 -2456
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_vpm.c +0 -651
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509cset.c +0 -284
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509name.c +0 -388
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509rset.c +0 -84
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509spki.c +0 -137
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_algor.c +0 -153
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_all.c +0 -386
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_attrib.c +0 -98
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_crl.c +0 -565
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_exten.c +0 -77
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_info.c +0 -98
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_name.c +0 -544
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_pkey.c +0 -106
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_pubkey.c +0 -217
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_req.c +0 -106
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_sig.c +0 -94
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_spki.c +0 -80
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_val.c +0 -71
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_x509.c +0 -394
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_x509a.c +0 -201
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/ext_dat.h +0 -138
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/internal.h +0 -289
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/pcy_cache.c +0 -287
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/pcy_data.c +0 -132
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/pcy_lib.c +0 -155
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/pcy_map.c +0 -131
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/pcy_node.c +0 -189
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/pcy_tree.c +0 -843
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_akey.c +0 -226
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_akeya.c +0 -72
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_alt.c +0 -640
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_bcons.c +0 -133
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_bitst.c +0 -144
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_conf.c +0 -468
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_cpols.c +0 -500
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_crld.c +0 -563
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_enum.c +0 -106
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_extku.c +0 -148
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_genn.c +0 -266
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_ia5.c +0 -121
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_info.c +0 -218
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_int.c +0 -91
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_lib.c +0 -379
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_ncons.c +0 -558
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_ocsp.c +0 -68
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_pci.c +0 -289
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_pcia.c +0 -57
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_pcons.c +0 -139
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_pmaps.c +0 -154
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_prn.c +0 -230
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_purp.c +0 -929
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_skey.c +0 -156
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_utl.c +0 -1437
- data/third_party/boringssl-with-bazel/src/include/openssl/aead.h +0 -480
- data/third_party/boringssl-with-bazel/src/include/openssl/aes.h +0 -207
- data/third_party/boringssl-with-bazel/src/include/openssl/arm_arch.h +0 -240
- data/third_party/boringssl-with-bazel/src/include/openssl/asn1.h +0 -2039
- data/third_party/boringssl-with-bazel/src/include/openssl/asn1_mac.h +0 -18
- data/third_party/boringssl-with-bazel/src/include/openssl/asn1t.h +0 -718
- data/third_party/boringssl-with-bazel/src/include/openssl/base.h +0 -627
- data/third_party/boringssl-with-bazel/src/include/openssl/base64.h +0 -198
- data/third_party/boringssl-with-bazel/src/include/openssl/bio.h +0 -939
- data/third_party/boringssl-with-bazel/src/include/openssl/blake2.h +0 -62
- data/third_party/boringssl-with-bazel/src/include/openssl/blowfish.h +0 -93
- data/third_party/boringssl-with-bazel/src/include/openssl/bn.h +0 -1057
- data/third_party/boringssl-with-bazel/src/include/openssl/buf.h +0 -137
- data/third_party/boringssl-with-bazel/src/include/openssl/buffer.h +0 -18
- data/third_party/boringssl-with-bazel/src/include/openssl/bytestring.h +0 -586
- data/third_party/boringssl-with-bazel/src/include/openssl/cast.h +0 -96
- data/third_party/boringssl-with-bazel/src/include/openssl/chacha.h +0 -41
- data/third_party/boringssl-with-bazel/src/include/openssl/cipher.h +0 -673
- data/third_party/boringssl-with-bazel/src/include/openssl/cmac.h +0 -91
- data/third_party/boringssl-with-bazel/src/include/openssl/conf.h +0 -183
- data/third_party/boringssl-with-bazel/src/include/openssl/cpu.h +0 -202
- data/third_party/boringssl-with-bazel/src/include/openssl/crypto.h +0 -169
- data/third_party/boringssl-with-bazel/src/include/openssl/curve25519.h +0 -201
- data/third_party/boringssl-with-bazel/src/include/openssl/des.h +0 -183
- data/third_party/boringssl-with-bazel/src/include/openssl/dh.h +0 -353
- data/third_party/boringssl-with-bazel/src/include/openssl/digest.h +0 -348
- data/third_party/boringssl-with-bazel/src/include/openssl/dsa.h +0 -443
- data/third_party/boringssl-with-bazel/src/include/openssl/dtls1.h +0 -16
- data/third_party/boringssl-with-bazel/src/include/openssl/e_os2.h +0 -18
- data/third_party/boringssl-with-bazel/src/include/openssl/ec.h +0 -442
- data/third_party/boringssl-with-bazel/src/include/openssl/ec_key.h +0 -357
- data/third_party/boringssl-with-bazel/src/include/openssl/ecdh.h +0 -118
- data/third_party/boringssl-with-bazel/src/include/openssl/ecdsa.h +0 -236
- data/third_party/boringssl-with-bazel/src/include/openssl/engine.h +0 -109
- data/third_party/boringssl-with-bazel/src/include/openssl/err.h +0 -466
- data/third_party/boringssl-with-bazel/src/include/openssl/evp.h +0 -1083
- data/third_party/boringssl-with-bazel/src/include/openssl/evp_errors.h +0 -99
- data/third_party/boringssl-with-bazel/src/include/openssl/ex_data.h +0 -203
- data/third_party/boringssl-with-bazel/src/include/openssl/hkdf.h +0 -68
- data/third_party/boringssl-with-bazel/src/include/openssl/hmac.h +0 -186
- data/third_party/boringssl-with-bazel/src/include/openssl/hpke.h +0 -350
- data/third_party/boringssl-with-bazel/src/include/openssl/hrss.h +0 -102
- data/third_party/boringssl-with-bazel/src/include/openssl/is_boringssl.h +0 -16
- data/third_party/boringssl-with-bazel/src/include/openssl/lhash.h +0 -81
- data/third_party/boringssl-with-bazel/src/include/openssl/md4.h +0 -108
- data/third_party/boringssl-with-bazel/src/include/openssl/md5.h +0 -109
- data/third_party/boringssl-with-bazel/src/include/openssl/mem.h +0 -184
- data/third_party/boringssl-with-bazel/src/include/openssl/nid.h +0 -4259
- data/third_party/boringssl-with-bazel/src/include/openssl/obj.h +0 -256
- data/third_party/boringssl-with-bazel/src/include/openssl/obj_mac.h +0 -18
- data/third_party/boringssl-with-bazel/src/include/openssl/objects.h +0 -18
- data/third_party/boringssl-with-bazel/src/include/openssl/opensslconf.h +0 -70
- data/third_party/boringssl-with-bazel/src/include/openssl/opensslv.h +0 -18
- data/third_party/boringssl-with-bazel/src/include/openssl/ossl_typ.h +0 -18
- data/third_party/boringssl-with-bazel/src/include/openssl/pem.h +0 -483
- data/third_party/boringssl-with-bazel/src/include/openssl/pkcs12.h +0 -18
- data/third_party/boringssl-with-bazel/src/include/openssl/pkcs7.h +0 -239
- data/third_party/boringssl-with-bazel/src/include/openssl/pkcs8.h +0 -282
- data/third_party/boringssl-with-bazel/src/include/openssl/poly1305.h +0 -49
- data/third_party/boringssl-with-bazel/src/include/openssl/pool.h +0 -108
- data/third_party/boringssl-with-bazel/src/include/openssl/rand.h +0 -114
- data/third_party/boringssl-with-bazel/src/include/openssl/rc4.h +0 -96
- data/third_party/boringssl-with-bazel/src/include/openssl/ripemd.h +0 -108
- data/third_party/boringssl-with-bazel/src/include/openssl/rsa.h +0 -855
- data/third_party/boringssl-with-bazel/src/include/openssl/safestack.h +0 -16
- data/third_party/boringssl-with-bazel/src/include/openssl/sha.h +0 -294
- data/third_party/boringssl-with-bazel/src/include/openssl/siphash.h +0 -37
- data/third_party/boringssl-with-bazel/src/include/openssl/span.h +0 -222
- data/third_party/boringssl-with-bazel/src/include/openssl/srtp.h +0 -18
- data/third_party/boringssl-with-bazel/src/include/openssl/ssl.h +0 -5624
- data/third_party/boringssl-with-bazel/src/include/openssl/ssl3.h +0 -333
- data/third_party/boringssl-with-bazel/src/include/openssl/stack.h +0 -542
- data/third_party/boringssl-with-bazel/src/include/openssl/thread.h +0 -191
- data/third_party/boringssl-with-bazel/src/include/openssl/tls1.h +0 -647
- data/third_party/boringssl-with-bazel/src/include/openssl/trust_token.h +0 -310
- data/third_party/boringssl-with-bazel/src/include/openssl/type_check.h +0 -90
- data/third_party/boringssl-with-bazel/src/include/openssl/x509.h +0 -2419
- data/third_party/boringssl-with-bazel/src/include/openssl/x509_vfy.h +0 -18
- data/third_party/boringssl-with-bazel/src/include/openssl/x509v3.h +0 -1021
- data/third_party/boringssl-with-bazel/src/ssl/bio_ssl.cc +0 -192
- data/third_party/boringssl-with-bazel/src/ssl/d1_both.cc +0 -835
- data/third_party/boringssl-with-bazel/src/ssl/d1_lib.cc +0 -268
- data/third_party/boringssl-with-bazel/src/ssl/d1_pkt.cc +0 -273
- data/third_party/boringssl-with-bazel/src/ssl/d1_srtp.cc +0 -232
- data/third_party/boringssl-with-bazel/src/ssl/dtls_method.cc +0 -200
- data/third_party/boringssl-with-bazel/src/ssl/dtls_record.cc +0 -353
- data/third_party/boringssl-with-bazel/src/ssl/encrypted_client_hello.cc +0 -1084
- data/third_party/boringssl-with-bazel/src/ssl/extensions.cc +0 -4325
- data/third_party/boringssl-with-bazel/src/ssl/handoff.cc +0 -986
- data/third_party/boringssl-with-bazel/src/ssl/handshake.cc +0 -758
- data/third_party/boringssl-with-bazel/src/ssl/handshake_client.cc +0 -1986
- data/third_party/boringssl-with-bazel/src/ssl/handshake_server.cc +0 -1956
- data/third_party/boringssl-with-bazel/src/ssl/internal.h +0 -3953
- data/third_party/boringssl-with-bazel/src/ssl/s3_both.cc +0 -730
- data/third_party/boringssl-with-bazel/src/ssl/s3_lib.cc +0 -219
- data/third_party/boringssl-with-bazel/src/ssl/s3_pkt.cc +0 -453
- data/third_party/boringssl-with-bazel/src/ssl/ssl_aead_ctx.cc +0 -432
- data/third_party/boringssl-with-bazel/src/ssl/ssl_asn1.cc +0 -896
- data/third_party/boringssl-with-bazel/src/ssl/ssl_buffer.cc +0 -306
- data/third_party/boringssl-with-bazel/src/ssl/ssl_cert.cc +0 -1014
- data/third_party/boringssl-with-bazel/src/ssl/ssl_cipher.cc +0 -1717
- data/third_party/boringssl-with-bazel/src/ssl/ssl_file.cc +0 -585
- data/third_party/boringssl-with-bazel/src/ssl/ssl_key_share.cc +0 -400
- data/third_party/boringssl-with-bazel/src/ssl/ssl_lib.cc +0 -3072
- data/third_party/boringssl-with-bazel/src/ssl/ssl_privkey.cc +0 -837
- data/third_party/boringssl-with-bazel/src/ssl/ssl_session.cc +0 -1342
- data/third_party/boringssl-with-bazel/src/ssl/ssl_stat.cc +0 -233
- data/third_party/boringssl-with-bazel/src/ssl/ssl_transcript.cc +0 -272
- data/third_party/boringssl-with-bazel/src/ssl/ssl_versions.cc +0 -402
- data/third_party/boringssl-with-bazel/src/ssl/ssl_x509.cc +0 -1363
- data/third_party/boringssl-with-bazel/src/ssl/t1_enc.cc +0 -384
- data/third_party/boringssl-with-bazel/src/ssl/tls13_both.cc +0 -733
- data/third_party/boringssl-with-bazel/src/ssl/tls13_client.cc +0 -1122
- data/third_party/boringssl-with-bazel/src/ssl/tls13_enc.cc +0 -582
- data/third_party/boringssl-with-bazel/src/ssl/tls13_server.cc +0 -1349
- data/third_party/boringssl-with-bazel/src/ssl/tls_method.cc +0 -319
- data/third_party/boringssl-with-bazel/src/ssl/tls_record.cc +0 -705
- data/third_party/boringssl-with-bazel/src/third_party/fiat/curve25519_32.h +0 -981
- data/third_party/boringssl-with-bazel/src/third_party/fiat/curve25519_64.h +0 -619
- data/third_party/boringssl-with-bazel/src/third_party/fiat/p256_32.h +0 -3147
- data/third_party/boringssl-with-bazel/src/third_party/fiat/p256_64.h +0 -1226
- data/third_party/cares/ares_build.h +0 -223
- data/third_party/cares/cares/include/ares.h +0 -742
- data/third_party/cares/cares/include/ares_dns.h +0 -112
- data/third_party/cares/cares/include/ares_rules.h +0 -125
- data/third_party/cares/cares/include/ares_version.h +0 -24
- data/third_party/cares/cares/src/lib/ares__close_sockets.c +0 -61
- data/third_party/cares/cares/src/lib/ares__get_hostent.c +0 -260
- data/third_party/cares/cares/src/lib/ares__parse_into_addrinfo.c +0 -260
- data/third_party/cares/cares/src/lib/ares__read_line.c +0 -73
- data/third_party/cares/cares/src/lib/ares__readaddrinfo.c +0 -264
- data/third_party/cares/cares/src/lib/ares__sortaddrinfo.c +0 -499
- data/third_party/cares/cares/src/lib/ares__timeval.c +0 -111
- data/third_party/cares/cares/src/lib/ares_android.c +0 -444
- data/third_party/cares/cares/src/lib/ares_android.h +0 -27
- data/third_party/cares/cares/src/lib/ares_cancel.c +0 -63
- data/third_party/cares/cares/src/lib/ares_create_query.c +0 -197
- data/third_party/cares/cares/src/lib/ares_data.c +0 -240
- data/third_party/cares/cares/src/lib/ares_data.h +0 -74
- data/third_party/cares/cares/src/lib/ares_destroy.c +0 -113
- data/third_party/cares/cares/src/lib/ares_expand_name.c +0 -300
- data/third_party/cares/cares/src/lib/ares_expand_string.c +0 -67
- data/third_party/cares/cares/src/lib/ares_fds.c +0 -59
- data/third_party/cares/cares/src/lib/ares_free_hostent.c +0 -43
- data/third_party/cares/cares/src/lib/ares_free_string.c +0 -25
- data/third_party/cares/cares/src/lib/ares_freeaddrinfo.c +0 -59
- data/third_party/cares/cares/src/lib/ares_getaddrinfo.c +0 -772
- data/third_party/cares/cares/src/lib/ares_getenv.c +0 -28
- data/third_party/cares/cares/src/lib/ares_getenv.h +0 -26
- data/third_party/cares/cares/src/lib/ares_gethostbyaddr.c +0 -287
- data/third_party/cares/cares/src/lib/ares_gethostbyname.c +0 -534
- data/third_party/cares/cares/src/lib/ares_getnameinfo.c +0 -447
- data/third_party/cares/cares/src/lib/ares_getsock.c +0 -66
- data/third_party/cares/cares/src/lib/ares_inet_net_pton.h +0 -25
- data/third_party/cares/cares/src/lib/ares_init.c +0 -2654
- data/third_party/cares/cares/src/lib/ares_iphlpapi.h +0 -221
- data/third_party/cares/cares/src/lib/ares_ipv6.h +0 -85
- data/third_party/cares/cares/src/lib/ares_library_init.c +0 -200
- data/third_party/cares/cares/src/lib/ares_library_init.h +0 -43
- data/third_party/cares/cares/src/lib/ares_llist.c +0 -63
- data/third_party/cares/cares/src/lib/ares_llist.h +0 -39
- data/third_party/cares/cares/src/lib/ares_mkquery.c +0 -24
- data/third_party/cares/cares/src/lib/ares_nameser.h +0 -482
- data/third_party/cares/cares/src/lib/ares_nowarn.c +0 -260
- data/third_party/cares/cares/src/lib/ares_nowarn.h +0 -61
- data/third_party/cares/cares/src/lib/ares_options.c +0 -406
- data/third_party/cares/cares/src/lib/ares_parse_a_reply.c +0 -209
- data/third_party/cares/cares/src/lib/ares_parse_aaaa_reply.c +0 -212
- data/third_party/cares/cares/src/lib/ares_parse_caa_reply.c +0 -199
- data/third_party/cares/cares/src/lib/ares_parse_mx_reply.c +0 -164
- data/third_party/cares/cares/src/lib/ares_parse_naptr_reply.c +0 -183
- data/third_party/cares/cares/src/lib/ares_parse_ns_reply.c +0 -177
- data/third_party/cares/cares/src/lib/ares_parse_ptr_reply.c +0 -228
- data/third_party/cares/cares/src/lib/ares_parse_soa_reply.c +0 -179
- data/third_party/cares/cares/src/lib/ares_parse_srv_reply.c +0 -168
- data/third_party/cares/cares/src/lib/ares_parse_txt_reply.c +0 -214
- data/third_party/cares/cares/src/lib/ares_platform.c +0 -11042
- data/third_party/cares/cares/src/lib/ares_platform.h +0 -43
- data/third_party/cares/cares/src/lib/ares_private.h +0 -423
- data/third_party/cares/cares/src/lib/ares_process.c +0 -1548
- data/third_party/cares/cares/src/lib/ares_query.c +0 -180
- data/third_party/cares/cares/src/lib/ares_search.c +0 -321
- data/third_party/cares/cares/src/lib/ares_send.c +0 -131
- data/third_party/cares/cares/src/lib/ares_setup.h +0 -220
- data/third_party/cares/cares/src/lib/ares_strcasecmp.c +0 -66
- data/third_party/cares/cares/src/lib/ares_strcasecmp.h +0 -30
- data/third_party/cares/cares/src/lib/ares_strdup.c +0 -49
- data/third_party/cares/cares/src/lib/ares_strdup.h +0 -24
- data/third_party/cares/cares/src/lib/ares_strerror.c +0 -56
- data/third_party/cares/cares/src/lib/ares_strsplit.c +0 -178
- data/third_party/cares/cares/src/lib/ares_strsplit.h +0 -43
- data/third_party/cares/cares/src/lib/ares_timeout.c +0 -88
- data/third_party/cares/cares/src/lib/ares_version.c +0 -11
- data/third_party/cares/cares/src/lib/ares_writev.c +0 -79
- data/third_party/cares/cares/src/lib/ares_writev.h +0 -36
- data/third_party/cares/cares/src/lib/bitncmp.c +0 -59
- data/third_party/cares/cares/src/lib/bitncmp.h +0 -26
- data/third_party/cares/cares/src/lib/config-dos.h +0 -115
- data/third_party/cares/cares/src/lib/config-win32.h +0 -351
- data/third_party/cares/cares/src/lib/inet_net_pton.c +0 -444
- data/third_party/cares/cares/src/lib/inet_ntop.c +0 -201
- data/third_party/cares/cares/src/lib/setup_once.h +0 -554
- data/third_party/cares/cares/src/lib/windows_port.c +0 -22
- data/third_party/cares/config_darwin/ares_config.h +0 -428
- data/third_party/cares/config_freebsd/ares_config.h +0 -505
- data/third_party/cares/config_linux/ares_config.h +0 -461
- data/third_party/cares/config_openbsd/ares_config.h +0 -505
- data/third_party/re2/re2/bitmap256.h +0 -117
- data/third_party/re2/re2/bitstate.cc +0 -385
- data/third_party/re2/re2/compile.cc +0 -1261
- data/third_party/re2/re2/dfa.cc +0 -2118
- data/third_party/re2/re2/filtered_re2.cc +0 -137
- data/third_party/re2/re2/filtered_re2.h +0 -114
- data/third_party/re2/re2/mimics_pcre.cc +0 -197
- data/third_party/re2/re2/nfa.cc +0 -713
- data/third_party/re2/re2/onepass.cc +0 -623
- data/third_party/re2/re2/parse.cc +0 -2483
- data/third_party/re2/re2/perl_groups.cc +0 -119
- data/third_party/re2/re2/pod_array.h +0 -55
- data/third_party/re2/re2/prefilter.cc +0 -711
- data/third_party/re2/re2/prefilter.h +0 -108
- data/third_party/re2/re2/prefilter_tree.cc +0 -407
- data/third_party/re2/re2/prefilter_tree.h +0 -139
- data/third_party/re2/re2/prog.cc +0 -1166
- data/third_party/re2/re2/prog.h +0 -455
- data/third_party/re2/re2/re2.cc +0 -1331
- data/third_party/re2/re2/re2.h +0 -1017
- data/third_party/re2/re2/regexp.cc +0 -987
- data/third_party/re2/re2/regexp.h +0 -665
- data/third_party/re2/re2/set.cc +0 -176
- data/third_party/re2/re2/set.h +0 -85
- data/third_party/re2/re2/simplify.cc +0 -665
- data/third_party/re2/re2/sparse_array.h +0 -392
- data/third_party/re2/re2/sparse_set.h +0 -264
- data/third_party/re2/re2/stringpiece.cc +0 -65
- data/third_party/re2/re2/stringpiece.h +0 -210
- data/third_party/re2/re2/tostring.cc +0 -351
- data/third_party/re2/re2/unicode_casefold.cc +0 -582
- data/third_party/re2/re2/unicode_casefold.h +0 -78
- data/third_party/re2/re2/unicode_groups.cc +0 -6269
- data/third_party/re2/re2/unicode_groups.h +0 -67
- data/third_party/re2/re2/walker-inl.h +0 -246
- data/third_party/re2/util/benchmark.h +0 -156
- data/third_party/re2/util/flags.h +0 -26
- data/third_party/re2/util/logging.h +0 -109
- data/third_party/re2/util/malloc_counter.h +0 -19
- data/third_party/re2/util/mix.h +0 -41
- data/third_party/re2/util/mutex.h +0 -148
- data/third_party/re2/util/pcre.cc +0 -1025
- data/third_party/re2/util/pcre.h +0 -681
- data/third_party/re2/util/rune.cc +0 -260
- data/third_party/re2/util/strutil.cc +0 -149
- data/third_party/re2/util/strutil.h +0 -21
- data/third_party/re2/util/test.h +0 -50
- data/third_party/re2/util/utf.h +0 -44
- data/third_party/re2/util/util.h +0 -42
- data/third_party/upb/third_party/utf8_range/naive.c +0 -92
- data/third_party/upb/third_party/utf8_range/range2-neon.c +0 -157
- data/third_party/upb/third_party/utf8_range/range2-sse.c +0 -170
- 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/xxhash/xxhash.h +0 -5580
- data/third_party/zlib/adler32.c +0 -186
- data/third_party/zlib/compress.c +0 -86
- data/third_party/zlib/crc32.c +0 -1116
- data/third_party/zlib/crc32.h +0 -9446
- data/third_party/zlib/deflate.c +0 -2211
- data/third_party/zlib/deflate.h +0 -346
- data/third_party/zlib/gzclose.c +0 -25
- data/third_party/zlib/gzguts.h +0 -219
- data/third_party/zlib/gzlib.c +0 -639
- data/third_party/zlib/gzread.c +0 -652
- data/third_party/zlib/gzwrite.c +0 -677
- data/third_party/zlib/infback.c +0 -641
- data/third_party/zlib/inffast.c +0 -323
- data/third_party/zlib/inffast.h +0 -11
- data/third_party/zlib/inffixed.h +0 -94
- data/third_party/zlib/inflate.c +0 -1592
- data/third_party/zlib/inflate.h +0 -126
- data/third_party/zlib/inftrees.c +0 -304
- data/third_party/zlib/inftrees.h +0 -62
- data/third_party/zlib/trees.c +0 -1182
- data/third_party/zlib/trees.h +0 -128
- data/third_party/zlib/uncompr.c +0 -93
- data/third_party/zlib/zconf.h +0 -534
- data/third_party/zlib/zlib.h +0 -1935
- data/third_party/zlib/zutil.c +0 -325
- data/third_party/zlib/zutil.h +0 -274
@@ -1,3004 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Copyright 2018 gRPC authors.
|
3
|
-
//
|
4
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
// you may not use this file except in compliance with the License.
|
6
|
-
// You may obtain a copy of the License at
|
7
|
-
//
|
8
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
//
|
10
|
-
// Unless required by applicable law or agreed to in writing, software
|
11
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
// See the License for the specific language governing permissions and
|
14
|
-
// limitations under the License.
|
15
|
-
//
|
16
|
-
|
17
|
-
#include <grpc/support/port_platform.h>
|
18
|
-
|
19
|
-
#include "src/core/ext/transport/chttp2/transport/chttp2_transport.h"
|
20
|
-
|
21
|
-
#include <inttypes.h>
|
22
|
-
#include <limits.h>
|
23
|
-
#include <stdio.h>
|
24
|
-
#include <stdlib.h>
|
25
|
-
#include <string.h>
|
26
|
-
|
27
|
-
#include <algorithm>
|
28
|
-
#include <memory>
|
29
|
-
#include <new>
|
30
|
-
#include <string>
|
31
|
-
#include <utility>
|
32
|
-
|
33
|
-
#include "absl/base/attributes.h"
|
34
|
-
#include "absl/status/status.h"
|
35
|
-
#include "absl/strings/cord.h"
|
36
|
-
#include "absl/strings/str_cat.h"
|
37
|
-
#include "absl/strings/str_format.h"
|
38
|
-
#include "absl/strings/string_view.h"
|
39
|
-
#include "absl/types/optional.h"
|
40
|
-
#include "absl/types/variant.h"
|
41
|
-
|
42
|
-
#include <grpc/impl/codegen/connectivity_state.h>
|
43
|
-
#include <grpc/impl/codegen/grpc_types.h>
|
44
|
-
#include <grpc/slice_buffer.h>
|
45
|
-
#include <grpc/status.h>
|
46
|
-
#include <grpc/support/alloc.h>
|
47
|
-
#include <grpc/support/atm.h>
|
48
|
-
#include <grpc/support/log.h>
|
49
|
-
|
50
|
-
#include "src/core/ext/transport/chttp2/transport/context_list.h"
|
51
|
-
#include "src/core/ext/transport/chttp2/transport/flow_control.h"
|
52
|
-
#include "src/core/ext/transport/chttp2/transport/frame.h"
|
53
|
-
#include "src/core/ext/transport/chttp2/transport/frame_data.h"
|
54
|
-
#include "src/core/ext/transport/chttp2/transport/frame_goaway.h"
|
55
|
-
#include "src/core/ext/transport/chttp2/transport/frame_rst_stream.h"
|
56
|
-
#include "src/core/ext/transport/chttp2/transport/hpack_encoder.h"
|
57
|
-
#include "src/core/ext/transport/chttp2/transport/http2_settings.h"
|
58
|
-
#include "src/core/ext/transport/chttp2/transport/internal.h"
|
59
|
-
#include "src/core/ext/transport/chttp2/transport/stream_map.h"
|
60
|
-
#include "src/core/ext/transport/chttp2/transport/varint.h"
|
61
|
-
#include "src/core/lib/channel/channel_args.h"
|
62
|
-
#include "src/core/lib/debug/stats.h"
|
63
|
-
#include "src/core/lib/experiments/experiments.h"
|
64
|
-
#include "src/core/lib/gpr/useful.h"
|
65
|
-
#include "src/core/lib/gprpp/bitset.h"
|
66
|
-
#include "src/core/lib/gprpp/debug_location.h"
|
67
|
-
#include "src/core/lib/gprpp/ref_counted.h"
|
68
|
-
#include "src/core/lib/gprpp/status_helper.h"
|
69
|
-
#include "src/core/lib/gprpp/time.h"
|
70
|
-
#include "src/core/lib/http/parser.h"
|
71
|
-
#include "src/core/lib/iomgr/combiner.h"
|
72
|
-
#include "src/core/lib/iomgr/error.h"
|
73
|
-
#include "src/core/lib/iomgr/exec_ctx.h"
|
74
|
-
#include "src/core/lib/iomgr/iomgr_fwd.h"
|
75
|
-
#include "src/core/lib/iomgr/timer.h"
|
76
|
-
#include "src/core/lib/promise/poll.h"
|
77
|
-
#include "src/core/lib/resource_quota/arena.h"
|
78
|
-
#include "src/core/lib/resource_quota/memory_quota.h"
|
79
|
-
#include "src/core/lib/resource_quota/resource_quota.h"
|
80
|
-
#include "src/core/lib/resource_quota/trace.h"
|
81
|
-
#include "src/core/lib/slice/slice.h"
|
82
|
-
#include "src/core/lib/slice/slice_buffer.h"
|
83
|
-
#include "src/core/lib/slice/slice_internal.h"
|
84
|
-
#include "src/core/lib/slice/slice_refcount.h"
|
85
|
-
#include "src/core/lib/transport/bdp_estimator.h"
|
86
|
-
#include "src/core/lib/transport/connectivity_state.h"
|
87
|
-
#include "src/core/lib/transport/error_utils.h"
|
88
|
-
#include "src/core/lib/transport/http2_errors.h"
|
89
|
-
#include "src/core/lib/transport/metadata_batch.h"
|
90
|
-
#include "src/core/lib/transport/status_conversion.h"
|
91
|
-
#include "src/core/lib/transport/transport.h"
|
92
|
-
#include "src/core/lib/transport/transport_impl.h"
|
93
|
-
|
94
|
-
#define DEFAULT_CONNECTION_WINDOW_TARGET (1024 * 1024)
|
95
|
-
#define MAX_WINDOW 0x7fffffffu
|
96
|
-
#define MAX_WRITE_BUFFER_SIZE (64 * 1024 * 1024)
|
97
|
-
#define DEFAULT_MAX_HEADER_LIST_SIZE (8 * 1024)
|
98
|
-
|
99
|
-
#define DEFAULT_CLIENT_KEEPALIVE_TIME_MS INT_MAX
|
100
|
-
#define DEFAULT_CLIENT_KEEPALIVE_TIMEOUT_MS 20000 /* 20 seconds */
|
101
|
-
#define DEFAULT_SERVER_KEEPALIVE_TIME_MS 7200000 /* 2 hours */
|
102
|
-
#define DEFAULT_SERVER_KEEPALIVE_TIMEOUT_MS 20000 /* 20 seconds */
|
103
|
-
#define DEFAULT_KEEPALIVE_PERMIT_WITHOUT_CALLS false
|
104
|
-
#define KEEPALIVE_TIME_BACKOFF_MULTIPLIER 2
|
105
|
-
|
106
|
-
#define DEFAULT_MIN_RECV_PING_INTERVAL_WITHOUT_DATA_MS 300000 /* 5 minutes */
|
107
|
-
#define DEFAULT_MAX_PINGS_BETWEEN_DATA 2
|
108
|
-
#define DEFAULT_MAX_PING_STRIKES 2
|
109
|
-
|
110
|
-
#define DEFAULT_MAX_PENDING_INDUCED_FRAMES 10000
|
111
|
-
|
112
|
-
static int g_default_client_keepalive_time_ms =
|
113
|
-
DEFAULT_CLIENT_KEEPALIVE_TIME_MS;
|
114
|
-
static int g_default_client_keepalive_timeout_ms =
|
115
|
-
DEFAULT_CLIENT_KEEPALIVE_TIMEOUT_MS;
|
116
|
-
static int g_default_server_keepalive_time_ms =
|
117
|
-
DEFAULT_SERVER_KEEPALIVE_TIME_MS;
|
118
|
-
static int g_default_server_keepalive_timeout_ms =
|
119
|
-
DEFAULT_SERVER_KEEPALIVE_TIMEOUT_MS;
|
120
|
-
static bool g_default_client_keepalive_permit_without_calls =
|
121
|
-
DEFAULT_KEEPALIVE_PERMIT_WITHOUT_CALLS;
|
122
|
-
static bool g_default_server_keepalive_permit_without_calls =
|
123
|
-
DEFAULT_KEEPALIVE_PERMIT_WITHOUT_CALLS;
|
124
|
-
|
125
|
-
static int g_default_min_recv_ping_interval_without_data_ms =
|
126
|
-
DEFAULT_MIN_RECV_PING_INTERVAL_WITHOUT_DATA_MS;
|
127
|
-
static int g_default_max_pings_without_data = DEFAULT_MAX_PINGS_BETWEEN_DATA;
|
128
|
-
static int g_default_max_ping_strikes = DEFAULT_MAX_PING_STRIKES;
|
129
|
-
|
130
|
-
#define MAX_CLIENT_STREAM_ID 0x7fffffffu
|
131
|
-
grpc_core::TraceFlag grpc_http_trace(false, "http");
|
132
|
-
grpc_core::TraceFlag grpc_keepalive_trace(false, "http_keepalive");
|
133
|
-
grpc_core::DebugOnlyTraceFlag grpc_trace_chttp2_refcount(false,
|
134
|
-
"chttp2_refcount");
|
135
|
-
|
136
|
-
// forward declarations of various callbacks that we'll build closures around
|
137
|
-
static void write_action_begin_locked(void* t, grpc_error_handle error);
|
138
|
-
static void write_action(void* t, grpc_error_handle error);
|
139
|
-
static void write_action_end(void* t, grpc_error_handle error);
|
140
|
-
static void write_action_end_locked(void* t, grpc_error_handle error);
|
141
|
-
|
142
|
-
static void read_action(void* t, grpc_error_handle error);
|
143
|
-
static void read_action_locked(void* t, grpc_error_handle error);
|
144
|
-
static void continue_read_action_locked(grpc_chttp2_transport* t);
|
145
|
-
|
146
|
-
// Set a transport level setting, and push it to our peer
|
147
|
-
static void queue_setting_update(grpc_chttp2_transport* t,
|
148
|
-
grpc_chttp2_setting_id id, uint32_t value);
|
149
|
-
|
150
|
-
static void close_from_api(grpc_chttp2_transport* t, grpc_chttp2_stream* s,
|
151
|
-
grpc_error_handle error);
|
152
|
-
|
153
|
-
// Start new streams that have been created if we can
|
154
|
-
static void maybe_start_some_streams(grpc_chttp2_transport* t);
|
155
|
-
|
156
|
-
static void connectivity_state_set(grpc_chttp2_transport* t,
|
157
|
-
grpc_connectivity_state state,
|
158
|
-
const absl::Status& status,
|
159
|
-
const char* reason);
|
160
|
-
|
161
|
-
static void benign_reclaimer_locked(void* arg, grpc_error_handle error);
|
162
|
-
static void destructive_reclaimer_locked(void* arg, grpc_error_handle error);
|
163
|
-
|
164
|
-
static void post_benign_reclaimer(grpc_chttp2_transport* t);
|
165
|
-
static void post_destructive_reclaimer(grpc_chttp2_transport* t);
|
166
|
-
|
167
|
-
static void close_transport_locked(grpc_chttp2_transport* t,
|
168
|
-
grpc_error_handle error);
|
169
|
-
static void end_all_the_calls(grpc_chttp2_transport* t,
|
170
|
-
grpc_error_handle error);
|
171
|
-
|
172
|
-
static void start_bdp_ping(void* tp, grpc_error_handle error);
|
173
|
-
static void finish_bdp_ping(void* tp, grpc_error_handle error);
|
174
|
-
static void start_bdp_ping_locked(void* tp, grpc_error_handle error);
|
175
|
-
static void finish_bdp_ping_locked(void* tp, grpc_error_handle error);
|
176
|
-
static void next_bdp_ping_timer_expired(void* tp, grpc_error_handle error);
|
177
|
-
static void next_bdp_ping_timer_expired_locked(void* tp,
|
178
|
-
grpc_error_handle error);
|
179
|
-
|
180
|
-
static void cancel_pings(grpc_chttp2_transport* t, grpc_error_handle error);
|
181
|
-
static void send_ping_locked(grpc_chttp2_transport* t,
|
182
|
-
grpc_closure* on_initiate, grpc_closure* on_ack);
|
183
|
-
static void retry_initiate_ping_locked(void* tp, grpc_error_handle error);
|
184
|
-
|
185
|
-
// keepalive-relevant functions
|
186
|
-
static void init_keepalive_ping(void* arg, grpc_error_handle error);
|
187
|
-
static void init_keepalive_ping_locked(void* arg, grpc_error_handle error);
|
188
|
-
static void start_keepalive_ping(void* arg, grpc_error_handle error);
|
189
|
-
static void finish_keepalive_ping(void* arg, grpc_error_handle error);
|
190
|
-
static void start_keepalive_ping_locked(void* arg, grpc_error_handle error);
|
191
|
-
static void finish_keepalive_ping_locked(void* arg, grpc_error_handle error);
|
192
|
-
static void keepalive_watchdog_fired(void* arg, grpc_error_handle error);
|
193
|
-
static void keepalive_watchdog_fired_locked(void* arg, grpc_error_handle error);
|
194
|
-
|
195
|
-
namespace grpc_core {
|
196
|
-
|
197
|
-
namespace {
|
198
|
-
TestOnlyGlobalHttp2TransportInitCallback test_only_init_callback = nullptr;
|
199
|
-
TestOnlyGlobalHttp2TransportDestructCallback test_only_destruct_callback =
|
200
|
-
nullptr;
|
201
|
-
bool test_only_disable_transient_failure_state_notification = false;
|
202
|
-
} // namespace
|
203
|
-
|
204
|
-
void TestOnlySetGlobalHttp2TransportInitCallback(
|
205
|
-
TestOnlyGlobalHttp2TransportInitCallback callback) {
|
206
|
-
test_only_init_callback = callback;
|
207
|
-
}
|
208
|
-
|
209
|
-
void TestOnlySetGlobalHttp2TransportDestructCallback(
|
210
|
-
TestOnlyGlobalHttp2TransportDestructCallback callback) {
|
211
|
-
test_only_destruct_callback = callback;
|
212
|
-
}
|
213
|
-
|
214
|
-
void TestOnlyGlobalHttp2TransportDisableTransientFailureStateNotification(
|
215
|
-
bool disable) {
|
216
|
-
test_only_disable_transient_failure_state_notification = disable;
|
217
|
-
}
|
218
|
-
|
219
|
-
} // namespace grpc_core
|
220
|
-
|
221
|
-
//
|
222
|
-
// CONSTRUCTION/DESTRUCTION/REFCOUNTING
|
223
|
-
//
|
224
|
-
|
225
|
-
grpc_chttp2_transport::~grpc_chttp2_transport() {
|
226
|
-
size_t i;
|
227
|
-
|
228
|
-
if (channelz_socket != nullptr) {
|
229
|
-
channelz_socket.reset();
|
230
|
-
}
|
231
|
-
|
232
|
-
grpc_endpoint_destroy(ep);
|
233
|
-
|
234
|
-
grpc_slice_buffer_destroy_internal(&qbuf);
|
235
|
-
|
236
|
-
grpc_slice_buffer_destroy_internal(&outbuf);
|
237
|
-
|
238
|
-
grpc_error_handle error =
|
239
|
-
GRPC_ERROR_CREATE_FROM_STATIC_STRING("Transport destroyed");
|
240
|
-
// ContextList::Execute follows semantics of a callback function and does not
|
241
|
-
// take a ref on error
|
242
|
-
grpc_core::ContextList::Execute(cl, nullptr, error);
|
243
|
-
GRPC_ERROR_UNREF(error);
|
244
|
-
cl = nullptr;
|
245
|
-
|
246
|
-
grpc_slice_buffer_destroy_internal(&read_buffer);
|
247
|
-
grpc_chttp2_goaway_parser_destroy(&goaway_parser);
|
248
|
-
|
249
|
-
for (i = 0; i < STREAM_LIST_COUNT; i++) {
|
250
|
-
GPR_ASSERT(lists[i].head == nullptr);
|
251
|
-
GPR_ASSERT(lists[i].tail == nullptr);
|
252
|
-
}
|
253
|
-
|
254
|
-
GRPC_ERROR_UNREF(goaway_error);
|
255
|
-
|
256
|
-
GPR_ASSERT(grpc_chttp2_stream_map_size(&stream_map) == 0);
|
257
|
-
|
258
|
-
grpc_chttp2_stream_map_destroy(&stream_map);
|
259
|
-
|
260
|
-
GRPC_COMBINER_UNREF(combiner, "chttp2_transport");
|
261
|
-
|
262
|
-
cancel_pings(this,
|
263
|
-
GRPC_ERROR_CREATE_FROM_STATIC_STRING("Transport destroyed"));
|
264
|
-
|
265
|
-
while (write_cb_pool) {
|
266
|
-
grpc_chttp2_write_cb* next = write_cb_pool->next;
|
267
|
-
gpr_free(write_cb_pool);
|
268
|
-
write_cb_pool = next;
|
269
|
-
}
|
270
|
-
|
271
|
-
GRPC_ERROR_UNREF(closed_with_error);
|
272
|
-
gpr_free(ping_acks);
|
273
|
-
if (grpc_core::test_only_destruct_callback != nullptr) {
|
274
|
-
grpc_core::test_only_destruct_callback();
|
275
|
-
}
|
276
|
-
}
|
277
|
-
|
278
|
-
static const grpc_transport_vtable* get_vtable(void);
|
279
|
-
|
280
|
-
static void read_channel_args(grpc_chttp2_transport* t,
|
281
|
-
const grpc_core::ChannelArgs& channel_args,
|
282
|
-
bool is_client) {
|
283
|
-
const int initial_sequence_number =
|
284
|
-
channel_args.GetInt(GRPC_ARG_HTTP2_INITIAL_SEQUENCE_NUMBER).value_or(-1);
|
285
|
-
if (initial_sequence_number > 0) {
|
286
|
-
if ((t->next_stream_id & 1) != (initial_sequence_number & 1)) {
|
287
|
-
gpr_log(GPR_ERROR, "%s: low bit must be %d on %s",
|
288
|
-
GRPC_ARG_HTTP2_INITIAL_SEQUENCE_NUMBER, t->next_stream_id & 1,
|
289
|
-
is_client ? "client" : "server");
|
290
|
-
} else {
|
291
|
-
t->next_stream_id = static_cast<uint32_t>(initial_sequence_number);
|
292
|
-
}
|
293
|
-
}
|
294
|
-
|
295
|
-
const int max_hpack_table_size =
|
296
|
-
channel_args.GetInt(GRPC_ARG_HTTP2_HPACK_TABLE_SIZE_ENCODER).value_or(-1);
|
297
|
-
if (max_hpack_table_size >= 0) {
|
298
|
-
t->hpack_compressor.SetMaxUsableSize(max_hpack_table_size);
|
299
|
-
}
|
300
|
-
|
301
|
-
t->ping_policy.max_pings_without_data =
|
302
|
-
std::max(0, channel_args.GetInt(GRPC_ARG_HTTP2_MAX_PINGS_WITHOUT_DATA)
|
303
|
-
.value_or(g_default_max_pings_without_data));
|
304
|
-
t->ping_policy.max_ping_strikes =
|
305
|
-
std::max(0, channel_args.GetInt(GRPC_ARG_HTTP2_MAX_PING_STRIKES)
|
306
|
-
.value_or(g_default_max_ping_strikes));
|
307
|
-
t->ping_policy.min_recv_ping_interval_without_data =
|
308
|
-
std::max(grpc_core::Duration::Zero(),
|
309
|
-
channel_args
|
310
|
-
.GetDurationFromIntMillis(
|
311
|
-
GRPC_ARG_HTTP2_MIN_RECV_PING_INTERVAL_WITHOUT_DATA_MS)
|
312
|
-
.value_or(grpc_core::Duration::Milliseconds(
|
313
|
-
g_default_min_recv_ping_interval_without_data_ms)));
|
314
|
-
t->write_buffer_size =
|
315
|
-
std::max(0, channel_args.GetInt(GRPC_ARG_HTTP2_WRITE_BUFFER_SIZE)
|
316
|
-
.value_or(grpc_core::chttp2::kDefaultWindow));
|
317
|
-
t->keepalive_time =
|
318
|
-
std::max(grpc_core::Duration::Milliseconds(1),
|
319
|
-
channel_args.GetDurationFromIntMillis(GRPC_ARG_KEEPALIVE_TIME_MS)
|
320
|
-
.value_or(grpc_core::Duration::Milliseconds(
|
321
|
-
t->is_client ? g_default_client_keepalive_time_ms
|
322
|
-
: g_default_server_keepalive_time_ms)));
|
323
|
-
t->keepalive_timeout = std::max(
|
324
|
-
grpc_core::Duration::Zero(),
|
325
|
-
channel_args.GetDurationFromIntMillis(GRPC_ARG_KEEPALIVE_TIMEOUT_MS)
|
326
|
-
.value_or(grpc_core::Duration::Milliseconds(
|
327
|
-
t->is_client ? g_default_client_keepalive_timeout_ms
|
328
|
-
: g_default_server_keepalive_timeout_ms)));
|
329
|
-
t->keepalive_permit_without_calls =
|
330
|
-
channel_args.GetBool(GRPC_ARG_KEEPALIVE_PERMIT_WITHOUT_CALLS)
|
331
|
-
.value_or(false);
|
332
|
-
|
333
|
-
if (channel_args.GetBool(GRPC_ARG_ENABLE_CHANNELZ)
|
334
|
-
.value_or(GRPC_ENABLE_CHANNELZ_DEFAULT)) {
|
335
|
-
t->channelz_socket =
|
336
|
-
grpc_core::MakeRefCounted<grpc_core::channelz::SocketNode>(
|
337
|
-
std::string(grpc_endpoint_get_local_address(t->ep)), t->peer_string,
|
338
|
-
absl::StrFormat("%s %s", get_vtable()->name, t->peer_string),
|
339
|
-
channel_args
|
340
|
-
.GetObjectRef<grpc_core::channelz::SocketNode::Security>());
|
341
|
-
}
|
342
|
-
|
343
|
-
static const struct {
|
344
|
-
absl::string_view channel_arg_name;
|
345
|
-
grpc_chttp2_setting_id setting_id;
|
346
|
-
int default_value;
|
347
|
-
int min;
|
348
|
-
int max;
|
349
|
-
bool availability[2] /* server, client */;
|
350
|
-
} settings_map[] = {{GRPC_ARG_MAX_CONCURRENT_STREAMS,
|
351
|
-
GRPC_CHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS,
|
352
|
-
-1,
|
353
|
-
0,
|
354
|
-
INT32_MAX,
|
355
|
-
{true, false}},
|
356
|
-
{GRPC_ARG_HTTP2_HPACK_TABLE_SIZE_DECODER,
|
357
|
-
GRPC_CHTTP2_SETTINGS_HEADER_TABLE_SIZE,
|
358
|
-
-1,
|
359
|
-
0,
|
360
|
-
INT32_MAX,
|
361
|
-
{true, true}},
|
362
|
-
{GRPC_ARG_MAX_METADATA_SIZE,
|
363
|
-
GRPC_CHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE,
|
364
|
-
-1,
|
365
|
-
0,
|
366
|
-
INT32_MAX,
|
367
|
-
{true, true}},
|
368
|
-
{GRPC_ARG_HTTP2_MAX_FRAME_SIZE,
|
369
|
-
GRPC_CHTTP2_SETTINGS_MAX_FRAME_SIZE,
|
370
|
-
-1,
|
371
|
-
16384,
|
372
|
-
16777215,
|
373
|
-
{true, true}},
|
374
|
-
{GRPC_ARG_HTTP2_ENABLE_TRUE_BINARY,
|
375
|
-
GRPC_CHTTP2_SETTINGS_GRPC_ALLOW_TRUE_BINARY_METADATA,
|
376
|
-
1,
|
377
|
-
0,
|
378
|
-
1,
|
379
|
-
{true, true}},
|
380
|
-
{GRPC_ARG_HTTP2_STREAM_LOOKAHEAD_BYTES,
|
381
|
-
GRPC_CHTTP2_SETTINGS_INITIAL_WINDOW_SIZE,
|
382
|
-
-1,
|
383
|
-
5,
|
384
|
-
INT32_MAX,
|
385
|
-
{true, true}}};
|
386
|
-
|
387
|
-
for (size_t i = 0; i < GPR_ARRAY_SIZE(settings_map); i++) {
|
388
|
-
const auto& setting = settings_map[i];
|
389
|
-
if (setting.availability[is_client]) {
|
390
|
-
const int value = channel_args.GetInt(setting.channel_arg_name)
|
391
|
-
.value_or(setting.default_value);
|
392
|
-
if (value >= 0) {
|
393
|
-
queue_setting_update(t, setting.setting_id,
|
394
|
-
grpc_core::Clamp(value, setting.min, setting.max));
|
395
|
-
}
|
396
|
-
} else if (channel_args.Contains(setting.channel_arg_name)) {
|
397
|
-
gpr_log(GPR_DEBUG, "%s is not available on %s",
|
398
|
-
std::string(setting.channel_arg_name).c_str(),
|
399
|
-
is_client ? "clients" : "servers");
|
400
|
-
}
|
401
|
-
}
|
402
|
-
}
|
403
|
-
|
404
|
-
static void init_transport_keepalive_settings(grpc_chttp2_transport* t) {
|
405
|
-
if (t->is_client) {
|
406
|
-
t->keepalive_time = g_default_client_keepalive_time_ms == INT_MAX
|
407
|
-
? grpc_core::Duration::Infinity()
|
408
|
-
: grpc_core::Duration::Milliseconds(
|
409
|
-
g_default_client_keepalive_time_ms);
|
410
|
-
t->keepalive_timeout = g_default_client_keepalive_timeout_ms == INT_MAX
|
411
|
-
? grpc_core::Duration::Infinity()
|
412
|
-
: grpc_core::Duration::Milliseconds(
|
413
|
-
g_default_client_keepalive_timeout_ms);
|
414
|
-
t->keepalive_permit_without_calls =
|
415
|
-
g_default_client_keepalive_permit_without_calls;
|
416
|
-
} else {
|
417
|
-
t->keepalive_time = g_default_server_keepalive_time_ms == INT_MAX
|
418
|
-
? grpc_core::Duration::Infinity()
|
419
|
-
: grpc_core::Duration::Milliseconds(
|
420
|
-
g_default_server_keepalive_time_ms);
|
421
|
-
t->keepalive_timeout = g_default_server_keepalive_timeout_ms == INT_MAX
|
422
|
-
? grpc_core::Duration::Infinity()
|
423
|
-
: grpc_core::Duration::Milliseconds(
|
424
|
-
g_default_server_keepalive_timeout_ms);
|
425
|
-
t->keepalive_permit_without_calls =
|
426
|
-
g_default_server_keepalive_permit_without_calls;
|
427
|
-
}
|
428
|
-
}
|
429
|
-
|
430
|
-
static void configure_transport_ping_policy(grpc_chttp2_transport* t) {
|
431
|
-
t->ping_policy.max_pings_without_data = g_default_max_pings_without_data;
|
432
|
-
t->ping_policy.max_ping_strikes = g_default_max_ping_strikes;
|
433
|
-
t->ping_policy.min_recv_ping_interval_without_data =
|
434
|
-
grpc_core::Duration::Milliseconds(
|
435
|
-
g_default_min_recv_ping_interval_without_data_ms);
|
436
|
-
}
|
437
|
-
|
438
|
-
static void init_keepalive_pings_if_enabled(grpc_chttp2_transport* t) {
|
439
|
-
if (t->keepalive_time != grpc_core::Duration::Infinity()) {
|
440
|
-
t->keepalive_state = GRPC_CHTTP2_KEEPALIVE_STATE_WAITING;
|
441
|
-
GRPC_CHTTP2_REF_TRANSPORT(t, "init keepalive ping");
|
442
|
-
GRPC_CLOSURE_INIT(&t->init_keepalive_ping_locked, init_keepalive_ping, t,
|
443
|
-
grpc_schedule_on_exec_ctx);
|
444
|
-
grpc_timer_init(&t->keepalive_ping_timer,
|
445
|
-
grpc_core::Timestamp::Now() + t->keepalive_time,
|
446
|
-
&t->init_keepalive_ping_locked);
|
447
|
-
} else {
|
448
|
-
// Use GRPC_CHTTP2_KEEPALIVE_STATE_DISABLED to indicate there are no
|
449
|
-
// inflight keeaplive timers
|
450
|
-
t->keepalive_state = GRPC_CHTTP2_KEEPALIVE_STATE_DISABLED;
|
451
|
-
}
|
452
|
-
}
|
453
|
-
|
454
|
-
grpc_chttp2_transport::grpc_chttp2_transport(
|
455
|
-
const grpc_core::ChannelArgs& channel_args, grpc_endpoint* ep,
|
456
|
-
bool is_client)
|
457
|
-
: refs(1, GRPC_TRACE_FLAG_ENABLED(grpc_trace_chttp2_refcount)
|
458
|
-
? "chttp2_refcount"
|
459
|
-
: nullptr),
|
460
|
-
ep(ep),
|
461
|
-
peer_string(grpc_endpoint_get_peer(ep)),
|
462
|
-
memory_owner(channel_args.GetObject<grpc_core::ResourceQuota>()
|
463
|
-
->memory_quota()
|
464
|
-
->CreateMemoryOwner(absl::StrCat(
|
465
|
-
grpc_endpoint_get_peer(ep), ":client_transport"))),
|
466
|
-
self_reservation(
|
467
|
-
memory_owner.MakeReservation(sizeof(grpc_chttp2_transport))),
|
468
|
-
combiner(grpc_combiner_create()),
|
469
|
-
state_tracker(is_client ? "client_transport" : "server_transport",
|
470
|
-
GRPC_CHANNEL_READY),
|
471
|
-
is_client(is_client),
|
472
|
-
next_stream_id(is_client ? 1 : 2),
|
473
|
-
flow_control(
|
474
|
-
peer_string.c_str(),
|
475
|
-
channel_args.GetBool(GRPC_ARG_HTTP2_BDP_PROBE).value_or(true),
|
476
|
-
&memory_owner),
|
477
|
-
deframe_state(is_client ? GRPC_DTS_FH_0 : GRPC_DTS_CLIENT_PREFIX_0) {
|
478
|
-
GPR_ASSERT(strlen(GRPC_CHTTP2_CLIENT_CONNECT_STRING) ==
|
479
|
-
GRPC_CHTTP2_CLIENT_CONNECT_STRLEN);
|
480
|
-
base.vtable = get_vtable();
|
481
|
-
// 8 is a random stab in the dark as to a good initial size: it's small enough
|
482
|
-
// that it shouldn't waste memory for infrequently used connections, yet
|
483
|
-
// large enough that the exponential growth should happen nicely when it's
|
484
|
-
// needed.
|
485
|
-
// TODO(ctiller): tune this
|
486
|
-
grpc_chttp2_stream_map_init(&stream_map, 8);
|
487
|
-
|
488
|
-
grpc_slice_buffer_init(&read_buffer);
|
489
|
-
grpc_slice_buffer_init(&outbuf);
|
490
|
-
if (is_client) {
|
491
|
-
grpc_slice_buffer_add(&outbuf, grpc_slice_from_copied_string(
|
492
|
-
GRPC_CHTTP2_CLIENT_CONNECT_STRING));
|
493
|
-
}
|
494
|
-
grpc_slice_buffer_init(&qbuf);
|
495
|
-
// copy in initial settings to all setting sets
|
496
|
-
size_t i;
|
497
|
-
int j;
|
498
|
-
for (i = 0; i < GRPC_CHTTP2_NUM_SETTINGS; i++) {
|
499
|
-
for (j = 0; j < GRPC_NUM_SETTING_SETS; j++) {
|
500
|
-
settings[j][i] = grpc_chttp2_settings_parameters[i].default_value;
|
501
|
-
}
|
502
|
-
}
|
503
|
-
grpc_chttp2_goaway_parser_init(&goaway_parser);
|
504
|
-
|
505
|
-
// configure http2 the way we like it
|
506
|
-
if (is_client) {
|
507
|
-
queue_setting_update(this, GRPC_CHTTP2_SETTINGS_ENABLE_PUSH, 0);
|
508
|
-
queue_setting_update(this, GRPC_CHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS, 0);
|
509
|
-
}
|
510
|
-
queue_setting_update(this, GRPC_CHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE,
|
511
|
-
DEFAULT_MAX_HEADER_LIST_SIZE);
|
512
|
-
queue_setting_update(this,
|
513
|
-
GRPC_CHTTP2_SETTINGS_GRPC_ALLOW_TRUE_BINARY_METADATA, 1);
|
514
|
-
|
515
|
-
configure_transport_ping_policy(this);
|
516
|
-
init_transport_keepalive_settings(this);
|
517
|
-
|
518
|
-
read_channel_args(this, channel_args, is_client);
|
519
|
-
|
520
|
-
// No pings allowed before receiving a header or data frame.
|
521
|
-
ping_state.pings_before_data_required = 0;
|
522
|
-
ping_state.is_delayed_ping_timer_set = false;
|
523
|
-
ping_state.last_ping_sent_time = grpc_core::Timestamp::InfPast();
|
524
|
-
|
525
|
-
ping_recv_state.last_ping_recv_time = grpc_core::Timestamp::InfPast();
|
526
|
-
ping_recv_state.ping_strikes = 0;
|
527
|
-
|
528
|
-
init_keepalive_pings_if_enabled(this);
|
529
|
-
|
530
|
-
if (flow_control.bdp_probe()) {
|
531
|
-
bdp_ping_blocked = true;
|
532
|
-
grpc_chttp2_act_on_flowctl_action(flow_control.PeriodicUpdate(), this,
|
533
|
-
nullptr);
|
534
|
-
}
|
535
|
-
|
536
|
-
grpc_chttp2_initiate_write(this, GRPC_CHTTP2_INITIATE_WRITE_INITIAL_WRITE);
|
537
|
-
post_benign_reclaimer(this);
|
538
|
-
if (grpc_core::test_only_init_callback != nullptr) {
|
539
|
-
grpc_core::test_only_init_callback();
|
540
|
-
}
|
541
|
-
}
|
542
|
-
|
543
|
-
static void destroy_transport_locked(void* tp, grpc_error_handle /*error*/) {
|
544
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(tp);
|
545
|
-
t->destroying = 1;
|
546
|
-
close_transport_locked(
|
547
|
-
t, grpc_error_set_int(
|
548
|
-
GRPC_ERROR_CREATE_FROM_STATIC_STRING("Transport destroyed"),
|
549
|
-
GRPC_ERROR_INT_OCCURRED_DURING_WRITE, t->write_state));
|
550
|
-
t->memory_owner.Reset();
|
551
|
-
// Must be the last line.
|
552
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "destroy");
|
553
|
-
}
|
554
|
-
|
555
|
-
static void destroy_transport(grpc_transport* gt) {
|
556
|
-
grpc_chttp2_transport* t = reinterpret_cast<grpc_chttp2_transport*>(gt);
|
557
|
-
t->combiner->Run(GRPC_CLOSURE_CREATE(destroy_transport_locked, t, nullptr),
|
558
|
-
GRPC_ERROR_NONE);
|
559
|
-
}
|
560
|
-
|
561
|
-
static void close_transport_locked(grpc_chttp2_transport* t,
|
562
|
-
grpc_error_handle error) {
|
563
|
-
end_all_the_calls(t, GRPC_ERROR_REF(error));
|
564
|
-
cancel_pings(t, GRPC_ERROR_REF(error));
|
565
|
-
if (GRPC_ERROR_IS_NONE(t->closed_with_error)) {
|
566
|
-
if (!grpc_error_has_clear_grpc_status(error)) {
|
567
|
-
error = grpc_error_set_int(error, GRPC_ERROR_INT_GRPC_STATUS,
|
568
|
-
GRPC_STATUS_UNAVAILABLE);
|
569
|
-
}
|
570
|
-
if (t->write_state != GRPC_CHTTP2_WRITE_STATE_IDLE) {
|
571
|
-
if (GRPC_ERROR_IS_NONE(t->close_transport_on_writes_finished)) {
|
572
|
-
t->close_transport_on_writes_finished =
|
573
|
-
GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
574
|
-
"Delayed close due to in-progress write");
|
575
|
-
}
|
576
|
-
t->close_transport_on_writes_finished =
|
577
|
-
grpc_error_add_child(t->close_transport_on_writes_finished, error);
|
578
|
-
return;
|
579
|
-
}
|
580
|
-
GPR_ASSERT(!GRPC_ERROR_IS_NONE(error));
|
581
|
-
t->closed_with_error = GRPC_ERROR_REF(error);
|
582
|
-
connectivity_state_set(t, GRPC_CHANNEL_SHUTDOWN, absl::Status(),
|
583
|
-
"close_transport");
|
584
|
-
if (t->ping_state.is_delayed_ping_timer_set) {
|
585
|
-
grpc_timer_cancel(&t->ping_state.delayed_ping_timer);
|
586
|
-
}
|
587
|
-
if (t->have_next_bdp_ping_timer) {
|
588
|
-
grpc_timer_cancel(&t->next_bdp_ping_timer);
|
589
|
-
}
|
590
|
-
switch (t->keepalive_state) {
|
591
|
-
case GRPC_CHTTP2_KEEPALIVE_STATE_WAITING:
|
592
|
-
grpc_timer_cancel(&t->keepalive_ping_timer);
|
593
|
-
break;
|
594
|
-
case GRPC_CHTTP2_KEEPALIVE_STATE_PINGING:
|
595
|
-
grpc_timer_cancel(&t->keepalive_ping_timer);
|
596
|
-
grpc_timer_cancel(&t->keepalive_watchdog_timer);
|
597
|
-
break;
|
598
|
-
case GRPC_CHTTP2_KEEPALIVE_STATE_DYING:
|
599
|
-
case GRPC_CHTTP2_KEEPALIVE_STATE_DISABLED:
|
600
|
-
// keepalive timers are not set in these two states
|
601
|
-
break;
|
602
|
-
}
|
603
|
-
|
604
|
-
// flush writable stream list to avoid dangling references
|
605
|
-
grpc_chttp2_stream* s;
|
606
|
-
while (grpc_chttp2_list_pop_writable_stream(t, &s)) {
|
607
|
-
GRPC_CHTTP2_STREAM_UNREF(s, "chttp2_writing:close");
|
608
|
-
}
|
609
|
-
GPR_ASSERT(t->write_state == GRPC_CHTTP2_WRITE_STATE_IDLE);
|
610
|
-
grpc_endpoint_shutdown(t->ep, GRPC_ERROR_REF(error));
|
611
|
-
}
|
612
|
-
if (t->notify_on_receive_settings != nullptr) {
|
613
|
-
grpc_core::ExecCtx::Run(DEBUG_LOCATION, t->notify_on_receive_settings,
|
614
|
-
GRPC_ERROR_REF(error));
|
615
|
-
t->notify_on_receive_settings = nullptr;
|
616
|
-
}
|
617
|
-
if (t->notify_on_close != nullptr) {
|
618
|
-
grpc_core::ExecCtx::Run(DEBUG_LOCATION, t->notify_on_close,
|
619
|
-
GRPC_ERROR_REF(error));
|
620
|
-
t->notify_on_close = nullptr;
|
621
|
-
}
|
622
|
-
GRPC_ERROR_UNREF(error);
|
623
|
-
}
|
624
|
-
|
625
|
-
#ifndef NDEBUG
|
626
|
-
void grpc_chttp2_stream_ref(grpc_chttp2_stream* s, const char* reason) {
|
627
|
-
grpc_stream_ref(s->refcount, reason);
|
628
|
-
}
|
629
|
-
void grpc_chttp2_stream_unref(grpc_chttp2_stream* s, const char* reason) {
|
630
|
-
grpc_stream_unref(s->refcount, reason);
|
631
|
-
}
|
632
|
-
#else
|
633
|
-
void grpc_chttp2_stream_ref(grpc_chttp2_stream* s) {
|
634
|
-
grpc_stream_ref(s->refcount);
|
635
|
-
}
|
636
|
-
void grpc_chttp2_stream_unref(grpc_chttp2_stream* s) {
|
637
|
-
grpc_stream_unref(s->refcount);
|
638
|
-
}
|
639
|
-
#endif
|
640
|
-
|
641
|
-
grpc_chttp2_stream::Reffer::Reffer(grpc_chttp2_stream* s) {
|
642
|
-
// We reserve one 'active stream' that's dropped when the stream is
|
643
|
-
// read-closed. The others are for Chttp2IncomingByteStreams that are
|
644
|
-
// actively reading
|
645
|
-
GRPC_CHTTP2_STREAM_REF(s, "chttp2");
|
646
|
-
GRPC_CHTTP2_REF_TRANSPORT(s->t, "stream");
|
647
|
-
}
|
648
|
-
|
649
|
-
grpc_chttp2_stream::grpc_chttp2_stream(grpc_chttp2_transport* t,
|
650
|
-
grpc_stream_refcount* refcount,
|
651
|
-
const void* server_data,
|
652
|
-
grpc_core::Arena* arena)
|
653
|
-
: t(t),
|
654
|
-
refcount(refcount),
|
655
|
-
reffer(this),
|
656
|
-
initial_metadata_buffer(arena),
|
657
|
-
trailing_metadata_buffer(arena),
|
658
|
-
flow_control(&t->flow_control) {
|
659
|
-
if (server_data) {
|
660
|
-
id = static_cast<uint32_t>(reinterpret_cast<uintptr_t>(server_data));
|
661
|
-
*t->accepting_stream = this;
|
662
|
-
grpc_chttp2_stream_map_add(&t->stream_map, id, this);
|
663
|
-
post_destructive_reclaimer(t);
|
664
|
-
}
|
665
|
-
|
666
|
-
grpc_slice_buffer_init(&frame_storage);
|
667
|
-
grpc_slice_buffer_init(&flow_controlled_buffer);
|
668
|
-
}
|
669
|
-
|
670
|
-
grpc_chttp2_stream::~grpc_chttp2_stream() {
|
671
|
-
grpc_chttp2_list_remove_stalled_by_stream(t, this);
|
672
|
-
grpc_chttp2_list_remove_stalled_by_transport(t, this);
|
673
|
-
|
674
|
-
if (t->channelz_socket != nullptr) {
|
675
|
-
if ((t->is_client && eos_received) || (!t->is_client && eos_sent)) {
|
676
|
-
t->channelz_socket->RecordStreamSucceeded();
|
677
|
-
} else {
|
678
|
-
t->channelz_socket->RecordStreamFailed();
|
679
|
-
}
|
680
|
-
}
|
681
|
-
|
682
|
-
GPR_ASSERT((write_closed && read_closed) || id == 0);
|
683
|
-
if (id != 0) {
|
684
|
-
GPR_ASSERT(grpc_chttp2_stream_map_find(&t->stream_map, id) == nullptr);
|
685
|
-
}
|
686
|
-
|
687
|
-
grpc_slice_buffer_destroy_internal(&frame_storage);
|
688
|
-
|
689
|
-
for (int i = 0; i < STREAM_LIST_COUNT; i++) {
|
690
|
-
if (GPR_UNLIKELY(included.is_set(i))) {
|
691
|
-
gpr_log(GPR_ERROR, "%s stream %d still included in list %d",
|
692
|
-
t->is_client ? "client" : "server", id, i);
|
693
|
-
abort();
|
694
|
-
}
|
695
|
-
}
|
696
|
-
|
697
|
-
GPR_ASSERT(send_initial_metadata_finished == nullptr);
|
698
|
-
GPR_ASSERT(send_trailing_metadata_finished == nullptr);
|
699
|
-
GPR_ASSERT(recv_initial_metadata_ready == nullptr);
|
700
|
-
GPR_ASSERT(recv_message_ready == nullptr);
|
701
|
-
GPR_ASSERT(recv_trailing_metadata_finished == nullptr);
|
702
|
-
grpc_slice_buffer_destroy_internal(&flow_controlled_buffer);
|
703
|
-
GRPC_ERROR_UNREF(read_closed_error);
|
704
|
-
GRPC_ERROR_UNREF(write_closed_error);
|
705
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "stream");
|
706
|
-
grpc_core::ExecCtx::Run(DEBUG_LOCATION, destroy_stream_arg, GRPC_ERROR_NONE);
|
707
|
-
}
|
708
|
-
|
709
|
-
static int init_stream(grpc_transport* gt, grpc_stream* gs,
|
710
|
-
grpc_stream_refcount* refcount, const void* server_data,
|
711
|
-
grpc_core::Arena* arena) {
|
712
|
-
grpc_chttp2_transport* t = reinterpret_cast<grpc_chttp2_transport*>(gt);
|
713
|
-
new (gs) grpc_chttp2_stream(t, refcount, server_data, arena);
|
714
|
-
return 0;
|
715
|
-
}
|
716
|
-
|
717
|
-
static void destroy_stream_locked(void* sp, grpc_error_handle /*error*/) {
|
718
|
-
grpc_chttp2_stream* s = static_cast<grpc_chttp2_stream*>(sp);
|
719
|
-
s->~grpc_chttp2_stream();
|
720
|
-
}
|
721
|
-
|
722
|
-
static void destroy_stream(grpc_transport* gt, grpc_stream* gs,
|
723
|
-
grpc_closure* then_schedule_closure) {
|
724
|
-
grpc_chttp2_transport* t = reinterpret_cast<grpc_chttp2_transport*>(gt);
|
725
|
-
grpc_chttp2_stream* s = reinterpret_cast<grpc_chttp2_stream*>(gs);
|
726
|
-
|
727
|
-
s->destroy_stream_arg = then_schedule_closure;
|
728
|
-
t->combiner->Run(
|
729
|
-
GRPC_CLOSURE_INIT(&s->destroy_stream, destroy_stream_locked, s, nullptr),
|
730
|
-
GRPC_ERROR_NONE);
|
731
|
-
}
|
732
|
-
|
733
|
-
grpc_chttp2_stream* grpc_chttp2_parsing_accept_stream(grpc_chttp2_transport* t,
|
734
|
-
uint32_t id) {
|
735
|
-
if (t->accept_stream_cb == nullptr) {
|
736
|
-
return nullptr;
|
737
|
-
}
|
738
|
-
grpc_chttp2_stream* accepting = nullptr;
|
739
|
-
GPR_ASSERT(t->accepting_stream == nullptr);
|
740
|
-
t->accepting_stream = &accepting;
|
741
|
-
t->accept_stream_cb(t->accept_stream_cb_user_data, &t->base,
|
742
|
-
reinterpret_cast<void*>(id));
|
743
|
-
t->accepting_stream = nullptr;
|
744
|
-
return accepting;
|
745
|
-
}
|
746
|
-
|
747
|
-
//
|
748
|
-
// OUTPUT PROCESSING
|
749
|
-
//
|
750
|
-
|
751
|
-
static const char* write_state_name(grpc_chttp2_write_state st) {
|
752
|
-
switch (st) {
|
753
|
-
case GRPC_CHTTP2_WRITE_STATE_IDLE:
|
754
|
-
return "IDLE";
|
755
|
-
case GRPC_CHTTP2_WRITE_STATE_WRITING:
|
756
|
-
return "WRITING";
|
757
|
-
case GRPC_CHTTP2_WRITE_STATE_WRITING_WITH_MORE:
|
758
|
-
return "WRITING+MORE";
|
759
|
-
}
|
760
|
-
GPR_UNREACHABLE_CODE(return "UNKNOWN");
|
761
|
-
}
|
762
|
-
|
763
|
-
static void set_write_state(grpc_chttp2_transport* t,
|
764
|
-
grpc_chttp2_write_state st, const char* reason) {
|
765
|
-
GRPC_CHTTP2_IF_TRACING(
|
766
|
-
gpr_log(GPR_INFO, "W:%p %s [%s] state %s -> %s [%s]", t,
|
767
|
-
t->is_client ? "CLIENT" : "SERVER", t->peer_string.c_str(),
|
768
|
-
write_state_name(t->write_state), write_state_name(st), reason));
|
769
|
-
t->write_state = st;
|
770
|
-
// If the state is being reset back to idle, it means a write was just
|
771
|
-
// finished. Make sure all the run_after_write closures are scheduled.
|
772
|
-
//
|
773
|
-
// This is also our chance to close the transport if the transport was marked
|
774
|
-
// to be closed after all writes finish (for example, if we received a go-away
|
775
|
-
// from peer while we had some pending writes)
|
776
|
-
if (st == GRPC_CHTTP2_WRITE_STATE_IDLE) {
|
777
|
-
grpc_core::ExecCtx::RunList(DEBUG_LOCATION, &t->run_after_write);
|
778
|
-
if (!GRPC_ERROR_IS_NONE(t->close_transport_on_writes_finished)) {
|
779
|
-
grpc_error_handle err = t->close_transport_on_writes_finished;
|
780
|
-
t->close_transport_on_writes_finished = GRPC_ERROR_NONE;
|
781
|
-
close_transport_locked(t, err);
|
782
|
-
}
|
783
|
-
}
|
784
|
-
}
|
785
|
-
|
786
|
-
void grpc_chttp2_initiate_write(grpc_chttp2_transport* t,
|
787
|
-
grpc_chttp2_initiate_write_reason reason) {
|
788
|
-
switch (t->write_state) {
|
789
|
-
case GRPC_CHTTP2_WRITE_STATE_IDLE:
|
790
|
-
set_write_state(t, GRPC_CHTTP2_WRITE_STATE_WRITING,
|
791
|
-
grpc_chttp2_initiate_write_reason_string(reason));
|
792
|
-
GRPC_CHTTP2_REF_TRANSPORT(t, "writing");
|
793
|
-
// Note that the 'write_action_begin_locked' closure is being scheduled
|
794
|
-
// on the 'finally_scheduler' of t->combiner. This means that
|
795
|
-
// 'write_action_begin_locked' is called only *after* all the other
|
796
|
-
// closures (some of which are potentially initiating more writes on the
|
797
|
-
// transport) are executed on the t->combiner.
|
798
|
-
//
|
799
|
-
// The reason for scheduling on finally_scheduler is to make sure we batch
|
800
|
-
// as many writes as possible. 'write_action_begin_locked' is the function
|
801
|
-
// that gathers all the relevant bytes (which are at various places in the
|
802
|
-
// grpc_chttp2_transport structure) and append them to 'outbuf' field in
|
803
|
-
// grpc_chttp2_transport thereby batching what would have been potentially
|
804
|
-
// multiple write operations.
|
805
|
-
//
|
806
|
-
// Also, 'write_action_begin_locked' only gathers the bytes into outbuf.
|
807
|
-
// It does not call the endpoint to write the bytes. That is done by the
|
808
|
-
// 'write_action' (which is scheduled by 'write_action_begin_locked')
|
809
|
-
t->combiner->FinallyRun(
|
810
|
-
GRPC_CLOSURE_INIT(&t->write_action_begin_locked,
|
811
|
-
write_action_begin_locked, t, nullptr),
|
812
|
-
GRPC_ERROR_NONE);
|
813
|
-
break;
|
814
|
-
case GRPC_CHTTP2_WRITE_STATE_WRITING:
|
815
|
-
set_write_state(t, GRPC_CHTTP2_WRITE_STATE_WRITING_WITH_MORE,
|
816
|
-
grpc_chttp2_initiate_write_reason_string(reason));
|
817
|
-
break;
|
818
|
-
case GRPC_CHTTP2_WRITE_STATE_WRITING_WITH_MORE:
|
819
|
-
break;
|
820
|
-
}
|
821
|
-
}
|
822
|
-
|
823
|
-
void grpc_chttp2_mark_stream_writable(grpc_chttp2_transport* t,
|
824
|
-
grpc_chttp2_stream* s) {
|
825
|
-
if (GRPC_ERROR_IS_NONE(t->closed_with_error) &&
|
826
|
-
grpc_chttp2_list_add_writable_stream(t, s)) {
|
827
|
-
GRPC_CHTTP2_STREAM_REF(s, "chttp2_writing:become");
|
828
|
-
}
|
829
|
-
}
|
830
|
-
|
831
|
-
static const char* begin_writing_desc(bool partial) {
|
832
|
-
if (partial) {
|
833
|
-
return "begin partial write in background";
|
834
|
-
} else {
|
835
|
-
return "begin write in current thread";
|
836
|
-
}
|
837
|
-
}
|
838
|
-
|
839
|
-
static void write_action_begin_locked(void* gt,
|
840
|
-
grpc_error_handle /*error_ignored*/) {
|
841
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(gt);
|
842
|
-
GPR_ASSERT(t->write_state != GRPC_CHTTP2_WRITE_STATE_IDLE);
|
843
|
-
grpc_chttp2_begin_write_result r;
|
844
|
-
if (!GRPC_ERROR_IS_NONE(t->closed_with_error)) {
|
845
|
-
r.writing = false;
|
846
|
-
} else {
|
847
|
-
r = grpc_chttp2_begin_write(t);
|
848
|
-
}
|
849
|
-
if (r.writing) {
|
850
|
-
set_write_state(t,
|
851
|
-
r.partial ? GRPC_CHTTP2_WRITE_STATE_WRITING_WITH_MORE
|
852
|
-
: GRPC_CHTTP2_WRITE_STATE_WRITING,
|
853
|
-
begin_writing_desc(r.partial));
|
854
|
-
write_action(t, GRPC_ERROR_NONE);
|
855
|
-
if (t->reading_paused_on_pending_induced_frames) {
|
856
|
-
GPR_ASSERT(t->num_pending_induced_frames == 0);
|
857
|
-
// We had paused reading, because we had many induced frames (SETTINGS
|
858
|
-
// ACK, PINGS ACK and RST_STREAMS) pending in t->qbuf. Now that we have
|
859
|
-
// been able to flush qbuf, we can resume reading.
|
860
|
-
GRPC_CHTTP2_IF_TRACING(gpr_log(
|
861
|
-
GPR_INFO,
|
862
|
-
"transport %p : Resuming reading after being paused due to too "
|
863
|
-
"many unwritten SETTINGS ACK, PINGS ACK and RST_STREAM frames",
|
864
|
-
t));
|
865
|
-
t->reading_paused_on_pending_induced_frames = false;
|
866
|
-
continue_read_action_locked(t);
|
867
|
-
}
|
868
|
-
} else {
|
869
|
-
set_write_state(t, GRPC_CHTTP2_WRITE_STATE_IDLE, "begin writing nothing");
|
870
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "writing");
|
871
|
-
}
|
872
|
-
}
|
873
|
-
|
874
|
-
static void write_action(void* gt, grpc_error_handle /*error*/) {
|
875
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(gt);
|
876
|
-
void* cl = t->cl;
|
877
|
-
t->cl = nullptr;
|
878
|
-
// If the peer_state_based_framing experiment is set to true,
|
879
|
-
// choose max_frame_size as 2 * max http2 frame size of peer. If peer is under
|
880
|
-
// high memory pressure, then it would advertise a smaller max http2 frame
|
881
|
-
// size. With this logic, the sender would automatically reduce the sending
|
882
|
-
// frame size as well.
|
883
|
-
int max_frame_size =
|
884
|
-
grpc_core::IsPeerStateBasedFramingEnabled()
|
885
|
-
? 2 * t->settings[GRPC_PEER_SETTINGS]
|
886
|
-
[GRPC_CHTTP2_SETTINGS_MAX_FRAME_SIZE]
|
887
|
-
: INT_MAX;
|
888
|
-
grpc_endpoint_write(
|
889
|
-
t->ep, &t->outbuf,
|
890
|
-
GRPC_CLOSURE_INIT(&t->write_action_end_locked, write_action_end, t,
|
891
|
-
grpc_schedule_on_exec_ctx),
|
892
|
-
cl, max_frame_size);
|
893
|
-
}
|
894
|
-
|
895
|
-
static void write_action_end(void* tp, grpc_error_handle error) {
|
896
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(tp);
|
897
|
-
t->combiner->Run(GRPC_CLOSURE_INIT(&t->write_action_end_locked,
|
898
|
-
write_action_end_locked, t, nullptr),
|
899
|
-
GRPC_ERROR_REF(error));
|
900
|
-
}
|
901
|
-
|
902
|
-
// Callback from the grpc_endpoint after bytes have been written by calling
|
903
|
-
// sendmsg
|
904
|
-
static void write_action_end_locked(void* tp, grpc_error_handle error) {
|
905
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(tp);
|
906
|
-
|
907
|
-
bool closed = false;
|
908
|
-
if (!GRPC_ERROR_IS_NONE(error)) {
|
909
|
-
close_transport_locked(t, GRPC_ERROR_REF(error));
|
910
|
-
closed = true;
|
911
|
-
}
|
912
|
-
|
913
|
-
if (t->sent_goaway_state == GRPC_CHTTP2_FINAL_GOAWAY_SEND_SCHEDULED) {
|
914
|
-
t->sent_goaway_state = GRPC_CHTTP2_FINAL_GOAWAY_SENT;
|
915
|
-
closed = true;
|
916
|
-
if (grpc_chttp2_stream_map_size(&t->stream_map) == 0) {
|
917
|
-
close_transport_locked(
|
918
|
-
t, GRPC_ERROR_CREATE_FROM_STATIC_STRING("goaway sent"));
|
919
|
-
}
|
920
|
-
}
|
921
|
-
|
922
|
-
switch (t->write_state) {
|
923
|
-
case GRPC_CHTTP2_WRITE_STATE_IDLE:
|
924
|
-
GPR_UNREACHABLE_CODE(break);
|
925
|
-
case GRPC_CHTTP2_WRITE_STATE_WRITING:
|
926
|
-
set_write_state(t, GRPC_CHTTP2_WRITE_STATE_IDLE, "finish writing");
|
927
|
-
break;
|
928
|
-
case GRPC_CHTTP2_WRITE_STATE_WRITING_WITH_MORE:
|
929
|
-
set_write_state(t, GRPC_CHTTP2_WRITE_STATE_WRITING, "continue writing");
|
930
|
-
GRPC_CHTTP2_REF_TRANSPORT(t, "writing");
|
931
|
-
// If the transport is closed, we will retry writing on the endpoint
|
932
|
-
// and next write may contain part of the currently serialized frames.
|
933
|
-
// So, we should only call the run_after_write callbacks when the next
|
934
|
-
// write finishes, or the callbacks will be invoked when the stream is
|
935
|
-
// closed.
|
936
|
-
if (!closed) {
|
937
|
-
grpc_core::ExecCtx::RunList(DEBUG_LOCATION, &t->run_after_write);
|
938
|
-
}
|
939
|
-
t->combiner->FinallyRun(
|
940
|
-
GRPC_CLOSURE_INIT(&t->write_action_begin_locked,
|
941
|
-
write_action_begin_locked, t, nullptr),
|
942
|
-
GRPC_ERROR_NONE);
|
943
|
-
break;
|
944
|
-
}
|
945
|
-
|
946
|
-
grpc_chttp2_end_write(t, GRPC_ERROR_REF(error));
|
947
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "writing");
|
948
|
-
}
|
949
|
-
|
950
|
-
// Dirties an HTTP2 setting to be sent out next time a writing path occurs.
|
951
|
-
// If the change needs to occur immediately, manually initiate a write.
|
952
|
-
static void queue_setting_update(grpc_chttp2_transport* t,
|
953
|
-
grpc_chttp2_setting_id id, uint32_t value) {
|
954
|
-
const grpc_chttp2_setting_parameters* sp =
|
955
|
-
&grpc_chttp2_settings_parameters[id];
|
956
|
-
uint32_t use_value = grpc_core::Clamp(value, sp->min_value, sp->max_value);
|
957
|
-
if (use_value != value) {
|
958
|
-
gpr_log(GPR_INFO, "Requested parameter %s clamped from %d to %d", sp->name,
|
959
|
-
value, use_value);
|
960
|
-
}
|
961
|
-
if (use_value != t->settings[GRPC_LOCAL_SETTINGS][id]) {
|
962
|
-
t->settings[GRPC_LOCAL_SETTINGS][id] = use_value;
|
963
|
-
t->dirtied_local_settings = true;
|
964
|
-
}
|
965
|
-
}
|
966
|
-
|
967
|
-
// Cancel out streams that haven't yet started if we have received a GOAWAY
|
968
|
-
static void cancel_unstarted_streams(grpc_chttp2_transport* t,
|
969
|
-
grpc_error_handle error) {
|
970
|
-
grpc_chttp2_stream* s;
|
971
|
-
while (grpc_chttp2_list_pop_waiting_for_concurrency(t, &s)) {
|
972
|
-
s->trailing_metadata_buffer.Set(
|
973
|
-
grpc_core::GrpcStreamNetworkState(),
|
974
|
-
grpc_core::GrpcStreamNetworkState::kNotSentOnWire);
|
975
|
-
grpc_chttp2_cancel_stream(t, s, GRPC_ERROR_REF(error));
|
976
|
-
}
|
977
|
-
GRPC_ERROR_UNREF(error);
|
978
|
-
}
|
979
|
-
|
980
|
-
void grpc_chttp2_add_incoming_goaway(grpc_chttp2_transport* t,
|
981
|
-
uint32_t goaway_error,
|
982
|
-
uint32_t last_stream_id,
|
983
|
-
absl::string_view goaway_text) {
|
984
|
-
// Discard the error from a previous goaway frame (if any)
|
985
|
-
if (!GRPC_ERROR_IS_NONE(t->goaway_error)) {
|
986
|
-
GRPC_ERROR_UNREF(t->goaway_error);
|
987
|
-
}
|
988
|
-
t->goaway_error = grpc_error_set_str(
|
989
|
-
grpc_error_set_int(
|
990
|
-
grpc_error_set_int(
|
991
|
-
GRPC_ERROR_CREATE_FROM_STATIC_STRING("GOAWAY received"),
|
992
|
-
GRPC_ERROR_INT_HTTP2_ERROR, static_cast<intptr_t>(goaway_error)),
|
993
|
-
GRPC_ERROR_INT_GRPC_STATUS, GRPC_STATUS_UNAVAILABLE),
|
994
|
-
GRPC_ERROR_STR_RAW_BYTES, goaway_text);
|
995
|
-
|
996
|
-
GRPC_CHTTP2_IF_TRACING(
|
997
|
-
gpr_log(GPR_INFO, "transport %p got goaway with last stream id %d", t,
|
998
|
-
last_stream_id));
|
999
|
-
// We want to log this irrespective of whether http tracing is enabled if we
|
1000
|
-
// received a GOAWAY with a non NO_ERROR code.
|
1001
|
-
if (goaway_error != GRPC_HTTP2_NO_ERROR) {
|
1002
|
-
gpr_log(GPR_INFO, "%s: Got goaway [%d] err=%s", t->peer_string.c_str(),
|
1003
|
-
goaway_error, grpc_error_std_string(t->goaway_error).c_str());
|
1004
|
-
}
|
1005
|
-
if (t->is_client) {
|
1006
|
-
cancel_unstarted_streams(t, GRPC_ERROR_REF(t->goaway_error));
|
1007
|
-
// Cancel all unseen streams
|
1008
|
-
grpc_chttp2_stream_map_for_each(
|
1009
|
-
&t->stream_map,
|
1010
|
-
[](void* user_data, uint32_t /* key */, void* stream) {
|
1011
|
-
uint32_t last_stream_id = *(static_cast<uint32_t*>(user_data));
|
1012
|
-
grpc_chttp2_stream* s = static_cast<grpc_chttp2_stream*>(stream);
|
1013
|
-
if (s->id > last_stream_id) {
|
1014
|
-
s->trailing_metadata_buffer.Set(
|
1015
|
-
grpc_core::GrpcStreamNetworkState(),
|
1016
|
-
grpc_core::GrpcStreamNetworkState::kNotSeenByServer);
|
1017
|
-
grpc_chttp2_cancel_stream(s->t, s,
|
1018
|
-
GRPC_ERROR_REF(s->t->goaway_error));
|
1019
|
-
}
|
1020
|
-
},
|
1021
|
-
&last_stream_id);
|
1022
|
-
}
|
1023
|
-
absl::Status status = grpc_error_to_absl_status(t->goaway_error);
|
1024
|
-
// When a client receives a GOAWAY with error code ENHANCE_YOUR_CALM and debug
|
1025
|
-
// data equal to "too_many_pings", it should log the occurrence at a log level
|
1026
|
-
// that is enabled by default and double the configured KEEPALIVE_TIME used
|
1027
|
-
// for new connections on that channel.
|
1028
|
-
if (GPR_UNLIKELY(t->is_client &&
|
1029
|
-
goaway_error == GRPC_HTTP2_ENHANCE_YOUR_CALM &&
|
1030
|
-
goaway_text == "too_many_pings")) {
|
1031
|
-
gpr_log(GPR_ERROR,
|
1032
|
-
"%s: Received a GOAWAY with error code ENHANCE_YOUR_CALM and debug "
|
1033
|
-
"data equal to \"too_many_pings\". Current keepalive time (before "
|
1034
|
-
"throttling): %s",
|
1035
|
-
t->peer_string.c_str(), t->keepalive_time.ToString().c_str());
|
1036
|
-
constexpr int max_keepalive_time_millis =
|
1037
|
-
INT_MAX / KEEPALIVE_TIME_BACKOFF_MULTIPLIER;
|
1038
|
-
int throttled_keepalive_time =
|
1039
|
-
t->keepalive_time.millis() > max_keepalive_time_millis
|
1040
|
-
? INT_MAX
|
1041
|
-
: t->keepalive_time.millis() * KEEPALIVE_TIME_BACKOFF_MULTIPLIER;
|
1042
|
-
status.SetPayload(grpc_core::kKeepaliveThrottlingKey,
|
1043
|
-
absl::Cord(std::to_string(throttled_keepalive_time)));
|
1044
|
-
}
|
1045
|
-
// lie: use transient failure from the transport to indicate goaway has been
|
1046
|
-
// received.
|
1047
|
-
if (!grpc_core::test_only_disable_transient_failure_state_notification) {
|
1048
|
-
connectivity_state_set(t, GRPC_CHANNEL_TRANSIENT_FAILURE, status,
|
1049
|
-
"got_goaway");
|
1050
|
-
}
|
1051
|
-
}
|
1052
|
-
|
1053
|
-
static void maybe_start_some_streams(grpc_chttp2_transport* t) {
|
1054
|
-
grpc_chttp2_stream* s;
|
1055
|
-
// maybe cancel out streams that haven't yet started if we have received a
|
1056
|
-
// GOAWAY
|
1057
|
-
if (!GRPC_ERROR_IS_NONE(t->goaway_error)) {
|
1058
|
-
cancel_unstarted_streams(t, GRPC_ERROR_REF(t->goaway_error));
|
1059
|
-
return;
|
1060
|
-
}
|
1061
|
-
// start streams where we have free grpc_chttp2_stream ids and free
|
1062
|
-
// * concurrency
|
1063
|
-
while (t->next_stream_id <= MAX_CLIENT_STREAM_ID &&
|
1064
|
-
grpc_chttp2_stream_map_size(&t->stream_map) <
|
1065
|
-
t->settings[GRPC_PEER_SETTINGS]
|
1066
|
-
[GRPC_CHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS] &&
|
1067
|
-
grpc_chttp2_list_pop_waiting_for_concurrency(t, &s)) {
|
1068
|
-
// safe since we can't (legally) be parsing this stream yet
|
1069
|
-
GRPC_CHTTP2_IF_TRACING(gpr_log(
|
1070
|
-
GPR_INFO,
|
1071
|
-
"HTTP:%s: Transport %p allocating new grpc_chttp2_stream %p to id %d",
|
1072
|
-
t->is_client ? "CLI" : "SVR", t, s, t->next_stream_id));
|
1073
|
-
|
1074
|
-
GPR_ASSERT(s->id == 0);
|
1075
|
-
s->id = t->next_stream_id;
|
1076
|
-
t->next_stream_id += 2;
|
1077
|
-
|
1078
|
-
if (t->next_stream_id >= MAX_CLIENT_STREAM_ID) {
|
1079
|
-
connectivity_state_set(t, GRPC_CHANNEL_TRANSIENT_FAILURE,
|
1080
|
-
absl::Status(absl::StatusCode::kUnavailable,
|
1081
|
-
"Transport Stream IDs exhausted"),
|
1082
|
-
"no_more_stream_ids");
|
1083
|
-
}
|
1084
|
-
|
1085
|
-
grpc_chttp2_stream_map_add(&t->stream_map, s->id, s);
|
1086
|
-
post_destructive_reclaimer(t);
|
1087
|
-
grpc_chttp2_mark_stream_writable(t, s);
|
1088
|
-
grpc_chttp2_initiate_write(t, GRPC_CHTTP2_INITIATE_WRITE_START_NEW_STREAM);
|
1089
|
-
}
|
1090
|
-
// cancel out streams that will never be started
|
1091
|
-
if (t->next_stream_id >= MAX_CLIENT_STREAM_ID) {
|
1092
|
-
while (grpc_chttp2_list_pop_waiting_for_concurrency(t, &s)) {
|
1093
|
-
s->trailing_metadata_buffer.Set(
|
1094
|
-
grpc_core::GrpcStreamNetworkState(),
|
1095
|
-
grpc_core::GrpcStreamNetworkState::kNotSentOnWire);
|
1096
|
-
grpc_chttp2_cancel_stream(
|
1097
|
-
t, s,
|
1098
|
-
grpc_error_set_int(
|
1099
|
-
GRPC_ERROR_CREATE_FROM_STATIC_STRING("Stream IDs exhausted"),
|
1100
|
-
GRPC_ERROR_INT_GRPC_STATUS, GRPC_STATUS_UNAVAILABLE));
|
1101
|
-
}
|
1102
|
-
}
|
1103
|
-
}
|
1104
|
-
|
1105
|
-
// Flag that this closure barrier may be covering a write in a pollset, and so
|
1106
|
-
// we should not complete this closure until we can prove that the write got
|
1107
|
-
// scheduled
|
1108
|
-
#define CLOSURE_BARRIER_MAY_COVER_WRITE (1 << 0)
|
1109
|
-
// First bit of the reference count, stored in the high order bits (with the low
|
1110
|
-
// bits being used for flags defined above)
|
1111
|
-
#define CLOSURE_BARRIER_FIRST_REF_BIT (1 << 16)
|
1112
|
-
|
1113
|
-
static grpc_closure* add_closure_barrier(grpc_closure* closure) {
|
1114
|
-
closure->next_data.scratch += CLOSURE_BARRIER_FIRST_REF_BIT;
|
1115
|
-
return closure;
|
1116
|
-
}
|
1117
|
-
|
1118
|
-
static void null_then_sched_closure(grpc_closure** closure) {
|
1119
|
-
grpc_closure* c = *closure;
|
1120
|
-
*closure = nullptr;
|
1121
|
-
// null_then_schedule_closure might be run during a start_batch which might
|
1122
|
-
// subsequently examine the batch for more operations contained within.
|
1123
|
-
// However, the closure run might make it back to the call object, push a
|
1124
|
-
// completion, have the application see it, and make a new operation on the
|
1125
|
-
// call which recycles the batch BEFORE the call to start_batch completes,
|
1126
|
-
// forcing a race.
|
1127
|
-
grpc_core::ExecCtx::Run(DEBUG_LOCATION, c, GRPC_ERROR_NONE);
|
1128
|
-
}
|
1129
|
-
|
1130
|
-
void grpc_chttp2_complete_closure_step(grpc_chttp2_transport* t,
|
1131
|
-
grpc_chttp2_stream* /*s*/,
|
1132
|
-
grpc_closure** pclosure,
|
1133
|
-
grpc_error_handle error,
|
1134
|
-
const char* desc) {
|
1135
|
-
grpc_closure* closure = *pclosure;
|
1136
|
-
*pclosure = nullptr;
|
1137
|
-
if (closure == nullptr) {
|
1138
|
-
GRPC_ERROR_UNREF(error);
|
1139
|
-
return;
|
1140
|
-
}
|
1141
|
-
closure->next_data.scratch -= CLOSURE_BARRIER_FIRST_REF_BIT;
|
1142
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_http_trace)) {
|
1143
|
-
gpr_log(
|
1144
|
-
GPR_INFO,
|
1145
|
-
"complete_closure_step: t=%p %p refs=%d flags=0x%04x desc=%s err=%s "
|
1146
|
-
"write_state=%s",
|
1147
|
-
t, closure,
|
1148
|
-
static_cast<int>(closure->next_data.scratch /
|
1149
|
-
CLOSURE_BARRIER_FIRST_REF_BIT),
|
1150
|
-
static_cast<int>(closure->next_data.scratch %
|
1151
|
-
CLOSURE_BARRIER_FIRST_REF_BIT),
|
1152
|
-
desc, grpc_error_std_string(error).c_str(),
|
1153
|
-
write_state_name(t->write_state));
|
1154
|
-
}
|
1155
|
-
if (!GRPC_ERROR_IS_NONE(error)) {
|
1156
|
-
grpc_error_handle cl_err =
|
1157
|
-
grpc_core::internal::StatusMoveFromHeapPtr(closure->error_data.error);
|
1158
|
-
if (GRPC_ERROR_IS_NONE(cl_err)) {
|
1159
|
-
cl_err = GRPC_ERROR_CREATE_FROM_CPP_STRING(absl::StrCat(
|
1160
|
-
"Error in HTTP transport completing operation: ", desc,
|
1161
|
-
" write_state=", write_state_name(t->write_state), " refs=",
|
1162
|
-
closure->next_data.scratch / CLOSURE_BARRIER_FIRST_REF_BIT, " flags=",
|
1163
|
-
closure->next_data.scratch % CLOSURE_BARRIER_FIRST_REF_BIT));
|
1164
|
-
cl_err = grpc_error_set_str(cl_err, GRPC_ERROR_STR_TARGET_ADDRESS,
|
1165
|
-
t->peer_string);
|
1166
|
-
}
|
1167
|
-
cl_err = grpc_error_add_child(cl_err, error);
|
1168
|
-
closure->error_data.error = grpc_core::internal::StatusAllocHeapPtr(cl_err);
|
1169
|
-
}
|
1170
|
-
if (closure->next_data.scratch < CLOSURE_BARRIER_FIRST_REF_BIT) {
|
1171
|
-
if ((t->write_state == GRPC_CHTTP2_WRITE_STATE_IDLE) ||
|
1172
|
-
!(closure->next_data.scratch & CLOSURE_BARRIER_MAY_COVER_WRITE)) {
|
1173
|
-
// Using GRPC_CLOSURE_SCHED instead of GRPC_CLOSURE_RUN to avoid running
|
1174
|
-
// closures earlier than when it is safe to do so.
|
1175
|
-
grpc_error_handle run_error =
|
1176
|
-
grpc_core::internal::StatusMoveFromHeapPtr(closure->error_data.error);
|
1177
|
-
closure->error_data.error = 0;
|
1178
|
-
grpc_core::ExecCtx::Run(DEBUG_LOCATION, closure, run_error);
|
1179
|
-
} else {
|
1180
|
-
grpc_closure_list_append(&t->run_after_write, closure);
|
1181
|
-
}
|
1182
|
-
}
|
1183
|
-
}
|
1184
|
-
|
1185
|
-
static bool contains_non_ok_status(grpc_metadata_batch* batch) {
|
1186
|
-
return batch->get(grpc_core::GrpcStatusMetadata()).value_or(GRPC_STATUS_OK) !=
|
1187
|
-
GRPC_STATUS_OK;
|
1188
|
-
}
|
1189
|
-
|
1190
|
-
static void log_metadata(const grpc_metadata_batch* md_batch, uint32_t id,
|
1191
|
-
bool is_client, bool is_initial) {
|
1192
|
-
const std::string prefix = absl::StrCat(
|
1193
|
-
"HTTP:", id, is_initial ? ":HDR" : ":TRL", is_client ? ":CLI:" : ":SVR:");
|
1194
|
-
md_batch->Log([&prefix](absl::string_view key, absl::string_view value) {
|
1195
|
-
gpr_log(GPR_INFO, "%s", absl::StrCat(prefix, key, ": ", value).c_str());
|
1196
|
-
});
|
1197
|
-
}
|
1198
|
-
|
1199
|
-
static void perform_stream_op_locked(void* stream_op,
|
1200
|
-
grpc_error_handle /*error_ignored*/) {
|
1201
|
-
grpc_transport_stream_op_batch* op =
|
1202
|
-
static_cast<grpc_transport_stream_op_batch*>(stream_op);
|
1203
|
-
grpc_chttp2_stream* s =
|
1204
|
-
static_cast<grpc_chttp2_stream*>(op->handler_private.extra_arg);
|
1205
|
-
grpc_transport_stream_op_batch_payload* op_payload = op->payload;
|
1206
|
-
grpc_chttp2_transport* t = s->t;
|
1207
|
-
|
1208
|
-
s->context = op->payload->context;
|
1209
|
-
s->traced = op->is_traced;
|
1210
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_http_trace)) {
|
1211
|
-
gpr_log(GPR_INFO,
|
1212
|
-
"perform_stream_op_locked[s=%p; op=%p]: %s; on_complete = %p", s,
|
1213
|
-
op, grpc_transport_stream_op_batch_string(op).c_str(),
|
1214
|
-
op->on_complete);
|
1215
|
-
if (op->send_initial_metadata) {
|
1216
|
-
log_metadata(op_payload->send_initial_metadata.send_initial_metadata,
|
1217
|
-
s->id, t->is_client, true);
|
1218
|
-
}
|
1219
|
-
if (op->send_trailing_metadata) {
|
1220
|
-
log_metadata(op_payload->send_trailing_metadata.send_trailing_metadata,
|
1221
|
-
s->id, t->is_client, false);
|
1222
|
-
}
|
1223
|
-
}
|
1224
|
-
|
1225
|
-
grpc_closure* on_complete = op->on_complete;
|
1226
|
-
// on_complete will be null if and only if there are no send ops in the batch.
|
1227
|
-
if (on_complete != nullptr) {
|
1228
|
-
// This batch has send ops. Use final_data as a barrier until enqueue time;
|
1229
|
-
// the initial counter is dropped at the end of this function.
|
1230
|
-
on_complete->next_data.scratch = CLOSURE_BARRIER_FIRST_REF_BIT;
|
1231
|
-
on_complete->error_data.error = 0;
|
1232
|
-
}
|
1233
|
-
|
1234
|
-
if (op->cancel_stream) {
|
1235
|
-
grpc_chttp2_cancel_stream(t, s, op_payload->cancel_stream.cancel_error);
|
1236
|
-
}
|
1237
|
-
|
1238
|
-
if (op->send_initial_metadata) {
|
1239
|
-
if (t->is_client && t->channelz_socket != nullptr) {
|
1240
|
-
t->channelz_socket->RecordStreamStartedFromLocal();
|
1241
|
-
}
|
1242
|
-
GPR_ASSERT(s->send_initial_metadata_finished == nullptr);
|
1243
|
-
on_complete->next_data.scratch |= CLOSURE_BARRIER_MAY_COVER_WRITE;
|
1244
|
-
|
1245
|
-
s->send_initial_metadata_finished = add_closure_barrier(on_complete);
|
1246
|
-
s->send_initial_metadata =
|
1247
|
-
op_payload->send_initial_metadata.send_initial_metadata;
|
1248
|
-
if (t->is_client) {
|
1249
|
-
s->deadline = std::min(
|
1250
|
-
s->deadline,
|
1251
|
-
s->send_initial_metadata->get(grpc_core::GrpcTimeoutMetadata())
|
1252
|
-
.value_or(grpc_core::Timestamp::InfFuture()));
|
1253
|
-
}
|
1254
|
-
if (contains_non_ok_status(s->send_initial_metadata)) {
|
1255
|
-
s->seen_error = true;
|
1256
|
-
}
|
1257
|
-
if (!s->write_closed) {
|
1258
|
-
if (t->is_client) {
|
1259
|
-
if (GRPC_ERROR_IS_NONE(t->closed_with_error)) {
|
1260
|
-
GPR_ASSERT(s->id == 0);
|
1261
|
-
grpc_chttp2_list_add_waiting_for_concurrency(t, s);
|
1262
|
-
maybe_start_some_streams(t);
|
1263
|
-
} else {
|
1264
|
-
s->trailing_metadata_buffer.Set(
|
1265
|
-
grpc_core::GrpcStreamNetworkState(),
|
1266
|
-
grpc_core::GrpcStreamNetworkState::kNotSentOnWire);
|
1267
|
-
grpc_chttp2_cancel_stream(
|
1268
|
-
t, s,
|
1269
|
-
grpc_error_set_int(
|
1270
|
-
GRPC_ERROR_CREATE_REFERENCING_FROM_STATIC_STRING(
|
1271
|
-
"Transport closed", &t->closed_with_error, 1),
|
1272
|
-
GRPC_ERROR_INT_GRPC_STATUS, GRPC_STATUS_UNAVAILABLE));
|
1273
|
-
}
|
1274
|
-
} else {
|
1275
|
-
GPR_ASSERT(s->id != 0);
|
1276
|
-
grpc_chttp2_mark_stream_writable(t, s);
|
1277
|
-
if (!(op->send_message &&
|
1278
|
-
(op->payload->send_message.flags & GRPC_WRITE_BUFFER_HINT))) {
|
1279
|
-
grpc_chttp2_initiate_write(
|
1280
|
-
t, GRPC_CHTTP2_INITIATE_WRITE_SEND_INITIAL_METADATA);
|
1281
|
-
}
|
1282
|
-
}
|
1283
|
-
} else {
|
1284
|
-
s->send_initial_metadata = nullptr;
|
1285
|
-
grpc_chttp2_complete_closure_step(
|
1286
|
-
t, s, &s->send_initial_metadata_finished,
|
1287
|
-
GRPC_ERROR_CREATE_REFERENCING_FROM_STATIC_STRING(
|
1288
|
-
"Attempt to send initial metadata after stream was closed",
|
1289
|
-
&s->write_closed_error, 1),
|
1290
|
-
"send_initial_metadata_finished");
|
1291
|
-
}
|
1292
|
-
if (op_payload->send_initial_metadata.peer_string != nullptr) {
|
1293
|
-
gpr_atm_rel_store(op_payload->send_initial_metadata.peer_string,
|
1294
|
-
(gpr_atm)t->peer_string.c_str());
|
1295
|
-
}
|
1296
|
-
}
|
1297
|
-
|
1298
|
-
if (op->send_message) {
|
1299
|
-
t->num_messages_in_next_write++;
|
1300
|
-
GRPC_STATS_INC_HTTP2_SEND_MESSAGE_SIZE(
|
1301
|
-
op->payload->send_message.send_message->Length());
|
1302
|
-
on_complete->next_data.scratch |= CLOSURE_BARRIER_MAY_COVER_WRITE;
|
1303
|
-
s->send_message_finished = add_closure_barrier(op->on_complete);
|
1304
|
-
const uint32_t flags = op_payload->send_message.flags;
|
1305
|
-
if (s->write_closed) {
|
1306
|
-
op->payload->send_message.stream_write_closed = true;
|
1307
|
-
// We should NOT return an error here, so as to avoid a cancel OP being
|
1308
|
-
// started. The surface layer will notice that the stream has been closed
|
1309
|
-
// for writes and fail the send message op.
|
1310
|
-
grpc_chttp2_complete_closure_step(t, s, &s->send_message_finished,
|
1311
|
-
GRPC_ERROR_NONE,
|
1312
|
-
"fetching_send_message_finished");
|
1313
|
-
} else {
|
1314
|
-
uint8_t* frame_hdr = grpc_slice_buffer_tiny_add(
|
1315
|
-
&s->flow_controlled_buffer, GRPC_HEADER_SIZE_IN_BYTES);
|
1316
|
-
frame_hdr[0] = (flags & GRPC_WRITE_INTERNAL_COMPRESS) != 0;
|
1317
|
-
size_t len = op_payload->send_message.send_message->Length();
|
1318
|
-
frame_hdr[1] = static_cast<uint8_t>(len >> 24);
|
1319
|
-
frame_hdr[2] = static_cast<uint8_t>(len >> 16);
|
1320
|
-
frame_hdr[3] = static_cast<uint8_t>(len >> 8);
|
1321
|
-
frame_hdr[4] = static_cast<uint8_t>(len);
|
1322
|
-
|
1323
|
-
s->next_message_end_offset =
|
1324
|
-
s->flow_controlled_bytes_written +
|
1325
|
-
static_cast<int64_t>(s->flow_controlled_buffer.length) +
|
1326
|
-
static_cast<int64_t>(len);
|
1327
|
-
if (flags & GRPC_WRITE_BUFFER_HINT) {
|
1328
|
-
s->next_message_end_offset -= t->write_buffer_size;
|
1329
|
-
s->write_buffering = true;
|
1330
|
-
} else {
|
1331
|
-
s->write_buffering = false;
|
1332
|
-
}
|
1333
|
-
|
1334
|
-
grpc_slice* const slices =
|
1335
|
-
op_payload->send_message.send_message->c_slice_buffer()->slices;
|
1336
|
-
grpc_slice* const end =
|
1337
|
-
slices + op_payload->send_message.send_message->Count();
|
1338
|
-
for (grpc_slice* slice = slices; slice != end; slice++) {
|
1339
|
-
grpc_slice_buffer_add(&s->flow_controlled_buffer,
|
1340
|
-
grpc_slice_ref_internal(*slice));
|
1341
|
-
}
|
1342
|
-
|
1343
|
-
int64_t notify_offset = s->next_message_end_offset;
|
1344
|
-
if (notify_offset <= s->flow_controlled_bytes_written) {
|
1345
|
-
grpc_chttp2_complete_closure_step(t, s, &s->send_message_finished,
|
1346
|
-
GRPC_ERROR_NONE,
|
1347
|
-
"fetching_send_message_finished");
|
1348
|
-
} else {
|
1349
|
-
grpc_chttp2_write_cb* cb = t->write_cb_pool;
|
1350
|
-
if (cb == nullptr) {
|
1351
|
-
cb = static_cast<grpc_chttp2_write_cb*>(gpr_malloc(sizeof(*cb)));
|
1352
|
-
} else {
|
1353
|
-
t->write_cb_pool = cb->next;
|
1354
|
-
}
|
1355
|
-
cb->call_at_byte = notify_offset;
|
1356
|
-
cb->closure = s->send_message_finished;
|
1357
|
-
s->send_message_finished = nullptr;
|
1358
|
-
grpc_chttp2_write_cb** list = flags & GRPC_WRITE_THROUGH
|
1359
|
-
? &s->on_write_finished_cbs
|
1360
|
-
: &s->on_flow_controlled_cbs;
|
1361
|
-
cb->next = *list;
|
1362
|
-
*list = cb;
|
1363
|
-
}
|
1364
|
-
|
1365
|
-
if (s->id != 0 &&
|
1366
|
-
(!s->write_buffering ||
|
1367
|
-
s->flow_controlled_buffer.length > t->write_buffer_size)) {
|
1368
|
-
grpc_chttp2_mark_stream_writable(t, s);
|
1369
|
-
grpc_chttp2_initiate_write(t, GRPC_CHTTP2_INITIATE_WRITE_SEND_MESSAGE);
|
1370
|
-
}
|
1371
|
-
}
|
1372
|
-
}
|
1373
|
-
|
1374
|
-
if (op->send_trailing_metadata) {
|
1375
|
-
GPR_ASSERT(s->send_trailing_metadata_finished == nullptr);
|
1376
|
-
on_complete->next_data.scratch |= CLOSURE_BARRIER_MAY_COVER_WRITE;
|
1377
|
-
s->send_trailing_metadata_finished = add_closure_barrier(on_complete);
|
1378
|
-
s->send_trailing_metadata =
|
1379
|
-
op_payload->send_trailing_metadata.send_trailing_metadata;
|
1380
|
-
s->sent_trailing_metadata_op = op_payload->send_trailing_metadata.sent;
|
1381
|
-
s->write_buffering = false;
|
1382
|
-
if (contains_non_ok_status(s->send_trailing_metadata)) {
|
1383
|
-
s->seen_error = true;
|
1384
|
-
}
|
1385
|
-
if (s->write_closed) {
|
1386
|
-
s->send_trailing_metadata = nullptr;
|
1387
|
-
s->sent_trailing_metadata_op = nullptr;
|
1388
|
-
grpc_chttp2_complete_closure_step(
|
1389
|
-
t, s, &s->send_trailing_metadata_finished,
|
1390
|
-
op->payload->send_trailing_metadata.send_trailing_metadata->empty()
|
1391
|
-
? GRPC_ERROR_NONE
|
1392
|
-
: GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
1393
|
-
"Attempt to send trailing metadata after "
|
1394
|
-
"stream was closed"),
|
1395
|
-
"send_trailing_metadata_finished");
|
1396
|
-
} else if (s->id != 0) {
|
1397
|
-
// TODO(ctiller): check if there's flow control for any outstanding
|
1398
|
-
// bytes before going writable
|
1399
|
-
grpc_chttp2_mark_stream_writable(t, s);
|
1400
|
-
grpc_chttp2_initiate_write(
|
1401
|
-
t, GRPC_CHTTP2_INITIATE_WRITE_SEND_TRAILING_METADATA);
|
1402
|
-
}
|
1403
|
-
}
|
1404
|
-
|
1405
|
-
if (op->recv_initial_metadata) {
|
1406
|
-
GPR_ASSERT(s->recv_initial_metadata_ready == nullptr);
|
1407
|
-
s->recv_initial_metadata_ready =
|
1408
|
-
op_payload->recv_initial_metadata.recv_initial_metadata_ready;
|
1409
|
-
s->recv_initial_metadata =
|
1410
|
-
op_payload->recv_initial_metadata.recv_initial_metadata;
|
1411
|
-
s->trailing_metadata_available =
|
1412
|
-
op_payload->recv_initial_metadata.trailing_metadata_available;
|
1413
|
-
if (op_payload->recv_initial_metadata.peer_string != nullptr) {
|
1414
|
-
gpr_atm_rel_store(op_payload->recv_initial_metadata.peer_string,
|
1415
|
-
(gpr_atm)t->peer_string.c_str());
|
1416
|
-
}
|
1417
|
-
grpc_chttp2_maybe_complete_recv_initial_metadata(t, s);
|
1418
|
-
}
|
1419
|
-
|
1420
|
-
if (op->recv_message) {
|
1421
|
-
GPR_ASSERT(s->recv_message_ready == nullptr);
|
1422
|
-
s->recv_message_ready = op_payload->recv_message.recv_message_ready;
|
1423
|
-
s->recv_message = op_payload->recv_message.recv_message;
|
1424
|
-
s->recv_message->emplace();
|
1425
|
-
s->recv_message_flags = op_payload->recv_message.flags;
|
1426
|
-
s->call_failed_before_recv_message =
|
1427
|
-
op_payload->recv_message.call_failed_before_recv_message;
|
1428
|
-
grpc_chttp2_maybe_complete_recv_trailing_metadata(t, s);
|
1429
|
-
}
|
1430
|
-
|
1431
|
-
if (op->recv_trailing_metadata) {
|
1432
|
-
GPR_ASSERT(s->collecting_stats == nullptr);
|
1433
|
-
s->collecting_stats = op_payload->recv_trailing_metadata.collect_stats;
|
1434
|
-
GPR_ASSERT(s->recv_trailing_metadata_finished == nullptr);
|
1435
|
-
s->recv_trailing_metadata_finished =
|
1436
|
-
op_payload->recv_trailing_metadata.recv_trailing_metadata_ready;
|
1437
|
-
s->recv_trailing_metadata =
|
1438
|
-
op_payload->recv_trailing_metadata.recv_trailing_metadata;
|
1439
|
-
s->final_metadata_requested = true;
|
1440
|
-
grpc_chttp2_maybe_complete_recv_trailing_metadata(t, s);
|
1441
|
-
}
|
1442
|
-
|
1443
|
-
if (on_complete != nullptr) {
|
1444
|
-
grpc_chttp2_complete_closure_step(t, s, &on_complete, GRPC_ERROR_NONE,
|
1445
|
-
"op->on_complete");
|
1446
|
-
}
|
1447
|
-
|
1448
|
-
GRPC_CHTTP2_STREAM_UNREF(s, "perform_stream_op");
|
1449
|
-
}
|
1450
|
-
|
1451
|
-
static void perform_stream_op(grpc_transport* gt, grpc_stream* gs,
|
1452
|
-
grpc_transport_stream_op_batch* op) {
|
1453
|
-
grpc_chttp2_transport* t = reinterpret_cast<grpc_chttp2_transport*>(gt);
|
1454
|
-
grpc_chttp2_stream* s = reinterpret_cast<grpc_chttp2_stream*>(gs);
|
1455
|
-
|
1456
|
-
if (!t->is_client) {
|
1457
|
-
if (op->send_initial_metadata) {
|
1458
|
-
GPR_ASSERT(!op->payload->send_initial_metadata.send_initial_metadata
|
1459
|
-
->get(grpc_core::GrpcTimeoutMetadata())
|
1460
|
-
.has_value());
|
1461
|
-
}
|
1462
|
-
if (op->send_trailing_metadata) {
|
1463
|
-
GPR_ASSERT(!op->payload->send_trailing_metadata.send_trailing_metadata
|
1464
|
-
->get(grpc_core::GrpcTimeoutMetadata())
|
1465
|
-
.has_value());
|
1466
|
-
}
|
1467
|
-
}
|
1468
|
-
|
1469
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_http_trace)) {
|
1470
|
-
gpr_log(GPR_INFO, "perform_stream_op[s=%p; op=%p]: %s", s, op,
|
1471
|
-
grpc_transport_stream_op_batch_string(op).c_str());
|
1472
|
-
}
|
1473
|
-
|
1474
|
-
GRPC_CHTTP2_STREAM_REF(s, "perform_stream_op");
|
1475
|
-
op->handler_private.extra_arg = gs;
|
1476
|
-
t->combiner->Run(GRPC_CLOSURE_INIT(&op->handler_private.closure,
|
1477
|
-
perform_stream_op_locked, op, nullptr),
|
1478
|
-
GRPC_ERROR_NONE);
|
1479
|
-
}
|
1480
|
-
|
1481
|
-
static void cancel_pings(grpc_chttp2_transport* t, grpc_error_handle error) {
|
1482
|
-
// callback remaining pings: they're not allowed to call into the transport,
|
1483
|
-
// and maybe they hold resources that need to be freed
|
1484
|
-
grpc_chttp2_ping_queue* pq = &t->ping_queue;
|
1485
|
-
GPR_ASSERT(!GRPC_ERROR_IS_NONE(error));
|
1486
|
-
for (size_t j = 0; j < GRPC_CHTTP2_PCL_COUNT; j++) {
|
1487
|
-
grpc_closure_list_fail_all(&pq->lists[j], GRPC_ERROR_REF(error));
|
1488
|
-
grpc_core::ExecCtx::RunList(DEBUG_LOCATION, &pq->lists[j]);
|
1489
|
-
}
|
1490
|
-
GRPC_ERROR_UNREF(error);
|
1491
|
-
}
|
1492
|
-
|
1493
|
-
static void send_ping_locked(grpc_chttp2_transport* t,
|
1494
|
-
grpc_closure* on_initiate, grpc_closure* on_ack) {
|
1495
|
-
if (!GRPC_ERROR_IS_NONE(t->closed_with_error)) {
|
1496
|
-
grpc_core::ExecCtx::Run(DEBUG_LOCATION, on_initiate,
|
1497
|
-
GRPC_ERROR_REF(t->closed_with_error));
|
1498
|
-
grpc_core::ExecCtx::Run(DEBUG_LOCATION, on_ack,
|
1499
|
-
GRPC_ERROR_REF(t->closed_with_error));
|
1500
|
-
return;
|
1501
|
-
}
|
1502
|
-
grpc_chttp2_ping_queue* pq = &t->ping_queue;
|
1503
|
-
grpc_closure_list_append(&pq->lists[GRPC_CHTTP2_PCL_INITIATE], on_initiate,
|
1504
|
-
GRPC_ERROR_NONE);
|
1505
|
-
grpc_closure_list_append(&pq->lists[GRPC_CHTTP2_PCL_NEXT], on_ack,
|
1506
|
-
GRPC_ERROR_NONE);
|
1507
|
-
}
|
1508
|
-
|
1509
|
-
// Specialized form of send_ping_locked for keepalive ping. If there is already
|
1510
|
-
// a ping in progress, the keepalive ping would piggyback onto that ping,
|
1511
|
-
// instead of waiting for that ping to complete and then starting a new ping.
|
1512
|
-
static void send_keepalive_ping_locked(grpc_chttp2_transport* t) {
|
1513
|
-
if (!GRPC_ERROR_IS_NONE(t->closed_with_error)) {
|
1514
|
-
t->combiner->Run(GRPC_CLOSURE_INIT(&t->start_keepalive_ping_locked,
|
1515
|
-
start_keepalive_ping_locked, t, nullptr),
|
1516
|
-
GRPC_ERROR_REF(t->closed_with_error));
|
1517
|
-
t->combiner->Run(
|
1518
|
-
GRPC_CLOSURE_INIT(&t->finish_keepalive_ping_locked,
|
1519
|
-
finish_keepalive_ping_locked, t, nullptr),
|
1520
|
-
GRPC_ERROR_REF(t->closed_with_error));
|
1521
|
-
return;
|
1522
|
-
}
|
1523
|
-
grpc_chttp2_ping_queue* pq = &t->ping_queue;
|
1524
|
-
if (!grpc_closure_list_empty(pq->lists[GRPC_CHTTP2_PCL_INFLIGHT])) {
|
1525
|
-
// There is a ping in flight. Add yourself to the inflight closure list.
|
1526
|
-
t->combiner->Run(GRPC_CLOSURE_INIT(&t->start_keepalive_ping_locked,
|
1527
|
-
start_keepalive_ping_locked, t, nullptr),
|
1528
|
-
GRPC_ERROR_REF(t->closed_with_error));
|
1529
|
-
grpc_closure_list_append(
|
1530
|
-
&pq->lists[GRPC_CHTTP2_PCL_INFLIGHT],
|
1531
|
-
GRPC_CLOSURE_INIT(&t->finish_keepalive_ping_locked,
|
1532
|
-
finish_keepalive_ping, t, grpc_schedule_on_exec_ctx),
|
1533
|
-
GRPC_ERROR_NONE);
|
1534
|
-
return;
|
1535
|
-
}
|
1536
|
-
grpc_closure_list_append(
|
1537
|
-
&pq->lists[GRPC_CHTTP2_PCL_INITIATE],
|
1538
|
-
GRPC_CLOSURE_INIT(&t->start_keepalive_ping_locked, start_keepalive_ping,
|
1539
|
-
t, grpc_schedule_on_exec_ctx),
|
1540
|
-
GRPC_ERROR_NONE);
|
1541
|
-
grpc_closure_list_append(
|
1542
|
-
&pq->lists[GRPC_CHTTP2_PCL_NEXT],
|
1543
|
-
GRPC_CLOSURE_INIT(&t->finish_keepalive_ping_locked, finish_keepalive_ping,
|
1544
|
-
t, grpc_schedule_on_exec_ctx),
|
1545
|
-
GRPC_ERROR_NONE);
|
1546
|
-
}
|
1547
|
-
|
1548
|
-
void grpc_chttp2_retry_initiate_ping(void* tp, grpc_error_handle error) {
|
1549
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(tp);
|
1550
|
-
t->combiner->Run(GRPC_CLOSURE_INIT(&t->retry_initiate_ping_locked,
|
1551
|
-
retry_initiate_ping_locked, t, nullptr),
|
1552
|
-
GRPC_ERROR_REF(error));
|
1553
|
-
}
|
1554
|
-
|
1555
|
-
static void retry_initiate_ping_locked(void* tp, grpc_error_handle error) {
|
1556
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(tp);
|
1557
|
-
t->ping_state.is_delayed_ping_timer_set = false;
|
1558
|
-
if (GRPC_ERROR_IS_NONE(error)) {
|
1559
|
-
grpc_chttp2_initiate_write(t, GRPC_CHTTP2_INITIATE_WRITE_RETRY_SEND_PING);
|
1560
|
-
}
|
1561
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "retry_initiate_ping_locked");
|
1562
|
-
}
|
1563
|
-
|
1564
|
-
void grpc_chttp2_ack_ping(grpc_chttp2_transport* t, uint64_t id) {
|
1565
|
-
grpc_chttp2_ping_queue* pq = &t->ping_queue;
|
1566
|
-
if (pq->inflight_id != id) {
|
1567
|
-
gpr_log(GPR_DEBUG, "Unknown ping response from %s: %" PRIx64,
|
1568
|
-
t->peer_string.c_str(), id);
|
1569
|
-
return;
|
1570
|
-
}
|
1571
|
-
grpc_core::ExecCtx::RunList(DEBUG_LOCATION,
|
1572
|
-
&pq->lists[GRPC_CHTTP2_PCL_INFLIGHT]);
|
1573
|
-
if (!grpc_closure_list_empty(pq->lists[GRPC_CHTTP2_PCL_NEXT])) {
|
1574
|
-
grpc_chttp2_initiate_write(t, GRPC_CHTTP2_INITIATE_WRITE_CONTINUE_PINGS);
|
1575
|
-
}
|
1576
|
-
}
|
1577
|
-
|
1578
|
-
namespace {
|
1579
|
-
|
1580
|
-
// Fire and forget (deletes itself on completion). Does a graceful shutdown by
|
1581
|
-
// sending a GOAWAY frame with the last stream id set to 2^31-1, sending a ping
|
1582
|
-
// and waiting for an ack (effective waiting for an RTT) and then sending a
|
1583
|
-
// final GOAWAY freame with an updated last stream identifier. This helps ensure
|
1584
|
-
// that a connection can be cleanly shut down without losing requests.
|
1585
|
-
// In the event, that the client does not respond to the ping for some reason,
|
1586
|
-
// we add a 20 second deadline, after which we send the second goaway.
|
1587
|
-
class GracefulGoaway : public grpc_core::RefCounted<GracefulGoaway> {
|
1588
|
-
public:
|
1589
|
-
static void Start(grpc_chttp2_transport* t) { new GracefulGoaway(t); }
|
1590
|
-
|
1591
|
-
~GracefulGoaway() override {
|
1592
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t_, "graceful goaway");
|
1593
|
-
}
|
1594
|
-
|
1595
|
-
private:
|
1596
|
-
explicit GracefulGoaway(grpc_chttp2_transport* t) : t_(t) {
|
1597
|
-
t->sent_goaway_state = GRPC_CHTTP2_GRACEFUL_GOAWAY;
|
1598
|
-
GRPC_CHTTP2_REF_TRANSPORT(t_, "graceful goaway");
|
1599
|
-
grpc_chttp2_goaway_append((1u << 31) - 1, 0, grpc_empty_slice(), &t->qbuf);
|
1600
|
-
send_ping_locked(
|
1601
|
-
t, nullptr, GRPC_CLOSURE_INIT(&on_ping_ack_, OnPingAck, this, nullptr));
|
1602
|
-
grpc_chttp2_initiate_write(t, GRPC_CHTTP2_INITIATE_WRITE_GOAWAY_SENT);
|
1603
|
-
Ref().release(); // Ref for the timer
|
1604
|
-
grpc_timer_init(
|
1605
|
-
&timer_, grpc_core::Timestamp::Now() + grpc_core::Duration::Seconds(20),
|
1606
|
-
GRPC_CLOSURE_INIT(&on_timer_, OnTimer, this, nullptr));
|
1607
|
-
}
|
1608
|
-
|
1609
|
-
void MaybeSendFinalGoawayLocked() {
|
1610
|
-
if (t_->sent_goaway_state != GRPC_CHTTP2_GRACEFUL_GOAWAY) {
|
1611
|
-
// We already sent the final GOAWAY.
|
1612
|
-
return;
|
1613
|
-
}
|
1614
|
-
if (t_->destroying || !GRPC_ERROR_IS_NONE(t_->closed_with_error)) {
|
1615
|
-
GRPC_CHTTP2_IF_TRACING(gpr_log(
|
1616
|
-
GPR_INFO,
|
1617
|
-
"transport:%p %s peer:%s Transport already shutting down. "
|
1618
|
-
"Graceful GOAWAY abandoned.",
|
1619
|
-
t_, t_->is_client ? "CLIENT" : "SERVER", t_->peer_string.c_str()));
|
1620
|
-
return;
|
1621
|
-
}
|
1622
|
-
// Ping completed. Send final goaway.
|
1623
|
-
GRPC_CHTTP2_IF_TRACING(
|
1624
|
-
gpr_log(GPR_INFO,
|
1625
|
-
"transport:%p %s peer:%s Graceful shutdown: Ping received. "
|
1626
|
-
"Sending final GOAWAY with stream_id:%d",
|
1627
|
-
t_, t_->is_client ? "CLIENT" : "SERVER",
|
1628
|
-
t_->peer_string.c_str(), t_->last_new_stream_id));
|
1629
|
-
t_->sent_goaway_state = GRPC_CHTTP2_FINAL_GOAWAY_SEND_SCHEDULED;
|
1630
|
-
grpc_chttp2_goaway_append(t_->last_new_stream_id, 0, grpc_empty_slice(),
|
1631
|
-
&t_->qbuf);
|
1632
|
-
grpc_chttp2_initiate_write(t_, GRPC_CHTTP2_INITIATE_WRITE_GOAWAY_SENT);
|
1633
|
-
}
|
1634
|
-
|
1635
|
-
static void OnPingAck(void* arg, grpc_error_handle /* error */) {
|
1636
|
-
auto* self = static_cast<GracefulGoaway*>(arg);
|
1637
|
-
self->t_->combiner->Run(
|
1638
|
-
GRPC_CLOSURE_INIT(&self->on_ping_ack_, OnPingAckLocked, self, nullptr),
|
1639
|
-
GRPC_ERROR_NONE);
|
1640
|
-
}
|
1641
|
-
|
1642
|
-
static void OnPingAckLocked(void* arg, grpc_error_handle /* error */) {
|
1643
|
-
auto* self = static_cast<GracefulGoaway*>(arg);
|
1644
|
-
grpc_timer_cancel(&self->timer_);
|
1645
|
-
self->MaybeSendFinalGoawayLocked();
|
1646
|
-
self->Unref();
|
1647
|
-
}
|
1648
|
-
|
1649
|
-
static void OnTimer(void* arg, grpc_error_handle error) {
|
1650
|
-
auto* self = static_cast<GracefulGoaway*>(arg);
|
1651
|
-
if (!GRPC_ERROR_IS_NONE(error)) {
|
1652
|
-
self->Unref();
|
1653
|
-
return;
|
1654
|
-
}
|
1655
|
-
self->t_->combiner->Run(
|
1656
|
-
GRPC_CLOSURE_INIT(&self->on_timer_, OnTimerLocked, self, nullptr),
|
1657
|
-
GRPC_ERROR_NONE);
|
1658
|
-
}
|
1659
|
-
|
1660
|
-
static void OnTimerLocked(void* arg, grpc_error_handle /* error */) {
|
1661
|
-
auto* self = static_cast<GracefulGoaway*>(arg);
|
1662
|
-
self->MaybeSendFinalGoawayLocked();
|
1663
|
-
self->Unref();
|
1664
|
-
}
|
1665
|
-
|
1666
|
-
grpc_chttp2_transport* t_;
|
1667
|
-
grpc_closure on_ping_ack_;
|
1668
|
-
grpc_timer timer_;
|
1669
|
-
grpc_closure on_timer_;
|
1670
|
-
};
|
1671
|
-
|
1672
|
-
} // namespace
|
1673
|
-
|
1674
|
-
static void send_goaway(grpc_chttp2_transport* t, grpc_error_handle error,
|
1675
|
-
bool immediate_disconnect_hint) {
|
1676
|
-
grpc_http2_error_code http_error;
|
1677
|
-
std::string message;
|
1678
|
-
grpc_error_get_status(error, grpc_core::Timestamp::InfFuture(), nullptr,
|
1679
|
-
&message, &http_error, nullptr);
|
1680
|
-
if (!t->is_client && http_error == GRPC_HTTP2_NO_ERROR &&
|
1681
|
-
!immediate_disconnect_hint) {
|
1682
|
-
// Do a graceful shutdown.
|
1683
|
-
if (t->sent_goaway_state == GRPC_CHTTP2_NO_GOAWAY_SEND) {
|
1684
|
-
GracefulGoaway::Start(t);
|
1685
|
-
} else {
|
1686
|
-
// Graceful GOAWAY is already in progress.
|
1687
|
-
}
|
1688
|
-
} else if (t->sent_goaway_state == GRPC_CHTTP2_NO_GOAWAY_SEND ||
|
1689
|
-
t->sent_goaway_state == GRPC_CHTTP2_GRACEFUL_GOAWAY) {
|
1690
|
-
// We want to log this irrespective of whether http tracing is enabled
|
1691
|
-
gpr_log(GPR_DEBUG, "%s: Sending goaway err=%s", t->peer_string.c_str(),
|
1692
|
-
grpc_error_std_string(error).c_str());
|
1693
|
-
t->sent_goaway_state = GRPC_CHTTP2_FINAL_GOAWAY_SEND_SCHEDULED;
|
1694
|
-
grpc_chttp2_goaway_append(
|
1695
|
-
t->last_new_stream_id, static_cast<uint32_t>(http_error),
|
1696
|
-
grpc_slice_from_cpp_string(std::move(message)), &t->qbuf);
|
1697
|
-
} else {
|
1698
|
-
// Final GOAWAY has already been sent.
|
1699
|
-
}
|
1700
|
-
grpc_chttp2_initiate_write(t, GRPC_CHTTP2_INITIATE_WRITE_GOAWAY_SENT);
|
1701
|
-
GRPC_ERROR_UNREF(error);
|
1702
|
-
}
|
1703
|
-
|
1704
|
-
void grpc_chttp2_add_ping_strike(grpc_chttp2_transport* t) {
|
1705
|
-
if (++t->ping_recv_state.ping_strikes > t->ping_policy.max_ping_strikes &&
|
1706
|
-
t->ping_policy.max_ping_strikes != 0) {
|
1707
|
-
send_goaway(t,
|
1708
|
-
grpc_error_set_int(
|
1709
|
-
GRPC_ERROR_CREATE_FROM_STATIC_STRING("too_many_pings"),
|
1710
|
-
GRPC_ERROR_INT_HTTP2_ERROR, GRPC_HTTP2_ENHANCE_YOUR_CALM),
|
1711
|
-
/*immediate_disconnect_hint=*/true);
|
1712
|
-
// The transport will be closed after the write is done
|
1713
|
-
close_transport_locked(
|
1714
|
-
t, grpc_error_set_int(
|
1715
|
-
GRPC_ERROR_CREATE_FROM_STATIC_STRING("Too many pings"),
|
1716
|
-
GRPC_ERROR_INT_GRPC_STATUS, GRPC_STATUS_UNAVAILABLE));
|
1717
|
-
}
|
1718
|
-
}
|
1719
|
-
|
1720
|
-
void grpc_chttp2_reset_ping_clock(grpc_chttp2_transport* t) {
|
1721
|
-
if (!t->is_client) {
|
1722
|
-
t->ping_recv_state.last_ping_recv_time = grpc_core::Timestamp::InfPast();
|
1723
|
-
t->ping_recv_state.ping_strikes = 0;
|
1724
|
-
}
|
1725
|
-
t->ping_state.pings_before_data_required =
|
1726
|
-
t->ping_policy.max_pings_without_data;
|
1727
|
-
}
|
1728
|
-
|
1729
|
-
static void perform_transport_op_locked(void* stream_op,
|
1730
|
-
grpc_error_handle /*error_ignored*/) {
|
1731
|
-
grpc_transport_op* op = static_cast<grpc_transport_op*>(stream_op);
|
1732
|
-
grpc_chttp2_transport* t =
|
1733
|
-
static_cast<grpc_chttp2_transport*>(op->handler_private.extra_arg);
|
1734
|
-
|
1735
|
-
if (!GRPC_ERROR_IS_NONE(op->goaway_error)) {
|
1736
|
-
send_goaway(t, op->goaway_error, /*immediate_disconnect_hint=*/false);
|
1737
|
-
}
|
1738
|
-
|
1739
|
-
if (op->set_accept_stream) {
|
1740
|
-
t->accept_stream_cb = op->set_accept_stream_fn;
|
1741
|
-
t->accept_stream_cb_user_data = op->set_accept_stream_user_data;
|
1742
|
-
}
|
1743
|
-
|
1744
|
-
if (op->bind_pollset) {
|
1745
|
-
grpc_endpoint_add_to_pollset(t->ep, op->bind_pollset);
|
1746
|
-
}
|
1747
|
-
|
1748
|
-
if (op->bind_pollset_set) {
|
1749
|
-
grpc_endpoint_add_to_pollset_set(t->ep, op->bind_pollset_set);
|
1750
|
-
}
|
1751
|
-
|
1752
|
-
if (op->send_ping.on_initiate != nullptr || op->send_ping.on_ack != nullptr) {
|
1753
|
-
send_ping_locked(t, op->send_ping.on_initiate, op->send_ping.on_ack);
|
1754
|
-
grpc_chttp2_initiate_write(t, GRPC_CHTTP2_INITIATE_WRITE_APPLICATION_PING);
|
1755
|
-
}
|
1756
|
-
|
1757
|
-
if (op->start_connectivity_watch != nullptr) {
|
1758
|
-
t->state_tracker.AddWatcher(op->start_connectivity_watch_state,
|
1759
|
-
std::move(op->start_connectivity_watch));
|
1760
|
-
}
|
1761
|
-
if (op->stop_connectivity_watch != nullptr) {
|
1762
|
-
t->state_tracker.RemoveWatcher(op->stop_connectivity_watch);
|
1763
|
-
}
|
1764
|
-
|
1765
|
-
if (!GRPC_ERROR_IS_NONE(op->disconnect_with_error)) {
|
1766
|
-
send_goaway(t, GRPC_ERROR_REF(op->disconnect_with_error),
|
1767
|
-
/*immediate_disconnect_hint=*/true);
|
1768
|
-
close_transport_locked(t, op->disconnect_with_error);
|
1769
|
-
}
|
1770
|
-
|
1771
|
-
grpc_core::ExecCtx::Run(DEBUG_LOCATION, op->on_consumed, GRPC_ERROR_NONE);
|
1772
|
-
|
1773
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "transport_op");
|
1774
|
-
}
|
1775
|
-
|
1776
|
-
static void perform_transport_op(grpc_transport* gt, grpc_transport_op* op) {
|
1777
|
-
grpc_chttp2_transport* t = reinterpret_cast<grpc_chttp2_transport*>(gt);
|
1778
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_http_trace)) {
|
1779
|
-
gpr_log(GPR_INFO, "perform_transport_op[t=%p]: %s", t,
|
1780
|
-
grpc_transport_op_string(op).c_str());
|
1781
|
-
}
|
1782
|
-
op->handler_private.extra_arg = gt;
|
1783
|
-
GRPC_CHTTP2_REF_TRANSPORT(t, "transport_op");
|
1784
|
-
t->combiner->Run(GRPC_CLOSURE_INIT(&op->handler_private.closure,
|
1785
|
-
perform_transport_op_locked, op, nullptr),
|
1786
|
-
GRPC_ERROR_NONE);
|
1787
|
-
}
|
1788
|
-
|
1789
|
-
//
|
1790
|
-
// INPUT PROCESSING - GENERAL
|
1791
|
-
//
|
1792
|
-
|
1793
|
-
void grpc_chttp2_maybe_complete_recv_initial_metadata(grpc_chttp2_transport* t,
|
1794
|
-
grpc_chttp2_stream* s) {
|
1795
|
-
if (s->recv_initial_metadata_ready != nullptr &&
|
1796
|
-
s->published_metadata[0] != GRPC_METADATA_NOT_PUBLISHED) {
|
1797
|
-
if (s->seen_error) {
|
1798
|
-
grpc_slice_buffer_reset_and_unref_internal(&s->frame_storage);
|
1799
|
-
}
|
1800
|
-
*s->recv_initial_metadata = std::move(s->initial_metadata_buffer);
|
1801
|
-
s->recv_initial_metadata->Set(grpc_core::PeerString(), t->peer_string);
|
1802
|
-
// If we didn't receive initial metadata from the wire and instead faked a
|
1803
|
-
// status (due to stream cancellations for example), let upper layers know
|
1804
|
-
// that trailing metadata is immediately available.
|
1805
|
-
if (s->trailing_metadata_available != nullptr &&
|
1806
|
-
s->published_metadata[0] != GRPC_METADATA_PUBLISHED_FROM_WIRE &&
|
1807
|
-
s->published_metadata[1] == GRPC_METADATA_SYNTHESIZED_FROM_FAKE) {
|
1808
|
-
*s->trailing_metadata_available = true;
|
1809
|
-
s->trailing_metadata_available = nullptr;
|
1810
|
-
}
|
1811
|
-
null_then_sched_closure(&s->recv_initial_metadata_ready);
|
1812
|
-
}
|
1813
|
-
}
|
1814
|
-
|
1815
|
-
void grpc_chttp2_maybe_complete_recv_message(grpc_chttp2_transport* t,
|
1816
|
-
grpc_chttp2_stream* s) {
|
1817
|
-
if (s->recv_message_ready == nullptr) return;
|
1818
|
-
|
1819
|
-
grpc_core::chttp2::StreamFlowControl::IncomingUpdateContext upd(
|
1820
|
-
&s->flow_control);
|
1821
|
-
grpc_error_handle error = GRPC_ERROR_NONE;
|
1822
|
-
|
1823
|
-
// Lambda is immediately invoked as a big scoped section that can be
|
1824
|
-
// exited out of at any point by returning.
|
1825
|
-
[&]() {
|
1826
|
-
if (s->final_metadata_requested && s->seen_error) {
|
1827
|
-
grpc_slice_buffer_reset_and_unref_internal(&s->frame_storage);
|
1828
|
-
s->recv_message->reset();
|
1829
|
-
} else {
|
1830
|
-
if (s->frame_storage.length != 0) {
|
1831
|
-
while (true) {
|
1832
|
-
GPR_ASSERT(s->frame_storage.length > 0);
|
1833
|
-
uint32_t min_progress_size;
|
1834
|
-
auto r = grpc_deframe_unprocessed_incoming_frames(
|
1835
|
-
s, &min_progress_size, &**s->recv_message, s->recv_message_flags);
|
1836
|
-
if (absl::holds_alternative<grpc_core::Pending>(r)) {
|
1837
|
-
if (s->read_closed) {
|
1838
|
-
grpc_slice_buffer_reset_and_unref_internal(&s->frame_storage);
|
1839
|
-
s->recv_message->reset();
|
1840
|
-
break;
|
1841
|
-
} else {
|
1842
|
-
upd.SetMinProgressSize(min_progress_size);
|
1843
|
-
return; // Out of lambda to enclosing function
|
1844
|
-
}
|
1845
|
-
} else {
|
1846
|
-
error = absl::get<grpc_error_handle>(r);
|
1847
|
-
if (!GRPC_ERROR_IS_NONE(error)) {
|
1848
|
-
s->seen_error = true;
|
1849
|
-
grpc_slice_buffer_reset_and_unref_internal(&s->frame_storage);
|
1850
|
-
break;
|
1851
|
-
} else {
|
1852
|
-
if (t->channelz_socket != nullptr) {
|
1853
|
-
t->channelz_socket->RecordMessageReceived();
|
1854
|
-
}
|
1855
|
-
break;
|
1856
|
-
}
|
1857
|
-
}
|
1858
|
-
}
|
1859
|
-
} else if (s->read_closed) {
|
1860
|
-
s->recv_message->reset();
|
1861
|
-
} else {
|
1862
|
-
upd.SetMinProgressSize(GRPC_HEADER_SIZE_IN_BYTES);
|
1863
|
-
return; // Out of lambda to enclosing function
|
1864
|
-
}
|
1865
|
-
}
|
1866
|
-
// save the length of the buffer before handing control back to application
|
1867
|
-
// threads. Needed to support correct flow control bookkeeping
|
1868
|
-
if (GRPC_ERROR_IS_NONE(error) && s->recv_message->has_value()) {
|
1869
|
-
null_then_sched_closure(&s->recv_message_ready);
|
1870
|
-
} else if (s->published_metadata[1] != GRPC_METADATA_NOT_PUBLISHED) {
|
1871
|
-
if (s->call_failed_before_recv_message != nullptr) {
|
1872
|
-
*s->call_failed_before_recv_message =
|
1873
|
-
(s->published_metadata[1] != GRPC_METADATA_PUBLISHED_AT_CLOSE);
|
1874
|
-
}
|
1875
|
-
null_then_sched_closure(&s->recv_message_ready);
|
1876
|
-
}
|
1877
|
-
GRPC_ERROR_UNREF(error);
|
1878
|
-
}();
|
1879
|
-
|
1880
|
-
upd.SetPendingSize(s->frame_storage.length);
|
1881
|
-
grpc_chttp2_act_on_flowctl_action(upd.MakeAction(), t, s);
|
1882
|
-
}
|
1883
|
-
|
1884
|
-
void grpc_chttp2_maybe_complete_recv_trailing_metadata(grpc_chttp2_transport* t,
|
1885
|
-
grpc_chttp2_stream* s) {
|
1886
|
-
grpc_chttp2_maybe_complete_recv_message(t, s);
|
1887
|
-
if (s->recv_trailing_metadata_finished != nullptr && s->read_closed &&
|
1888
|
-
s->write_closed) {
|
1889
|
-
if (s->seen_error || !t->is_client) {
|
1890
|
-
grpc_slice_buffer_reset_and_unref_internal(&s->frame_storage);
|
1891
|
-
}
|
1892
|
-
if (s->read_closed && s->frame_storage.length == 0 &&
|
1893
|
-
s->recv_trailing_metadata_finished != nullptr) {
|
1894
|
-
grpc_transport_move_stats(&s->stats, s->collecting_stats);
|
1895
|
-
s->collecting_stats = nullptr;
|
1896
|
-
*s->recv_trailing_metadata = std::move(s->trailing_metadata_buffer);
|
1897
|
-
s->recv_trailing_metadata->Set(grpc_core::PeerString(), t->peer_string);
|
1898
|
-
null_then_sched_closure(&s->recv_trailing_metadata_finished);
|
1899
|
-
}
|
1900
|
-
}
|
1901
|
-
}
|
1902
|
-
|
1903
|
-
static void remove_stream(grpc_chttp2_transport* t, uint32_t id,
|
1904
|
-
grpc_error_handle error) {
|
1905
|
-
grpc_chttp2_stream* s = static_cast<grpc_chttp2_stream*>(
|
1906
|
-
grpc_chttp2_stream_map_delete(&t->stream_map, id));
|
1907
|
-
GPR_DEBUG_ASSERT(s);
|
1908
|
-
if (t->incoming_stream == s) {
|
1909
|
-
t->incoming_stream = nullptr;
|
1910
|
-
grpc_chttp2_parsing_become_skip_parser(t);
|
1911
|
-
}
|
1912
|
-
|
1913
|
-
if (grpc_chttp2_stream_map_size(&t->stream_map) == 0) {
|
1914
|
-
post_benign_reclaimer(t);
|
1915
|
-
if (t->sent_goaway_state == GRPC_CHTTP2_FINAL_GOAWAY_SENT) {
|
1916
|
-
close_transport_locked(
|
1917
|
-
t, GRPC_ERROR_CREATE_REFERENCING_FROM_STATIC_STRING(
|
1918
|
-
"Last stream closed after sending GOAWAY", &error, 1));
|
1919
|
-
}
|
1920
|
-
}
|
1921
|
-
if (grpc_chttp2_list_remove_writable_stream(t, s)) {
|
1922
|
-
GRPC_CHTTP2_STREAM_UNREF(s, "chttp2_writing:remove_stream");
|
1923
|
-
}
|
1924
|
-
grpc_chttp2_list_remove_stalled_by_stream(t, s);
|
1925
|
-
grpc_chttp2_list_remove_stalled_by_transport(t, s);
|
1926
|
-
|
1927
|
-
GRPC_ERROR_UNREF(error);
|
1928
|
-
|
1929
|
-
maybe_start_some_streams(t);
|
1930
|
-
}
|
1931
|
-
|
1932
|
-
void grpc_chttp2_cancel_stream(grpc_chttp2_transport* t, grpc_chttp2_stream* s,
|
1933
|
-
grpc_error_handle due_to_error) {
|
1934
|
-
if (!t->is_client && !s->sent_trailing_metadata &&
|
1935
|
-
grpc_error_has_clear_grpc_status(due_to_error)) {
|
1936
|
-
close_from_api(t, s, due_to_error);
|
1937
|
-
return;
|
1938
|
-
}
|
1939
|
-
|
1940
|
-
if (!s->read_closed || !s->write_closed) {
|
1941
|
-
if (s->id != 0) {
|
1942
|
-
grpc_http2_error_code http_error;
|
1943
|
-
grpc_error_get_status(due_to_error, s->deadline, nullptr, nullptr,
|
1944
|
-
&http_error, nullptr);
|
1945
|
-
grpc_chttp2_add_rst_stream_to_next_write(
|
1946
|
-
t, s->id, static_cast<uint32_t>(http_error), &s->stats.outgoing);
|
1947
|
-
grpc_chttp2_initiate_write(t, GRPC_CHTTP2_INITIATE_WRITE_RST_STREAM);
|
1948
|
-
}
|
1949
|
-
}
|
1950
|
-
if (!GRPC_ERROR_IS_NONE(due_to_error) && !s->seen_error) {
|
1951
|
-
s->seen_error = true;
|
1952
|
-
}
|
1953
|
-
grpc_chttp2_mark_stream_closed(t, s, 1, 1, due_to_error);
|
1954
|
-
}
|
1955
|
-
|
1956
|
-
void grpc_chttp2_fake_status(grpc_chttp2_transport* t, grpc_chttp2_stream* s,
|
1957
|
-
grpc_error_handle error) {
|
1958
|
-
grpc_status_code status;
|
1959
|
-
std::string message;
|
1960
|
-
grpc_error_get_status(error, s->deadline, &status, &message, nullptr,
|
1961
|
-
nullptr);
|
1962
|
-
if (status != GRPC_STATUS_OK) {
|
1963
|
-
s->seen_error = true;
|
1964
|
-
}
|
1965
|
-
// stream_global->recv_trailing_metadata_finished gives us a
|
1966
|
-
// last chance replacement: we've received trailing metadata,
|
1967
|
-
// but something more important has become available to signal
|
1968
|
-
// to the upper layers - drop what we've got, and then publish
|
1969
|
-
// what we want - which is safe because we haven't told anyone
|
1970
|
-
// about the metadata yet
|
1971
|
-
if (s->published_metadata[1] == GRPC_METADATA_NOT_PUBLISHED ||
|
1972
|
-
s->recv_trailing_metadata_finished != nullptr) {
|
1973
|
-
s->trailing_metadata_buffer.Set(grpc_core::GrpcStatusMetadata(), status);
|
1974
|
-
if (!message.empty()) {
|
1975
|
-
s->trailing_metadata_buffer.Set(
|
1976
|
-
grpc_core::GrpcMessageMetadata(),
|
1977
|
-
grpc_core::Slice::FromCopiedBuffer(message));
|
1978
|
-
}
|
1979
|
-
s->published_metadata[1] = GRPC_METADATA_SYNTHESIZED_FROM_FAKE;
|
1980
|
-
grpc_chttp2_maybe_complete_recv_trailing_metadata(t, s);
|
1981
|
-
}
|
1982
|
-
|
1983
|
-
GRPC_ERROR_UNREF(error);
|
1984
|
-
}
|
1985
|
-
|
1986
|
-
static void add_error(grpc_error_handle error, grpc_error_handle* refs,
|
1987
|
-
size_t* nrefs) {
|
1988
|
-
if (GRPC_ERROR_IS_NONE(error)) return;
|
1989
|
-
for (size_t i = 0; i < *nrefs; i++) {
|
1990
|
-
if (error == refs[i]) {
|
1991
|
-
return;
|
1992
|
-
}
|
1993
|
-
}
|
1994
|
-
refs[*nrefs] = error;
|
1995
|
-
++*nrefs;
|
1996
|
-
}
|
1997
|
-
|
1998
|
-
static grpc_error_handle removal_error(grpc_error_handle extra_error,
|
1999
|
-
grpc_chttp2_stream* s,
|
2000
|
-
const char* main_error_msg) {
|
2001
|
-
grpc_error_handle refs[3];
|
2002
|
-
size_t nrefs = 0;
|
2003
|
-
add_error(s->read_closed_error, refs, &nrefs);
|
2004
|
-
add_error(s->write_closed_error, refs, &nrefs);
|
2005
|
-
add_error(extra_error, refs, &nrefs);
|
2006
|
-
grpc_error_handle error = GRPC_ERROR_NONE;
|
2007
|
-
if (nrefs > 0) {
|
2008
|
-
error = GRPC_ERROR_CREATE_REFERENCING_FROM_STATIC_STRING(main_error_msg,
|
2009
|
-
refs, nrefs);
|
2010
|
-
}
|
2011
|
-
GRPC_ERROR_UNREF(extra_error);
|
2012
|
-
return error;
|
2013
|
-
}
|
2014
|
-
|
2015
|
-
static void flush_write_list(grpc_chttp2_transport* t, grpc_chttp2_stream* s,
|
2016
|
-
grpc_chttp2_write_cb** list,
|
2017
|
-
grpc_error_handle error) {
|
2018
|
-
while (*list) {
|
2019
|
-
grpc_chttp2_write_cb* cb = *list;
|
2020
|
-
*list = cb->next;
|
2021
|
-
grpc_chttp2_complete_closure_step(t, s, &cb->closure, GRPC_ERROR_REF(error),
|
2022
|
-
"on_write_finished_cb");
|
2023
|
-
cb->next = t->write_cb_pool;
|
2024
|
-
t->write_cb_pool = cb;
|
2025
|
-
}
|
2026
|
-
GRPC_ERROR_UNREF(error);
|
2027
|
-
}
|
2028
|
-
|
2029
|
-
void grpc_chttp2_fail_pending_writes(grpc_chttp2_transport* t,
|
2030
|
-
grpc_chttp2_stream* s,
|
2031
|
-
grpc_error_handle error) {
|
2032
|
-
error =
|
2033
|
-
removal_error(error, s, "Pending writes failed due to stream closure");
|
2034
|
-
s->send_initial_metadata = nullptr;
|
2035
|
-
grpc_chttp2_complete_closure_step(t, s, &s->send_initial_metadata_finished,
|
2036
|
-
GRPC_ERROR_REF(error),
|
2037
|
-
"send_initial_metadata_finished");
|
2038
|
-
|
2039
|
-
s->send_trailing_metadata = nullptr;
|
2040
|
-
s->sent_trailing_metadata_op = nullptr;
|
2041
|
-
grpc_chttp2_complete_closure_step(t, s, &s->send_trailing_metadata_finished,
|
2042
|
-
GRPC_ERROR_REF(error),
|
2043
|
-
"send_trailing_metadata_finished");
|
2044
|
-
|
2045
|
-
grpc_chttp2_complete_closure_step(t, s, &s->send_message_finished,
|
2046
|
-
GRPC_ERROR_REF(error),
|
2047
|
-
"fetching_send_message_finished");
|
2048
|
-
flush_write_list(t, s, &s->on_write_finished_cbs, GRPC_ERROR_REF(error));
|
2049
|
-
flush_write_list(t, s, &s->on_flow_controlled_cbs, error);
|
2050
|
-
}
|
2051
|
-
|
2052
|
-
void grpc_chttp2_mark_stream_closed(grpc_chttp2_transport* t,
|
2053
|
-
grpc_chttp2_stream* s, int close_reads,
|
2054
|
-
int close_writes, grpc_error_handle error) {
|
2055
|
-
if (s->read_closed && s->write_closed) {
|
2056
|
-
// already closed, but we should still fake the status if needed.
|
2057
|
-
grpc_error_handle overall_error = removal_error(error, s, "Stream removed");
|
2058
|
-
if (!GRPC_ERROR_IS_NONE(overall_error)) {
|
2059
|
-
grpc_chttp2_fake_status(t, s, overall_error);
|
2060
|
-
}
|
2061
|
-
grpc_chttp2_maybe_complete_recv_trailing_metadata(t, s);
|
2062
|
-
return;
|
2063
|
-
}
|
2064
|
-
bool closed_read = false;
|
2065
|
-
bool became_closed = false;
|
2066
|
-
if (close_reads && !s->read_closed) {
|
2067
|
-
s->read_closed_error = GRPC_ERROR_REF(error);
|
2068
|
-
s->read_closed = true;
|
2069
|
-
closed_read = true;
|
2070
|
-
}
|
2071
|
-
if (close_writes && !s->write_closed) {
|
2072
|
-
s->write_closed_error = GRPC_ERROR_REF(error);
|
2073
|
-
s->write_closed = true;
|
2074
|
-
grpc_chttp2_fail_pending_writes(t, s, GRPC_ERROR_REF(error));
|
2075
|
-
}
|
2076
|
-
if (s->read_closed && s->write_closed) {
|
2077
|
-
became_closed = true;
|
2078
|
-
grpc_error_handle overall_error =
|
2079
|
-
removal_error(GRPC_ERROR_REF(error), s, "Stream removed");
|
2080
|
-
if (s->id != 0) {
|
2081
|
-
remove_stream(t, s->id, GRPC_ERROR_REF(overall_error));
|
2082
|
-
} else {
|
2083
|
-
// Purge streams waiting on concurrency still waiting for id assignment
|
2084
|
-
grpc_chttp2_list_remove_waiting_for_concurrency(t, s);
|
2085
|
-
}
|
2086
|
-
if (!GRPC_ERROR_IS_NONE(overall_error)) {
|
2087
|
-
grpc_chttp2_fake_status(t, s, overall_error);
|
2088
|
-
}
|
2089
|
-
}
|
2090
|
-
if (closed_read) {
|
2091
|
-
for (int i = 0; i < 2; i++) {
|
2092
|
-
if (s->published_metadata[i] == GRPC_METADATA_NOT_PUBLISHED) {
|
2093
|
-
s->published_metadata[i] = GRPC_METADATA_PUBLISHED_AT_CLOSE;
|
2094
|
-
}
|
2095
|
-
}
|
2096
|
-
grpc_chttp2_maybe_complete_recv_initial_metadata(t, s);
|
2097
|
-
grpc_chttp2_maybe_complete_recv_message(t, s);
|
2098
|
-
}
|
2099
|
-
if (became_closed) {
|
2100
|
-
grpc_chttp2_maybe_complete_recv_trailing_metadata(t, s);
|
2101
|
-
GRPC_CHTTP2_STREAM_UNREF(s, "chttp2");
|
2102
|
-
}
|
2103
|
-
GRPC_ERROR_UNREF(error);
|
2104
|
-
}
|
2105
|
-
|
2106
|
-
static void close_from_api(grpc_chttp2_transport* t, grpc_chttp2_stream* s,
|
2107
|
-
grpc_error_handle error) {
|
2108
|
-
grpc_slice hdr;
|
2109
|
-
grpc_slice status_hdr;
|
2110
|
-
grpc_slice http_status_hdr;
|
2111
|
-
grpc_slice content_type_hdr;
|
2112
|
-
grpc_slice message_pfx;
|
2113
|
-
uint8_t* p;
|
2114
|
-
uint32_t len = 0;
|
2115
|
-
grpc_status_code grpc_status;
|
2116
|
-
std::string message;
|
2117
|
-
grpc_error_get_status(error, s->deadline, &grpc_status, &message, nullptr,
|
2118
|
-
nullptr);
|
2119
|
-
|
2120
|
-
GPR_ASSERT(grpc_status >= 0 && (int)grpc_status < 100);
|
2121
|
-
|
2122
|
-
// Hand roll a header block.
|
2123
|
-
// This is unnecessarily ugly - at some point we should find a more
|
2124
|
-
// elegant solution.
|
2125
|
-
// It's complicated by the fact that our send machinery would be dead by
|
2126
|
-
// the time we got around to sending this, so instead we ignore HPACK
|
2127
|
-
// compression and just write the uncompressed bytes onto the wire.
|
2128
|
-
if (!s->sent_initial_metadata) {
|
2129
|
-
http_status_hdr = GRPC_SLICE_MALLOC(13);
|
2130
|
-
p = GRPC_SLICE_START_PTR(http_status_hdr);
|
2131
|
-
*p++ = 0x00;
|
2132
|
-
*p++ = 7;
|
2133
|
-
*p++ = ':';
|
2134
|
-
*p++ = 's';
|
2135
|
-
*p++ = 't';
|
2136
|
-
*p++ = 'a';
|
2137
|
-
*p++ = 't';
|
2138
|
-
*p++ = 'u';
|
2139
|
-
*p++ = 's';
|
2140
|
-
*p++ = 3;
|
2141
|
-
*p++ = '2';
|
2142
|
-
*p++ = '0';
|
2143
|
-
*p++ = '0';
|
2144
|
-
GPR_ASSERT(p == GRPC_SLICE_END_PTR(http_status_hdr));
|
2145
|
-
len += static_cast<uint32_t> GRPC_SLICE_LENGTH(http_status_hdr);
|
2146
|
-
|
2147
|
-
content_type_hdr = GRPC_SLICE_MALLOC(31);
|
2148
|
-
p = GRPC_SLICE_START_PTR(content_type_hdr);
|
2149
|
-
*p++ = 0x00;
|
2150
|
-
*p++ = 12;
|
2151
|
-
*p++ = 'c';
|
2152
|
-
*p++ = 'o';
|
2153
|
-
*p++ = 'n';
|
2154
|
-
*p++ = 't';
|
2155
|
-
*p++ = 'e';
|
2156
|
-
*p++ = 'n';
|
2157
|
-
*p++ = 't';
|
2158
|
-
*p++ = '-';
|
2159
|
-
*p++ = 't';
|
2160
|
-
*p++ = 'y';
|
2161
|
-
*p++ = 'p';
|
2162
|
-
*p++ = 'e';
|
2163
|
-
*p++ = 16;
|
2164
|
-
*p++ = 'a';
|
2165
|
-
*p++ = 'p';
|
2166
|
-
*p++ = 'p';
|
2167
|
-
*p++ = 'l';
|
2168
|
-
*p++ = 'i';
|
2169
|
-
*p++ = 'c';
|
2170
|
-
*p++ = 'a';
|
2171
|
-
*p++ = 't';
|
2172
|
-
*p++ = 'i';
|
2173
|
-
*p++ = 'o';
|
2174
|
-
*p++ = 'n';
|
2175
|
-
*p++ = '/';
|
2176
|
-
*p++ = 'g';
|
2177
|
-
*p++ = 'r';
|
2178
|
-
*p++ = 'p';
|
2179
|
-
*p++ = 'c';
|
2180
|
-
GPR_ASSERT(p == GRPC_SLICE_END_PTR(content_type_hdr));
|
2181
|
-
len += static_cast<uint32_t> GRPC_SLICE_LENGTH(content_type_hdr);
|
2182
|
-
}
|
2183
|
-
|
2184
|
-
status_hdr = GRPC_SLICE_MALLOC(15 + (grpc_status >= 10));
|
2185
|
-
p = GRPC_SLICE_START_PTR(status_hdr);
|
2186
|
-
*p++ = 0x00; /* literal header, not indexed */
|
2187
|
-
*p++ = 11; /* len(grpc-status) */
|
2188
|
-
*p++ = 'g';
|
2189
|
-
*p++ = 'r';
|
2190
|
-
*p++ = 'p';
|
2191
|
-
*p++ = 'c';
|
2192
|
-
*p++ = '-';
|
2193
|
-
*p++ = 's';
|
2194
|
-
*p++ = 't';
|
2195
|
-
*p++ = 'a';
|
2196
|
-
*p++ = 't';
|
2197
|
-
*p++ = 'u';
|
2198
|
-
*p++ = 's';
|
2199
|
-
if (grpc_status < 10) {
|
2200
|
-
*p++ = 1;
|
2201
|
-
*p++ = static_cast<uint8_t>('0' + grpc_status);
|
2202
|
-
} else {
|
2203
|
-
*p++ = 2;
|
2204
|
-
*p++ = static_cast<uint8_t>('0' + (grpc_status / 10));
|
2205
|
-
*p++ = static_cast<uint8_t>('0' + (grpc_status % 10));
|
2206
|
-
}
|
2207
|
-
GPR_ASSERT(p == GRPC_SLICE_END_PTR(status_hdr));
|
2208
|
-
len += static_cast<uint32_t> GRPC_SLICE_LENGTH(status_hdr);
|
2209
|
-
|
2210
|
-
size_t msg_len = message.length();
|
2211
|
-
GPR_ASSERT(msg_len <= UINT32_MAX);
|
2212
|
-
grpc_core::VarintWriter<1> msg_len_writer(msg_len);
|
2213
|
-
message_pfx = GRPC_SLICE_MALLOC(14 + msg_len_writer.length());
|
2214
|
-
p = GRPC_SLICE_START_PTR(message_pfx);
|
2215
|
-
*p++ = 0x00; /* literal header, not indexed */
|
2216
|
-
*p++ = 12; /* len(grpc-message) */
|
2217
|
-
*p++ = 'g';
|
2218
|
-
*p++ = 'r';
|
2219
|
-
*p++ = 'p';
|
2220
|
-
*p++ = 'c';
|
2221
|
-
*p++ = '-';
|
2222
|
-
*p++ = 'm';
|
2223
|
-
*p++ = 'e';
|
2224
|
-
*p++ = 's';
|
2225
|
-
*p++ = 's';
|
2226
|
-
*p++ = 'a';
|
2227
|
-
*p++ = 'g';
|
2228
|
-
*p++ = 'e';
|
2229
|
-
msg_len_writer.Write(0, p);
|
2230
|
-
p += msg_len_writer.length();
|
2231
|
-
GPR_ASSERT(p == GRPC_SLICE_END_PTR(message_pfx));
|
2232
|
-
len += static_cast<uint32_t> GRPC_SLICE_LENGTH(message_pfx);
|
2233
|
-
len += static_cast<uint32_t>(msg_len);
|
2234
|
-
|
2235
|
-
hdr = GRPC_SLICE_MALLOC(9);
|
2236
|
-
p = GRPC_SLICE_START_PTR(hdr);
|
2237
|
-
*p++ = static_cast<uint8_t>(len >> 16);
|
2238
|
-
*p++ = static_cast<uint8_t>(len >> 8);
|
2239
|
-
*p++ = static_cast<uint8_t>(len);
|
2240
|
-
*p++ = GRPC_CHTTP2_FRAME_HEADER;
|
2241
|
-
*p++ = GRPC_CHTTP2_DATA_FLAG_END_STREAM | GRPC_CHTTP2_DATA_FLAG_END_HEADERS;
|
2242
|
-
*p++ = static_cast<uint8_t>(s->id >> 24);
|
2243
|
-
*p++ = static_cast<uint8_t>(s->id >> 16);
|
2244
|
-
*p++ = static_cast<uint8_t>(s->id >> 8);
|
2245
|
-
*p++ = static_cast<uint8_t>(s->id);
|
2246
|
-
GPR_ASSERT(p == GRPC_SLICE_END_PTR(hdr));
|
2247
|
-
|
2248
|
-
grpc_slice_buffer_add(&t->qbuf, hdr);
|
2249
|
-
if (!s->sent_initial_metadata) {
|
2250
|
-
grpc_slice_buffer_add(&t->qbuf, http_status_hdr);
|
2251
|
-
grpc_slice_buffer_add(&t->qbuf, content_type_hdr);
|
2252
|
-
}
|
2253
|
-
grpc_slice_buffer_add(&t->qbuf, status_hdr);
|
2254
|
-
grpc_slice_buffer_add(&t->qbuf, message_pfx);
|
2255
|
-
grpc_slice_buffer_add(&t->qbuf,
|
2256
|
-
grpc_slice_from_cpp_string(std::move(message)));
|
2257
|
-
grpc_chttp2_reset_ping_clock(t);
|
2258
|
-
grpc_chttp2_add_rst_stream_to_next_write(t, s->id, GRPC_HTTP2_NO_ERROR,
|
2259
|
-
&s->stats.outgoing);
|
2260
|
-
|
2261
|
-
grpc_chttp2_mark_stream_closed(t, s, 1, 1, error);
|
2262
|
-
grpc_chttp2_initiate_write(t, GRPC_CHTTP2_INITIATE_WRITE_CLOSE_FROM_API);
|
2263
|
-
}
|
2264
|
-
|
2265
|
-
struct cancel_stream_cb_args {
|
2266
|
-
grpc_error_handle error;
|
2267
|
-
grpc_chttp2_transport* t;
|
2268
|
-
};
|
2269
|
-
|
2270
|
-
static void cancel_stream_cb(void* user_data, uint32_t /*key*/, void* stream) {
|
2271
|
-
cancel_stream_cb_args* args = static_cast<cancel_stream_cb_args*>(user_data);
|
2272
|
-
grpc_chttp2_stream* s = static_cast<grpc_chttp2_stream*>(stream);
|
2273
|
-
grpc_chttp2_cancel_stream(args->t, s, GRPC_ERROR_REF(args->error));
|
2274
|
-
}
|
2275
|
-
|
2276
|
-
static void end_all_the_calls(grpc_chttp2_transport* t,
|
2277
|
-
grpc_error_handle error) {
|
2278
|
-
intptr_t http2_error;
|
2279
|
-
// If there is no explicit grpc or HTTP/2 error, set to UNAVAILABLE on server.
|
2280
|
-
if (!t->is_client && !grpc_error_has_clear_grpc_status(error) &&
|
2281
|
-
!grpc_error_get_int(error, GRPC_ERROR_INT_HTTP2_ERROR, &http2_error)) {
|
2282
|
-
error = grpc_error_set_int(error, GRPC_ERROR_INT_GRPC_STATUS,
|
2283
|
-
GRPC_STATUS_UNAVAILABLE);
|
2284
|
-
}
|
2285
|
-
cancel_unstarted_streams(t, GRPC_ERROR_REF(error));
|
2286
|
-
cancel_stream_cb_args args = {error, t};
|
2287
|
-
grpc_chttp2_stream_map_for_each(&t->stream_map, cancel_stream_cb, &args);
|
2288
|
-
GRPC_ERROR_UNREF(error);
|
2289
|
-
}
|
2290
|
-
|
2291
|
-
//
|
2292
|
-
// INPUT PROCESSING - PARSING
|
2293
|
-
//
|
2294
|
-
|
2295
|
-
template <class F>
|
2296
|
-
static void WithUrgency(grpc_chttp2_transport* t,
|
2297
|
-
grpc_core::chttp2::FlowControlAction::Urgency urgency,
|
2298
|
-
grpc_chttp2_initiate_write_reason reason, F action) {
|
2299
|
-
switch (urgency) {
|
2300
|
-
case grpc_core::chttp2::FlowControlAction::Urgency::NO_ACTION_NEEDED:
|
2301
|
-
break;
|
2302
|
-
case grpc_core::chttp2::FlowControlAction::Urgency::UPDATE_IMMEDIATELY:
|
2303
|
-
grpc_chttp2_initiate_write(t, reason);
|
2304
|
-
ABSL_FALLTHROUGH_INTENDED;
|
2305
|
-
case grpc_core::chttp2::FlowControlAction::Urgency::QUEUE_UPDATE:
|
2306
|
-
action();
|
2307
|
-
break;
|
2308
|
-
}
|
2309
|
-
}
|
2310
|
-
|
2311
|
-
void grpc_chttp2_act_on_flowctl_action(
|
2312
|
-
const grpc_core::chttp2::FlowControlAction& action,
|
2313
|
-
grpc_chttp2_transport* t, grpc_chttp2_stream* s) {
|
2314
|
-
WithUrgency(t, action.send_stream_update(),
|
2315
|
-
GRPC_CHTTP2_INITIATE_WRITE_STREAM_FLOW_CONTROL, [t, s]() {
|
2316
|
-
if (s->id != 0 && !s->read_closed) {
|
2317
|
-
grpc_chttp2_mark_stream_writable(t, s);
|
2318
|
-
}
|
2319
|
-
});
|
2320
|
-
WithUrgency(t, action.send_transport_update(),
|
2321
|
-
GRPC_CHTTP2_INITIATE_WRITE_TRANSPORT_FLOW_CONTROL, []() {});
|
2322
|
-
WithUrgency(t, action.send_initial_window_update(),
|
2323
|
-
GRPC_CHTTP2_INITIATE_WRITE_SEND_SETTINGS, [t, &action]() {
|
2324
|
-
queue_setting_update(t,
|
2325
|
-
GRPC_CHTTP2_SETTINGS_INITIAL_WINDOW_SIZE,
|
2326
|
-
action.initial_window_size());
|
2327
|
-
});
|
2328
|
-
WithUrgency(t, action.send_max_frame_size_update(),
|
2329
|
-
GRPC_CHTTP2_INITIATE_WRITE_SEND_SETTINGS, [t, &action]() {
|
2330
|
-
queue_setting_update(t, GRPC_CHTTP2_SETTINGS_MAX_FRAME_SIZE,
|
2331
|
-
action.max_frame_size());
|
2332
|
-
});
|
2333
|
-
}
|
2334
|
-
|
2335
|
-
static grpc_error_handle try_http_parsing(grpc_chttp2_transport* t) {
|
2336
|
-
grpc_http_parser parser;
|
2337
|
-
size_t i = 0;
|
2338
|
-
grpc_error_handle error = GRPC_ERROR_NONE;
|
2339
|
-
grpc_http_response response;
|
2340
|
-
|
2341
|
-
grpc_http_parser_init(&parser, GRPC_HTTP_RESPONSE, &response);
|
2342
|
-
|
2343
|
-
grpc_error_handle parse_error = GRPC_ERROR_NONE;
|
2344
|
-
for (; i < t->read_buffer.count && GRPC_ERROR_IS_NONE(parse_error); i++) {
|
2345
|
-
parse_error =
|
2346
|
-
grpc_http_parser_parse(&parser, t->read_buffer.slices[i], nullptr);
|
2347
|
-
}
|
2348
|
-
if (GRPC_ERROR_IS_NONE(parse_error) &&
|
2349
|
-
(parse_error = grpc_http_parser_eof(&parser)) == GRPC_ERROR_NONE) {
|
2350
|
-
error = grpc_error_set_int(
|
2351
|
-
grpc_error_set_int(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
2352
|
-
"Trying to connect an http1.x server"),
|
2353
|
-
GRPC_ERROR_INT_HTTP_STATUS, response.status),
|
2354
|
-
GRPC_ERROR_INT_GRPC_STATUS,
|
2355
|
-
grpc_http2_status_to_grpc_status(response.status));
|
2356
|
-
}
|
2357
|
-
GRPC_ERROR_UNREF(parse_error);
|
2358
|
-
|
2359
|
-
grpc_http_parser_destroy(&parser);
|
2360
|
-
grpc_http_response_destroy(&response);
|
2361
|
-
return error;
|
2362
|
-
}
|
2363
|
-
|
2364
|
-
static void read_action(void* tp, grpc_error_handle error) {
|
2365
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(tp);
|
2366
|
-
t->combiner->Run(
|
2367
|
-
GRPC_CLOSURE_INIT(&t->read_action_locked, read_action_locked, t, nullptr),
|
2368
|
-
GRPC_ERROR_REF(error));
|
2369
|
-
}
|
2370
|
-
|
2371
|
-
static void read_action_locked(void* tp, grpc_error_handle error) {
|
2372
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(tp);
|
2373
|
-
|
2374
|
-
(void)GRPC_ERROR_REF(error);
|
2375
|
-
|
2376
|
-
grpc_error_handle err = error;
|
2377
|
-
if (!GRPC_ERROR_IS_NONE(err)) {
|
2378
|
-
err = grpc_error_set_int(GRPC_ERROR_CREATE_REFERENCING_FROM_STATIC_STRING(
|
2379
|
-
"Endpoint read failed", &err, 1),
|
2380
|
-
GRPC_ERROR_INT_OCCURRED_DURING_WRITE,
|
2381
|
-
t->write_state);
|
2382
|
-
}
|
2383
|
-
std::swap(err, error);
|
2384
|
-
GRPC_ERROR_UNREF(err);
|
2385
|
-
if (GRPC_ERROR_IS_NONE(t->closed_with_error)) {
|
2386
|
-
size_t i = 0;
|
2387
|
-
grpc_error_handle errors[3] = {GRPC_ERROR_REF(error), GRPC_ERROR_NONE,
|
2388
|
-
GRPC_ERROR_NONE};
|
2389
|
-
for (; i < t->read_buffer.count && errors[1] == GRPC_ERROR_NONE; i++) {
|
2390
|
-
errors[1] = grpc_chttp2_perform_read(t, t->read_buffer.slices[i]);
|
2391
|
-
}
|
2392
|
-
if (errors[1] != GRPC_ERROR_NONE) {
|
2393
|
-
errors[2] = try_http_parsing(t);
|
2394
|
-
GRPC_ERROR_UNREF(error);
|
2395
|
-
error = GRPC_ERROR_CREATE_REFERENCING_FROM_STATIC_STRING(
|
2396
|
-
"Failed parsing HTTP/2", errors, GPR_ARRAY_SIZE(errors));
|
2397
|
-
}
|
2398
|
-
for (i = 0; i < GPR_ARRAY_SIZE(errors); i++) {
|
2399
|
-
GRPC_ERROR_UNREF(errors[i]);
|
2400
|
-
}
|
2401
|
-
|
2402
|
-
if (t->initial_window_update != 0) {
|
2403
|
-
if (t->initial_window_update > 0) {
|
2404
|
-
grpc_chttp2_stream* s;
|
2405
|
-
while (grpc_chttp2_list_pop_stalled_by_stream(t, &s)) {
|
2406
|
-
grpc_chttp2_mark_stream_writable(t, s);
|
2407
|
-
grpc_chttp2_initiate_write(
|
2408
|
-
t, GRPC_CHTTP2_INITIATE_WRITE_FLOW_CONTROL_UNSTALLED_BY_SETTING);
|
2409
|
-
}
|
2410
|
-
}
|
2411
|
-
t->initial_window_update = 0;
|
2412
|
-
}
|
2413
|
-
}
|
2414
|
-
|
2415
|
-
bool keep_reading = false;
|
2416
|
-
if (GRPC_ERROR_IS_NONE(error) && !GRPC_ERROR_IS_NONE(t->closed_with_error)) {
|
2417
|
-
error = GRPC_ERROR_CREATE_REFERENCING_FROM_STATIC_STRING(
|
2418
|
-
"Transport closed", &t->closed_with_error, 1);
|
2419
|
-
}
|
2420
|
-
if (!GRPC_ERROR_IS_NONE(error)) {
|
2421
|
-
// If a goaway frame was received, this might be the reason why the read
|
2422
|
-
// failed. Add this info to the error
|
2423
|
-
if (!GRPC_ERROR_IS_NONE(t->goaway_error)) {
|
2424
|
-
error = grpc_error_add_child(error, GRPC_ERROR_REF(t->goaway_error));
|
2425
|
-
}
|
2426
|
-
|
2427
|
-
close_transport_locked(t, GRPC_ERROR_REF(error));
|
2428
|
-
t->endpoint_reading = 0;
|
2429
|
-
} else if (GRPC_ERROR_IS_NONE(t->closed_with_error)) {
|
2430
|
-
keep_reading = true;
|
2431
|
-
// Since we have read a byte, reset the keepalive timer
|
2432
|
-
if (t->keepalive_state == GRPC_CHTTP2_KEEPALIVE_STATE_WAITING) {
|
2433
|
-
grpc_timer_cancel(&t->keepalive_ping_timer);
|
2434
|
-
}
|
2435
|
-
}
|
2436
|
-
grpc_slice_buffer_reset_and_unref_internal(&t->read_buffer);
|
2437
|
-
|
2438
|
-
if (keep_reading) {
|
2439
|
-
if (t->num_pending_induced_frames >= DEFAULT_MAX_PENDING_INDUCED_FRAMES) {
|
2440
|
-
t->reading_paused_on_pending_induced_frames = true;
|
2441
|
-
GRPC_CHTTP2_IF_TRACING(
|
2442
|
-
gpr_log(GPR_INFO,
|
2443
|
-
"transport %p : Pausing reading due to too "
|
2444
|
-
"many unwritten SETTINGS ACK and RST_STREAM frames",
|
2445
|
-
t));
|
2446
|
-
} else {
|
2447
|
-
continue_read_action_locked(t);
|
2448
|
-
}
|
2449
|
-
} else {
|
2450
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "reading_action");
|
2451
|
-
}
|
2452
|
-
|
2453
|
-
GRPC_ERROR_UNREF(error);
|
2454
|
-
}
|
2455
|
-
|
2456
|
-
static void continue_read_action_locked(grpc_chttp2_transport* t) {
|
2457
|
-
const bool urgent = !GRPC_ERROR_IS_NONE(t->goaway_error);
|
2458
|
-
GRPC_CLOSURE_INIT(&t->read_action_locked, read_action, t,
|
2459
|
-
grpc_schedule_on_exec_ctx);
|
2460
|
-
grpc_endpoint_read(t->ep, &t->read_buffer, &t->read_action_locked, urgent,
|
2461
|
-
grpc_chttp2_min_read_progress_size(t));
|
2462
|
-
}
|
2463
|
-
|
2464
|
-
// t is reffed prior to calling the first time, and once the callback chain
|
2465
|
-
// that kicks off finishes, it's unreffed
|
2466
|
-
void schedule_bdp_ping_locked(grpc_chttp2_transport* t) {
|
2467
|
-
t->flow_control.bdp_estimator()->SchedulePing();
|
2468
|
-
send_ping_locked(
|
2469
|
-
t,
|
2470
|
-
GRPC_CLOSURE_INIT(&t->start_bdp_ping_locked, start_bdp_ping, t,
|
2471
|
-
grpc_schedule_on_exec_ctx),
|
2472
|
-
GRPC_CLOSURE_INIT(&t->finish_bdp_ping_locked, finish_bdp_ping, t,
|
2473
|
-
grpc_schedule_on_exec_ctx));
|
2474
|
-
grpc_chttp2_initiate_write(t, GRPC_CHTTP2_INITIATE_WRITE_BDP_PING);
|
2475
|
-
}
|
2476
|
-
|
2477
|
-
static void start_bdp_ping(void* tp, grpc_error_handle error) {
|
2478
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(tp);
|
2479
|
-
t->combiner->Run(GRPC_CLOSURE_INIT(&t->start_bdp_ping_locked,
|
2480
|
-
start_bdp_ping_locked, t, nullptr),
|
2481
|
-
GRPC_ERROR_REF(error));
|
2482
|
-
}
|
2483
|
-
|
2484
|
-
static void start_bdp_ping_locked(void* tp, grpc_error_handle error) {
|
2485
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(tp);
|
2486
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_http_trace)) {
|
2487
|
-
gpr_log(GPR_INFO, "%s: Start BDP ping err=%s", t->peer_string.c_str(),
|
2488
|
-
grpc_error_std_string(error).c_str());
|
2489
|
-
}
|
2490
|
-
if (!GRPC_ERROR_IS_NONE(error) || !GRPC_ERROR_IS_NONE(t->closed_with_error)) {
|
2491
|
-
return;
|
2492
|
-
}
|
2493
|
-
// Reset the keepalive ping timer
|
2494
|
-
if (t->keepalive_state == GRPC_CHTTP2_KEEPALIVE_STATE_WAITING) {
|
2495
|
-
grpc_timer_cancel(&t->keepalive_ping_timer);
|
2496
|
-
}
|
2497
|
-
t->flow_control.bdp_estimator()->StartPing();
|
2498
|
-
t->bdp_ping_started = true;
|
2499
|
-
}
|
2500
|
-
|
2501
|
-
static void finish_bdp_ping(void* tp, grpc_error_handle error) {
|
2502
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(tp);
|
2503
|
-
t->combiner->Run(GRPC_CLOSURE_INIT(&t->finish_bdp_ping_locked,
|
2504
|
-
finish_bdp_ping_locked, t, nullptr),
|
2505
|
-
GRPC_ERROR_REF(error));
|
2506
|
-
}
|
2507
|
-
|
2508
|
-
static void finish_bdp_ping_locked(void* tp, grpc_error_handle error) {
|
2509
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(tp);
|
2510
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_http_trace)) {
|
2511
|
-
gpr_log(GPR_INFO, "%s: Complete BDP ping err=%s", t->peer_string.c_str(),
|
2512
|
-
grpc_error_std_string(error).c_str());
|
2513
|
-
}
|
2514
|
-
if (!GRPC_ERROR_IS_NONE(error) || !GRPC_ERROR_IS_NONE(t->closed_with_error)) {
|
2515
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "bdp_ping");
|
2516
|
-
return;
|
2517
|
-
}
|
2518
|
-
if (!t->bdp_ping_started) {
|
2519
|
-
// start_bdp_ping_locked has not been run yet. Schedule
|
2520
|
-
// finish_bdp_ping_locked to be run later.
|
2521
|
-
t->combiner->Run(GRPC_CLOSURE_INIT(&t->finish_bdp_ping_locked,
|
2522
|
-
finish_bdp_ping_locked, t, nullptr),
|
2523
|
-
GRPC_ERROR_REF(error));
|
2524
|
-
return;
|
2525
|
-
}
|
2526
|
-
t->bdp_ping_started = false;
|
2527
|
-
grpc_core::Timestamp next_ping =
|
2528
|
-
t->flow_control.bdp_estimator()->CompletePing();
|
2529
|
-
grpc_chttp2_act_on_flowctl_action(t->flow_control.PeriodicUpdate(), t,
|
2530
|
-
nullptr);
|
2531
|
-
GPR_ASSERT(!t->have_next_bdp_ping_timer);
|
2532
|
-
t->have_next_bdp_ping_timer = true;
|
2533
|
-
GRPC_CLOSURE_INIT(&t->next_bdp_ping_timer_expired_locked,
|
2534
|
-
next_bdp_ping_timer_expired, t, grpc_schedule_on_exec_ctx);
|
2535
|
-
grpc_timer_init(&t->next_bdp_ping_timer, next_ping,
|
2536
|
-
&t->next_bdp_ping_timer_expired_locked);
|
2537
|
-
}
|
2538
|
-
|
2539
|
-
static void next_bdp_ping_timer_expired(void* tp, grpc_error_handle error) {
|
2540
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(tp);
|
2541
|
-
t->combiner->Run(
|
2542
|
-
GRPC_CLOSURE_INIT(&t->next_bdp_ping_timer_expired_locked,
|
2543
|
-
next_bdp_ping_timer_expired_locked, t, nullptr),
|
2544
|
-
GRPC_ERROR_REF(error));
|
2545
|
-
}
|
2546
|
-
|
2547
|
-
static void next_bdp_ping_timer_expired_locked(void* tp,
|
2548
|
-
grpc_error_handle error) {
|
2549
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(tp);
|
2550
|
-
GPR_ASSERT(t->have_next_bdp_ping_timer);
|
2551
|
-
t->have_next_bdp_ping_timer = false;
|
2552
|
-
if (!GRPC_ERROR_IS_NONE(error)) {
|
2553
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "bdp_ping");
|
2554
|
-
return;
|
2555
|
-
}
|
2556
|
-
if (t->flow_control.bdp_estimator()->accumulator() == 0) {
|
2557
|
-
// Block the bdp ping till we receive more data.
|
2558
|
-
t->bdp_ping_blocked = true;
|
2559
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "bdp_ping");
|
2560
|
-
} else {
|
2561
|
-
schedule_bdp_ping_locked(t);
|
2562
|
-
}
|
2563
|
-
}
|
2564
|
-
|
2565
|
-
void grpc_chttp2_config_default_keepalive_args(grpc_channel_args* args,
|
2566
|
-
bool is_client) {
|
2567
|
-
size_t i;
|
2568
|
-
if (args) {
|
2569
|
-
for (i = 0; i < args->num_args; i++) {
|
2570
|
-
if (0 == strcmp(args->args[i].key, GRPC_ARG_KEEPALIVE_TIME_MS)) {
|
2571
|
-
const int value = grpc_channel_arg_get_integer(
|
2572
|
-
&args->args[i], {is_client ? g_default_client_keepalive_time_ms
|
2573
|
-
: g_default_server_keepalive_time_ms,
|
2574
|
-
1, INT_MAX});
|
2575
|
-
if (is_client) {
|
2576
|
-
g_default_client_keepalive_time_ms = value;
|
2577
|
-
} else {
|
2578
|
-
g_default_server_keepalive_time_ms = value;
|
2579
|
-
}
|
2580
|
-
} else if (0 ==
|
2581
|
-
strcmp(args->args[i].key, GRPC_ARG_KEEPALIVE_TIMEOUT_MS)) {
|
2582
|
-
const int value = grpc_channel_arg_get_integer(
|
2583
|
-
&args->args[i], {is_client ? g_default_client_keepalive_timeout_ms
|
2584
|
-
: g_default_server_keepalive_timeout_ms,
|
2585
|
-
0, INT_MAX});
|
2586
|
-
if (is_client) {
|
2587
|
-
g_default_client_keepalive_timeout_ms = value;
|
2588
|
-
} else {
|
2589
|
-
g_default_server_keepalive_timeout_ms = value;
|
2590
|
-
}
|
2591
|
-
} else if (0 == strcmp(args->args[i].key,
|
2592
|
-
GRPC_ARG_KEEPALIVE_PERMIT_WITHOUT_CALLS)) {
|
2593
|
-
const bool value = static_cast<uint32_t>(grpc_channel_arg_get_integer(
|
2594
|
-
&args->args[i],
|
2595
|
-
{is_client ? g_default_client_keepalive_permit_without_calls
|
2596
|
-
: g_default_server_keepalive_timeout_ms,
|
2597
|
-
0, 1}));
|
2598
|
-
if (is_client) {
|
2599
|
-
g_default_client_keepalive_permit_without_calls = value;
|
2600
|
-
} else {
|
2601
|
-
g_default_server_keepalive_permit_without_calls = value;
|
2602
|
-
}
|
2603
|
-
} else if (0 ==
|
2604
|
-
strcmp(args->args[i].key, GRPC_ARG_HTTP2_MAX_PING_STRIKES)) {
|
2605
|
-
g_default_max_ping_strikes = grpc_channel_arg_get_integer(
|
2606
|
-
&args->args[i], {g_default_max_ping_strikes, 0, INT_MAX});
|
2607
|
-
} else if (0 == strcmp(args->args[i].key,
|
2608
|
-
GRPC_ARG_HTTP2_MAX_PINGS_WITHOUT_DATA)) {
|
2609
|
-
g_default_max_pings_without_data = grpc_channel_arg_get_integer(
|
2610
|
-
&args->args[i], {g_default_max_pings_without_data, 0, INT_MAX});
|
2611
|
-
} else if (0 ==
|
2612
|
-
strcmp(
|
2613
|
-
args->args[i].key,
|
2614
|
-
GRPC_ARG_HTTP2_MIN_RECV_PING_INTERVAL_WITHOUT_DATA_MS)) {
|
2615
|
-
g_default_min_recv_ping_interval_without_data_ms =
|
2616
|
-
grpc_channel_arg_get_integer(
|
2617
|
-
&args->args[i],
|
2618
|
-
{g_default_min_recv_ping_interval_without_data_ms, 0, INT_MAX});
|
2619
|
-
}
|
2620
|
-
}
|
2621
|
-
}
|
2622
|
-
}
|
2623
|
-
|
2624
|
-
static void init_keepalive_ping(void* arg, grpc_error_handle error) {
|
2625
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(arg);
|
2626
|
-
t->combiner->Run(GRPC_CLOSURE_INIT(&t->init_keepalive_ping_locked,
|
2627
|
-
init_keepalive_ping_locked, t, nullptr),
|
2628
|
-
GRPC_ERROR_REF(error));
|
2629
|
-
}
|
2630
|
-
|
2631
|
-
static void init_keepalive_ping_locked(void* arg, grpc_error_handle error) {
|
2632
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(arg);
|
2633
|
-
GPR_ASSERT(t->keepalive_state == GRPC_CHTTP2_KEEPALIVE_STATE_WAITING);
|
2634
|
-
if (t->destroying || !GRPC_ERROR_IS_NONE(t->closed_with_error)) {
|
2635
|
-
t->keepalive_state = GRPC_CHTTP2_KEEPALIVE_STATE_DYING;
|
2636
|
-
} else if (GRPC_ERROR_IS_NONE(error)) {
|
2637
|
-
if (t->keepalive_permit_without_calls ||
|
2638
|
-
grpc_chttp2_stream_map_size(&t->stream_map) > 0) {
|
2639
|
-
t->keepalive_state = GRPC_CHTTP2_KEEPALIVE_STATE_PINGING;
|
2640
|
-
GRPC_CHTTP2_REF_TRANSPORT(t, "keepalive ping end");
|
2641
|
-
grpc_timer_init_unset(&t->keepalive_watchdog_timer);
|
2642
|
-
send_keepalive_ping_locked(t);
|
2643
|
-
grpc_chttp2_initiate_write(t, GRPC_CHTTP2_INITIATE_WRITE_KEEPALIVE_PING);
|
2644
|
-
} else {
|
2645
|
-
GRPC_CHTTP2_REF_TRANSPORT(t, "init keepalive ping");
|
2646
|
-
GRPC_CLOSURE_INIT(&t->init_keepalive_ping_locked, init_keepalive_ping, t,
|
2647
|
-
grpc_schedule_on_exec_ctx);
|
2648
|
-
grpc_timer_init(&t->keepalive_ping_timer,
|
2649
|
-
grpc_core::Timestamp::Now() + t->keepalive_time,
|
2650
|
-
&t->init_keepalive_ping_locked);
|
2651
|
-
}
|
2652
|
-
} else if (error == GRPC_ERROR_CANCELLED) {
|
2653
|
-
// The keepalive ping timer may be cancelled by bdp
|
2654
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_http_trace) ||
|
2655
|
-
GRPC_TRACE_FLAG_ENABLED(grpc_keepalive_trace)) {
|
2656
|
-
gpr_log(GPR_INFO, "%s: Keepalive ping cancelled. Resetting timer.",
|
2657
|
-
t->peer_string.c_str());
|
2658
|
-
}
|
2659
|
-
GRPC_CHTTP2_REF_TRANSPORT(t, "init keepalive ping");
|
2660
|
-
GRPC_CLOSURE_INIT(&t->init_keepalive_ping_locked, init_keepalive_ping, t,
|
2661
|
-
grpc_schedule_on_exec_ctx);
|
2662
|
-
grpc_timer_init(&t->keepalive_ping_timer,
|
2663
|
-
grpc_core::Timestamp::Now() + t->keepalive_time,
|
2664
|
-
&t->init_keepalive_ping_locked);
|
2665
|
-
}
|
2666
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "init keepalive ping");
|
2667
|
-
}
|
2668
|
-
|
2669
|
-
static void start_keepalive_ping(void* arg, grpc_error_handle error) {
|
2670
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(arg);
|
2671
|
-
t->combiner->Run(GRPC_CLOSURE_INIT(&t->start_keepalive_ping_locked,
|
2672
|
-
start_keepalive_ping_locked, t, nullptr),
|
2673
|
-
GRPC_ERROR_REF(error));
|
2674
|
-
}
|
2675
|
-
|
2676
|
-
static void start_keepalive_ping_locked(void* arg, grpc_error_handle error) {
|
2677
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(arg);
|
2678
|
-
if (!GRPC_ERROR_IS_NONE(error)) {
|
2679
|
-
return;
|
2680
|
-
}
|
2681
|
-
if (t->channelz_socket != nullptr) {
|
2682
|
-
t->channelz_socket->RecordKeepaliveSent();
|
2683
|
-
}
|
2684
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_http_trace) ||
|
2685
|
-
GRPC_TRACE_FLAG_ENABLED(grpc_keepalive_trace)) {
|
2686
|
-
gpr_log(GPR_INFO, "%s: Start keepalive ping", t->peer_string.c_str());
|
2687
|
-
}
|
2688
|
-
GRPC_CHTTP2_REF_TRANSPORT(t, "keepalive watchdog");
|
2689
|
-
GRPC_CLOSURE_INIT(&t->keepalive_watchdog_fired_locked,
|
2690
|
-
keepalive_watchdog_fired, t, grpc_schedule_on_exec_ctx);
|
2691
|
-
grpc_timer_init(&t->keepalive_watchdog_timer,
|
2692
|
-
grpc_core::Timestamp::Now() + t->keepalive_timeout,
|
2693
|
-
&t->keepalive_watchdog_fired_locked);
|
2694
|
-
t->keepalive_ping_started = true;
|
2695
|
-
}
|
2696
|
-
|
2697
|
-
static void finish_keepalive_ping(void* arg, grpc_error_handle error) {
|
2698
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(arg);
|
2699
|
-
t->combiner->Run(GRPC_CLOSURE_INIT(&t->finish_keepalive_ping_locked,
|
2700
|
-
finish_keepalive_ping_locked, t, nullptr),
|
2701
|
-
GRPC_ERROR_REF(error));
|
2702
|
-
}
|
2703
|
-
|
2704
|
-
static void finish_keepalive_ping_locked(void* arg, grpc_error_handle error) {
|
2705
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(arg);
|
2706
|
-
if (t->keepalive_state == GRPC_CHTTP2_KEEPALIVE_STATE_PINGING) {
|
2707
|
-
if (GRPC_ERROR_IS_NONE(error)) {
|
2708
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_http_trace) ||
|
2709
|
-
GRPC_TRACE_FLAG_ENABLED(grpc_keepalive_trace)) {
|
2710
|
-
gpr_log(GPR_INFO, "%s: Finish keepalive ping", t->peer_string.c_str());
|
2711
|
-
}
|
2712
|
-
if (!t->keepalive_ping_started) {
|
2713
|
-
// start_keepalive_ping_locked has not run yet. Reschedule
|
2714
|
-
// finish_keepalive_ping_locked for it to be run later.
|
2715
|
-
t->combiner->Run(
|
2716
|
-
GRPC_CLOSURE_INIT(&t->finish_keepalive_ping_locked,
|
2717
|
-
finish_keepalive_ping_locked, t, nullptr),
|
2718
|
-
GRPC_ERROR_REF(error));
|
2719
|
-
return;
|
2720
|
-
}
|
2721
|
-
t->keepalive_ping_started = false;
|
2722
|
-
t->keepalive_state = GRPC_CHTTP2_KEEPALIVE_STATE_WAITING;
|
2723
|
-
grpc_timer_cancel(&t->keepalive_watchdog_timer);
|
2724
|
-
GRPC_CHTTP2_REF_TRANSPORT(t, "init keepalive ping");
|
2725
|
-
GRPC_CLOSURE_INIT(&t->init_keepalive_ping_locked, init_keepalive_ping, t,
|
2726
|
-
grpc_schedule_on_exec_ctx);
|
2727
|
-
grpc_timer_init(&t->keepalive_ping_timer,
|
2728
|
-
grpc_core::Timestamp::Now() + t->keepalive_time,
|
2729
|
-
&t->init_keepalive_ping_locked);
|
2730
|
-
}
|
2731
|
-
}
|
2732
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "keepalive ping end");
|
2733
|
-
}
|
2734
|
-
|
2735
|
-
static void keepalive_watchdog_fired(void* arg, grpc_error_handle error) {
|
2736
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(arg);
|
2737
|
-
t->combiner->Run(
|
2738
|
-
GRPC_CLOSURE_INIT(&t->keepalive_watchdog_fired_locked,
|
2739
|
-
keepalive_watchdog_fired_locked, t, nullptr),
|
2740
|
-
GRPC_ERROR_REF(error));
|
2741
|
-
}
|
2742
|
-
|
2743
|
-
static void keepalive_watchdog_fired_locked(void* arg,
|
2744
|
-
grpc_error_handle error) {
|
2745
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(arg);
|
2746
|
-
if (t->keepalive_state == GRPC_CHTTP2_KEEPALIVE_STATE_PINGING) {
|
2747
|
-
if (GRPC_ERROR_IS_NONE(error)) {
|
2748
|
-
gpr_log(GPR_INFO, "%s: Keepalive watchdog fired. Closing transport.",
|
2749
|
-
t->peer_string.c_str());
|
2750
|
-
t->keepalive_state = GRPC_CHTTP2_KEEPALIVE_STATE_DYING;
|
2751
|
-
close_transport_locked(
|
2752
|
-
t, grpc_error_set_int(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
2753
|
-
"keepalive watchdog timeout"),
|
2754
|
-
GRPC_ERROR_INT_GRPC_STATUS,
|
2755
|
-
GRPC_STATUS_UNAVAILABLE));
|
2756
|
-
}
|
2757
|
-
} else {
|
2758
|
-
// The watchdog timer should have been cancelled by
|
2759
|
-
// finish_keepalive_ping_locked.
|
2760
|
-
if (GPR_UNLIKELY(error != GRPC_ERROR_CANCELLED)) {
|
2761
|
-
gpr_log(GPR_ERROR, "keepalive_ping_end state error: %d (expect: %d)",
|
2762
|
-
t->keepalive_state, GRPC_CHTTP2_KEEPALIVE_STATE_PINGING);
|
2763
|
-
}
|
2764
|
-
}
|
2765
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "keepalive watchdog");
|
2766
|
-
}
|
2767
|
-
|
2768
|
-
//
|
2769
|
-
// CALLBACK LOOP
|
2770
|
-
//
|
2771
|
-
|
2772
|
-
static void connectivity_state_set(grpc_chttp2_transport* t,
|
2773
|
-
grpc_connectivity_state state,
|
2774
|
-
const absl::Status& status,
|
2775
|
-
const char* reason) {
|
2776
|
-
GRPC_CHTTP2_IF_TRACING(
|
2777
|
-
gpr_log(GPR_INFO, "transport %p set connectivity_state=%d", t, state));
|
2778
|
-
t->state_tracker.SetState(state, status, reason);
|
2779
|
-
}
|
2780
|
-
|
2781
|
-
//
|
2782
|
-
// POLLSET STUFF
|
2783
|
-
//
|
2784
|
-
|
2785
|
-
static void set_pollset(grpc_transport* gt, grpc_stream* /*gs*/,
|
2786
|
-
grpc_pollset* pollset) {
|
2787
|
-
grpc_chttp2_transport* t = reinterpret_cast<grpc_chttp2_transport*>(gt);
|
2788
|
-
grpc_endpoint_add_to_pollset(t->ep, pollset);
|
2789
|
-
}
|
2790
|
-
|
2791
|
-
static void set_pollset_set(grpc_transport* gt, grpc_stream* /*gs*/,
|
2792
|
-
grpc_pollset_set* pollset_set) {
|
2793
|
-
grpc_chttp2_transport* t = reinterpret_cast<grpc_chttp2_transport*>(gt);
|
2794
|
-
grpc_endpoint_add_to_pollset_set(t->ep, pollset_set);
|
2795
|
-
}
|
2796
|
-
|
2797
|
-
//
|
2798
|
-
// RESOURCE QUOTAS
|
2799
|
-
//
|
2800
|
-
|
2801
|
-
static void post_benign_reclaimer(grpc_chttp2_transport* t) {
|
2802
|
-
if (!t->benign_reclaimer_registered) {
|
2803
|
-
t->benign_reclaimer_registered = true;
|
2804
|
-
GRPC_CHTTP2_REF_TRANSPORT(t, "benign_reclaimer");
|
2805
|
-
t->memory_owner.PostReclaimer(
|
2806
|
-
grpc_core::ReclamationPass::kBenign,
|
2807
|
-
[t](absl::optional<grpc_core::ReclamationSweep> sweep) {
|
2808
|
-
if (sweep.has_value()) {
|
2809
|
-
GRPC_CLOSURE_INIT(&t->benign_reclaimer_locked,
|
2810
|
-
benign_reclaimer_locked, t,
|
2811
|
-
grpc_schedule_on_exec_ctx);
|
2812
|
-
t->active_reclamation = std::move(*sweep);
|
2813
|
-
t->combiner->Run(&t->benign_reclaimer_locked, GRPC_ERROR_NONE);
|
2814
|
-
} else {
|
2815
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "benign_reclaimer");
|
2816
|
-
}
|
2817
|
-
});
|
2818
|
-
}
|
2819
|
-
}
|
2820
|
-
|
2821
|
-
static void post_destructive_reclaimer(grpc_chttp2_transport* t) {
|
2822
|
-
if (!t->destructive_reclaimer_registered) {
|
2823
|
-
t->destructive_reclaimer_registered = true;
|
2824
|
-
GRPC_CHTTP2_REF_TRANSPORT(t, "destructive_reclaimer");
|
2825
|
-
t->memory_owner.PostReclaimer(
|
2826
|
-
grpc_core::ReclamationPass::kDestructive,
|
2827
|
-
[t](absl::optional<grpc_core::ReclamationSweep> sweep) {
|
2828
|
-
if (sweep.has_value()) {
|
2829
|
-
GRPC_CLOSURE_INIT(&t->destructive_reclaimer_locked,
|
2830
|
-
destructive_reclaimer_locked, t,
|
2831
|
-
grpc_schedule_on_exec_ctx);
|
2832
|
-
t->active_reclamation = std::move(*sweep);
|
2833
|
-
t->combiner->Run(&t->destructive_reclaimer_locked, GRPC_ERROR_NONE);
|
2834
|
-
} else {
|
2835
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "benign_reclaimer");
|
2836
|
-
}
|
2837
|
-
});
|
2838
|
-
}
|
2839
|
-
}
|
2840
|
-
|
2841
|
-
static void benign_reclaimer_locked(void* arg, grpc_error_handle error) {
|
2842
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(arg);
|
2843
|
-
if (GRPC_ERROR_IS_NONE(error) &&
|
2844
|
-
grpc_chttp2_stream_map_size(&t->stream_map) == 0) {
|
2845
|
-
// Channel with no active streams: send a goaway to try and make it
|
2846
|
-
// disconnect cleanly
|
2847
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_resource_quota_trace)) {
|
2848
|
-
gpr_log(GPR_INFO, "HTTP2: %s - send goaway to free memory",
|
2849
|
-
t->peer_string.c_str());
|
2850
|
-
}
|
2851
|
-
send_goaway(t,
|
2852
|
-
grpc_error_set_int(
|
2853
|
-
GRPC_ERROR_CREATE_FROM_STATIC_STRING("Buffers full"),
|
2854
|
-
GRPC_ERROR_INT_HTTP2_ERROR, GRPC_HTTP2_ENHANCE_YOUR_CALM),
|
2855
|
-
/*immediate_disconnect_hint=*/true);
|
2856
|
-
} else if (GRPC_ERROR_IS_NONE(error) &&
|
2857
|
-
GRPC_TRACE_FLAG_ENABLED(grpc_resource_quota_trace)) {
|
2858
|
-
gpr_log(GPR_INFO,
|
2859
|
-
"HTTP2: %s - skip benign reclamation, there are still %" PRIdPTR
|
2860
|
-
" streams",
|
2861
|
-
t->peer_string.c_str(),
|
2862
|
-
grpc_chttp2_stream_map_size(&t->stream_map));
|
2863
|
-
}
|
2864
|
-
t->benign_reclaimer_registered = false;
|
2865
|
-
if (error != GRPC_ERROR_CANCELLED) {
|
2866
|
-
t->active_reclamation.Finish();
|
2867
|
-
}
|
2868
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "benign_reclaimer");
|
2869
|
-
}
|
2870
|
-
|
2871
|
-
static void destructive_reclaimer_locked(void* arg, grpc_error_handle error) {
|
2872
|
-
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(arg);
|
2873
|
-
size_t n = grpc_chttp2_stream_map_size(&t->stream_map);
|
2874
|
-
t->destructive_reclaimer_registered = false;
|
2875
|
-
if (GRPC_ERROR_IS_NONE(error) && n > 0) {
|
2876
|
-
grpc_chttp2_stream* s = static_cast<grpc_chttp2_stream*>(
|
2877
|
-
grpc_chttp2_stream_map_rand(&t->stream_map));
|
2878
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_resource_quota_trace)) {
|
2879
|
-
gpr_log(GPR_INFO, "HTTP2: %s - abandon stream id %d",
|
2880
|
-
t->peer_string.c_str(), s->id);
|
2881
|
-
}
|
2882
|
-
grpc_chttp2_cancel_stream(
|
2883
|
-
t, s,
|
2884
|
-
grpc_error_set_int(GRPC_ERROR_CREATE_FROM_STATIC_STRING("Buffers full"),
|
2885
|
-
GRPC_ERROR_INT_HTTP2_ERROR,
|
2886
|
-
GRPC_HTTP2_ENHANCE_YOUR_CALM));
|
2887
|
-
if (n > 1) {
|
2888
|
-
// Since we cancel one stream per destructive reclamation, if
|
2889
|
-
// there are more streams left, we can immediately post a new
|
2890
|
-
// reclaimer in case the resource quota needs to free more
|
2891
|
-
// memory
|
2892
|
-
post_destructive_reclaimer(t);
|
2893
|
-
}
|
2894
|
-
}
|
2895
|
-
if (error != GRPC_ERROR_CANCELLED) {
|
2896
|
-
t->active_reclamation.Finish();
|
2897
|
-
}
|
2898
|
-
GRPC_CHTTP2_UNREF_TRANSPORT(t, "destructive_reclaimer");
|
2899
|
-
}
|
2900
|
-
|
2901
|
-
//
|
2902
|
-
// MONITORING
|
2903
|
-
//
|
2904
|
-
|
2905
|
-
const char* grpc_chttp2_initiate_write_reason_string(
|
2906
|
-
grpc_chttp2_initiate_write_reason reason) {
|
2907
|
-
switch (reason) {
|
2908
|
-
case GRPC_CHTTP2_INITIATE_WRITE_INITIAL_WRITE:
|
2909
|
-
return "INITIAL_WRITE";
|
2910
|
-
case GRPC_CHTTP2_INITIATE_WRITE_START_NEW_STREAM:
|
2911
|
-
return "START_NEW_STREAM";
|
2912
|
-
case GRPC_CHTTP2_INITIATE_WRITE_SEND_MESSAGE:
|
2913
|
-
return "SEND_MESSAGE";
|
2914
|
-
case GRPC_CHTTP2_INITIATE_WRITE_SEND_INITIAL_METADATA:
|
2915
|
-
return "SEND_INITIAL_METADATA";
|
2916
|
-
case GRPC_CHTTP2_INITIATE_WRITE_SEND_TRAILING_METADATA:
|
2917
|
-
return "SEND_TRAILING_METADATA";
|
2918
|
-
case GRPC_CHTTP2_INITIATE_WRITE_RETRY_SEND_PING:
|
2919
|
-
return "RETRY_SEND_PING";
|
2920
|
-
case GRPC_CHTTP2_INITIATE_WRITE_CONTINUE_PINGS:
|
2921
|
-
return "CONTINUE_PINGS";
|
2922
|
-
case GRPC_CHTTP2_INITIATE_WRITE_GOAWAY_SENT:
|
2923
|
-
return "GOAWAY_SENT";
|
2924
|
-
case GRPC_CHTTP2_INITIATE_WRITE_RST_STREAM:
|
2925
|
-
return "RST_STREAM";
|
2926
|
-
case GRPC_CHTTP2_INITIATE_WRITE_CLOSE_FROM_API:
|
2927
|
-
return "CLOSE_FROM_API";
|
2928
|
-
case GRPC_CHTTP2_INITIATE_WRITE_STREAM_FLOW_CONTROL:
|
2929
|
-
return "STREAM_FLOW_CONTROL";
|
2930
|
-
case GRPC_CHTTP2_INITIATE_WRITE_TRANSPORT_FLOW_CONTROL:
|
2931
|
-
return "TRANSPORT_FLOW_CONTROL";
|
2932
|
-
case GRPC_CHTTP2_INITIATE_WRITE_SEND_SETTINGS:
|
2933
|
-
return "SEND_SETTINGS";
|
2934
|
-
case GRPC_CHTTP2_INITIATE_WRITE_SETTINGS_ACK:
|
2935
|
-
return "SETTINGS_ACK";
|
2936
|
-
case GRPC_CHTTP2_INITIATE_WRITE_FLOW_CONTROL_UNSTALLED_BY_SETTING:
|
2937
|
-
return "FLOW_CONTROL_UNSTALLED_BY_SETTING";
|
2938
|
-
case GRPC_CHTTP2_INITIATE_WRITE_FLOW_CONTROL_UNSTALLED_BY_UPDATE:
|
2939
|
-
return "FLOW_CONTROL_UNSTALLED_BY_UPDATE";
|
2940
|
-
case GRPC_CHTTP2_INITIATE_WRITE_APPLICATION_PING:
|
2941
|
-
return "APPLICATION_PING";
|
2942
|
-
case GRPC_CHTTP2_INITIATE_WRITE_BDP_PING:
|
2943
|
-
return "BDP_PING";
|
2944
|
-
case GRPC_CHTTP2_INITIATE_WRITE_KEEPALIVE_PING:
|
2945
|
-
return "KEEPALIVE_PING";
|
2946
|
-
case GRPC_CHTTP2_INITIATE_WRITE_TRANSPORT_FLOW_CONTROL_UNSTALLED:
|
2947
|
-
return "TRANSPORT_FLOW_CONTROL_UNSTALLED";
|
2948
|
-
case GRPC_CHTTP2_INITIATE_WRITE_PING_RESPONSE:
|
2949
|
-
return "PING_RESPONSE";
|
2950
|
-
case GRPC_CHTTP2_INITIATE_WRITE_FORCE_RST_STREAM:
|
2951
|
-
return "FORCE_RST_STREAM";
|
2952
|
-
}
|
2953
|
-
GPR_UNREACHABLE_CODE(return "unknown");
|
2954
|
-
}
|
2955
|
-
|
2956
|
-
static grpc_endpoint* chttp2_get_endpoint(grpc_transport* t) {
|
2957
|
-
return (reinterpret_cast<grpc_chttp2_transport*>(t))->ep;
|
2958
|
-
}
|
2959
|
-
|
2960
|
-
static const grpc_transport_vtable vtable = {sizeof(grpc_chttp2_stream),
|
2961
|
-
"chttp2",
|
2962
|
-
init_stream,
|
2963
|
-
nullptr,
|
2964
|
-
set_pollset,
|
2965
|
-
set_pollset_set,
|
2966
|
-
perform_stream_op,
|
2967
|
-
perform_transport_op,
|
2968
|
-
destroy_stream,
|
2969
|
-
destroy_transport,
|
2970
|
-
chttp2_get_endpoint};
|
2971
|
-
|
2972
|
-
static const grpc_transport_vtable* get_vtable(void) { return &vtable; }
|
2973
|
-
|
2974
|
-
grpc_core::RefCountedPtr<grpc_core::channelz::SocketNode>
|
2975
|
-
grpc_chttp2_transport_get_socket_node(grpc_transport* transport) {
|
2976
|
-
grpc_chttp2_transport* t =
|
2977
|
-
reinterpret_cast<grpc_chttp2_transport*>(transport);
|
2978
|
-
return t->channelz_socket;
|
2979
|
-
}
|
2980
|
-
|
2981
|
-
grpc_transport* grpc_create_chttp2_transport(
|
2982
|
-
const grpc_core::ChannelArgs& channel_args, grpc_endpoint* ep,
|
2983
|
-
bool is_client) {
|
2984
|
-
auto t = new grpc_chttp2_transport(channel_args, ep, is_client);
|
2985
|
-
return &t->base;
|
2986
|
-
}
|
2987
|
-
|
2988
|
-
void grpc_chttp2_transport_start_reading(
|
2989
|
-
grpc_transport* transport, grpc_slice_buffer* read_buffer,
|
2990
|
-
grpc_closure* notify_on_receive_settings, grpc_closure* notify_on_close) {
|
2991
|
-
grpc_chttp2_transport* t =
|
2992
|
-
reinterpret_cast<grpc_chttp2_transport*>(transport);
|
2993
|
-
GRPC_CHTTP2_REF_TRANSPORT(
|
2994
|
-
t, "reading_action"); /* matches unref inside reading_action */
|
2995
|
-
if (read_buffer != nullptr) {
|
2996
|
-
grpc_slice_buffer_move_into(read_buffer, &t->read_buffer);
|
2997
|
-
gpr_free(read_buffer);
|
2998
|
-
}
|
2999
|
-
t->notify_on_receive_settings = notify_on_receive_settings;
|
3000
|
-
t->notify_on_close = notify_on_close;
|
3001
|
-
t->combiner->Run(
|
3002
|
-
GRPC_CLOSURE_INIT(&t->read_action_locked, read_action_locked, t, nullptr),
|
3003
|
-
GRPC_ERROR_NONE);
|
3004
|
-
}
|