grpc 1.25.0 → 1.26.0.pre1
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/Makefile +782 -291
- data/include/grpc/impl/codegen/grpc_types.h +4 -0
- data/include/grpc/impl/codegen/port_platform.h +7 -0
- data/include/grpc/support/alloc.h +0 -16
- data/src/core/ext/filters/client_channel/backend_metric.cc +2 -2
- data/src/core/ext/filters/client_channel/backup_poller.cc +1 -1
- data/src/core/ext/filters/client_channel/channel_connectivity.cc +2 -2
- data/src/core/ext/filters/client_channel/client_channel.cc +95 -88
- data/src/core/ext/filters/client_channel/client_channel_channelz.cc +7 -7
- data/src/core/ext/filters/client_channel/client_channel_channelz.h +4 -2
- data/src/core/ext/filters/client_channel/client_channel_factory.cc +1 -1
- data/src/core/ext/filters/client_channel/client_channel_plugin.cc +3 -3
- data/src/core/ext/filters/client_channel/connector.h +40 -45
- data/src/core/ext/filters/client_channel/global_subchannel_pool.cc +10 -10
- data/src/core/ext/filters/client_channel/health/health_check_client.cc +16 -13
- data/src/core/ext/filters/client_channel/http_connect_handshaker.cc +66 -37
- data/src/core/ext/filters/client_channel/http_proxy.cc +107 -116
- data/src/core/ext/filters/client_channel/http_proxy.h +5 -1
- data/src/core/ext/filters/client_channel/lb_policy.cc +3 -3
- data/src/core/ext/filters/client_channel/lb_policy.h +9 -5
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.cc +10 -8
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +18 -19
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.cc +4 -3
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.h +4 -4
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc +1 -1
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +3 -3
- data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +3 -3
- data/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h +6 -9
- data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +368 -0
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds.cc +157 -77
- data/src/core/ext/filters/client_channel/lb_policy_registry.cc +5 -5
- data/src/core/ext/filters/client_channel/lb_policy_registry.h +1 -1
- data/src/core/ext/filters/client_channel/local_subchannel_pool.cc +8 -8
- data/src/core/ext/filters/client_channel/proxy_mapper.h +14 -34
- data/src/core/ext/filters/client_channel/proxy_mapper_registry.cc +46 -79
- data/src/core/ext/filters/client_channel/proxy_mapper_registry.h +23 -17
- data/src/core/ext/filters/client_channel/resolver.cc +2 -1
- data/src/core/ext/filters/client_channel/resolver.h +2 -2
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc +1 -1
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.cc +4 -4
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.h +1 -1
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_libuv.cc +13 -10
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +3 -2
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +9 -8
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc +17 -16
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h +2 -2
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_fallback.cc +4 -4
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc +9 -9
- data/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.cc +5 -3
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +1 -1
- data/src/core/ext/filters/client_channel/resolver_factory.h +3 -3
- data/src/core/ext/filters/client_channel/resolver_registry.cc +14 -12
- data/src/core/ext/filters/client_channel/resolver_registry.h +6 -4
- data/src/core/ext/filters/client_channel/resolver_result_parsing.cc +6 -6
- data/src/core/ext/filters/client_channel/resolver_result_parsing.h +6 -6
- data/src/core/ext/filters/client_channel/resolving_lb_policy.cc +5 -5
- data/src/core/ext/filters/client_channel/resolving_lb_policy.h +3 -3
- data/src/core/ext/filters/client_channel/service_config.cc +15 -14
- data/src/core/ext/filters/client_channel/service_config.h +14 -19
- data/src/core/ext/filters/client_channel/subchannel.cc +38 -36
- data/src/core/ext/filters/client_channel/subchannel.h +11 -12
- data/src/core/ext/filters/client_channel/subchannel_interface.h +1 -1
- data/src/core/ext/filters/client_channel/xds/xds_api.cc +19 -9
- data/src/core/ext/filters/client_channel/xds/xds_api.h +19 -9
- data/src/core/ext/filters/client_channel/xds/xds_bootstrap.cc +3 -3
- data/src/core/ext/filters/client_channel/xds/xds_bootstrap.h +6 -5
- data/src/core/ext/filters/client_channel/xds/xds_client.cc +58 -31
- data/src/core/ext/filters/client_channel/xds/xds_client.h +20 -15
- data/src/core/ext/filters/client_channel/xds/xds_client_stats.cc +5 -3
- data/src/core/ext/filters/client_channel/xds/xds_client_stats.h +18 -15
- data/src/core/ext/filters/client_idle/client_idle_filter.cc +10 -10
- data/src/core/ext/filters/deadline/deadline_filter.cc +15 -13
- data/src/core/ext/filters/http/client/http_client_filter.cc +12 -12
- data/src/core/ext/filters/http/client_authority_filter.cc +3 -3
- data/src/core/ext/filters/http/message_compress/message_compress_filter.cc +13 -7
- data/src/core/ext/filters/http/server/http_server_filter.cc +14 -13
- data/src/core/ext/filters/max_age/max_age_filter.cc +16 -14
- data/src/core/ext/filters/message_size/message_size_filter.cc +10 -8
- data/src/core/ext/filters/message_size/message_size_filter.h +1 -1
- data/src/core/ext/filters/workarounds/workaround_cronet_compression_filter.cc +9 -8
- data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +141 -174
- data/src/core/ext/transport/chttp2/client/chttp2_connector.h +31 -1
- data/src/core/ext/transport/chttp2/client/insecure/channel_create.cc +7 -6
- data/src/core/ext/transport/chttp2/client/secure/secure_channel_create.cc +14 -12
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +8 -5
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +46 -38
- data/src/core/ext/transport/chttp2/transport/context_list.cc +2 -2
- data/src/core/ext/transport/chttp2/transport/flow_control.h +0 -5
- data/src/core/ext/transport/chttp2/transport/frame_data.cc +6 -7
- data/src/core/ext/transport/chttp2/transport/frame_goaway.cc +2 -2
- data/src/core/ext/transport/chttp2/transport/frame_ping.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_settings.cc +4 -3
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +5 -5
- data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +11 -8
- data/src/core/ext/transport/chttp2/transport/internal.h +3 -3
- data/src/core/ext/transport/chttp2/transport/parsing.cc +4 -4
- data/src/core/ext/transport/chttp2/transport/writing.cc +3 -2
- data/src/core/ext/transport/inproc/inproc_transport.cc +65 -41
- data/src/core/ext/upb-generated/envoy/api/v2/auth/cert.upb.c +0 -1
- data/src/core/ext/upb-generated/envoy/api/v2/cds.upb.c +141 -70
- data/src/core/ext/upb-generated/envoy/api/v2/cds.upb.h +352 -118
- data/src/core/ext/upb-generated/envoy/api/v2/cluster/circuit_breaker.upb.c +0 -1
- data/src/core/ext/upb-generated/envoy/api/v2/cluster/filter.upb.c +0 -1
- data/src/core/ext/upb-generated/envoy/api/v2/cluster/outlier_detection.upb.c +8 -4
- data/src/core/ext/upb-generated/envoy/api/v2/cluster/outlier_detection.upb.h +65 -0
- data/src/core/ext/upb-generated/envoy/api/v2/core/address.upb.c +0 -1
- data/src/core/ext/upb-generated/envoy/api/v2/core/base.upb.c +16 -2
- data/src/core/ext/upb-generated/envoy/api/v2/core/base.upb.h +36 -0
- data/src/core/ext/upb-generated/envoy/api/v2/core/config_source.upb.c +12 -5
- data/src/core/ext/upb-generated/envoy/api/v2/core/config_source.upb.h +34 -0
- data/src/core/ext/upb-generated/envoy/api/v2/core/grpc_service.upb.c +1 -2
- data/src/core/ext/upb-generated/envoy/api/v2/core/health_check.upb.c +13 -12
- data/src/core/ext/upb-generated/envoy/api/v2/core/health_check.upb.h +28 -24
- data/src/core/ext/upb-generated/envoy/api/v2/core/http_uri.upb.c +0 -1
- data/src/core/ext/upb-generated/envoy/api/v2/core/protocol.upb.c +5 -4
- data/src/core/ext/upb-generated/envoy/api/v2/core/protocol.upb.h +13 -0
- data/src/core/ext/upb-generated/envoy/api/v2/discovery.upb.c +0 -1
- data/src/core/ext/upb-generated/envoy/api/v2/eds.upb.c +23 -23
- data/src/core/ext/upb-generated/envoy/api/v2/eds.upb.h +48 -44
- data/src/core/ext/upb-generated/envoy/api/v2/endpoint/endpoint.upb.c +0 -1
- data/src/core/ext/upb-generated/envoy/api/v2/endpoint/load_report.upb.c +0 -1
- data/src/core/ext/upb-generated/envoy/type/http.upb.c +16 -0
- data/src/core/ext/upb-generated/envoy/type/http.upb.h +36 -0
- data/src/core/ext/upb-generated/envoy/type/percent.upb.c +0 -1
- data/src/core/ext/upb-generated/envoy/type/range.upb.c +0 -1
- data/src/core/lib/avl/avl.cc +1 -1
- data/src/core/lib/channel/channel_stack.cc +1 -1
- data/src/core/lib/channel/channel_stack.h +16 -4
- data/src/core/lib/channel/channel_trace.cc +4 -4
- data/src/core/lib/channel/channelz.cc +46 -46
- data/src/core/lib/channel/channelz.h +37 -35
- data/src/core/lib/channel/channelz_registry.cc +2 -2
- data/src/core/lib/channel/channelz_registry.h +1 -1
- data/src/core/lib/channel/connected_channel.cc +3 -2
- data/src/core/lib/channel/handshaker.cc +1 -1
- data/src/core/lib/channel/handshaker_registry.cc +5 -5
- data/src/core/lib/channel/handshaker_registry.h +3 -3
- data/src/core/lib/compression/message_compress.cc +3 -2
- data/src/core/lib/compression/stream_compression_identity.cc +5 -7
- data/src/core/lib/gpr/alloc.cc +4 -29
- data/src/core/lib/gpr/cpu_linux.cc +1 -1
- data/src/core/lib/gprpp/fork.cc +4 -4
- data/src/core/lib/gprpp/global_config_env.cc +7 -7
- data/src/core/lib/gprpp/global_config_env.h +2 -2
- data/src/core/lib/gprpp/host_port.cc +8 -8
- data/src/core/lib/gprpp/host_port.h +3 -3
- data/src/core/lib/gprpp/inlined_vector.h +13 -0
- data/src/core/lib/gprpp/map.h +2 -9
- data/src/core/lib/gprpp/memory.h +12 -98
- data/src/core/lib/gprpp/orphanable.h +3 -3
- data/src/core/lib/gprpp/ref_counted.h +3 -3
- data/src/core/lib/gprpp/ref_counted_ptr.h +1 -1
- data/src/core/lib/gprpp/string_view.h +45 -23
- data/src/core/lib/gprpp/thd.h +1 -1
- data/src/core/lib/gprpp/thd_posix.cc +6 -5
- data/src/core/lib/gprpp/thd_windows.cc +3 -3
- data/src/core/lib/http/httpcli.cc +1 -1
- data/src/core/lib/http/httpcli_security_connector.cc +3 -3
- data/src/core/lib/iomgr/buffer_list.cc +10 -5
- data/src/core/lib/iomgr/call_combiner.cc +7 -6
- data/src/core/lib/iomgr/call_combiner.h +4 -3
- data/src/core/lib/iomgr/cfstream_handle.cc +2 -2
- data/src/core/lib/iomgr/closure.h +33 -135
- data/src/core/lib/iomgr/combiner.cc +10 -17
- data/src/core/lib/iomgr/combiner.h +0 -2
- data/src/core/lib/iomgr/endpoint_cfstream.cc +2 -2
- data/src/core/lib/iomgr/endpoint_pair_posix.cc +1 -1
- data/src/core/lib/iomgr/ev_epoll1_linux.cc +3 -2
- data/src/core/lib/iomgr/ev_epollex_linux.cc +23 -13
- data/src/core/lib/iomgr/ev_poll_posix.cc +30 -17
- data/src/core/lib/iomgr/exec_ctx.cc +52 -5
- data/src/core/lib/iomgr/exec_ctx.h +6 -2
- data/src/core/lib/iomgr/executor.cc +16 -37
- data/src/core/lib/iomgr/executor.h +4 -7
- data/src/core/lib/iomgr/executor/threadpool.cc +4 -4
- data/src/core/lib/iomgr/iomgr_custom.cc +1 -1
- data/src/core/lib/iomgr/lockfree_event.cc +9 -8
- data/src/core/lib/iomgr/logical_thread.cc +103 -0
- data/src/core/lib/iomgr/logical_thread.h +52 -0
- data/src/core/lib/iomgr/pollset_custom.cc +5 -5
- data/src/core/lib/iomgr/pollset_set_custom.cc +9 -9
- data/src/core/lib/iomgr/pollset_windows.cc +16 -2
- data/src/core/lib/iomgr/port.h +3 -0
- data/src/core/lib/iomgr/resolve_address_custom.cc +4 -4
- data/src/core/lib/iomgr/resolve_address_posix.cc +8 -9
- data/src/core/lib/iomgr/resolve_address_windows.cc +4 -6
- data/src/core/lib/iomgr/resource_quota.cc +26 -21
- data/src/core/lib/iomgr/socket_utils_common_posix.cc +11 -0
- data/src/core/lib/iomgr/socket_windows.cc +2 -2
- data/src/core/lib/iomgr/tcp_client_cfstream.cc +2 -2
- data/src/core/lib/iomgr/tcp_client_custom.cc +2 -2
- data/src/core/lib/iomgr/tcp_client_posix.cc +5 -4
- data/src/core/lib/iomgr/tcp_client_windows.cc +2 -2
- data/src/core/lib/iomgr/tcp_custom.cc +10 -9
- data/src/core/lib/iomgr/tcp_posix.cc +19 -15
- data/src/core/lib/iomgr/tcp_server_custom.cc +3 -2
- data/src/core/lib/iomgr/tcp_server_posix.cc +5 -4
- data/src/core/lib/iomgr/tcp_server_windows.cc +5 -3
- data/src/core/lib/iomgr/tcp_windows.cc +16 -13
- data/src/core/lib/iomgr/timer_custom.cc +4 -3
- data/src/core/lib/iomgr/timer_generic.cc +11 -9
- data/src/core/lib/iomgr/udp_server.cc +16 -13
- data/src/core/lib/security/credentials/alts/alts_credentials.cc +8 -5
- data/src/core/lib/security/credentials/alts/check_gcp_environment_windows.cc +45 -57
- data/src/core/lib/security/credentials/composite/composite_credentials.cc +7 -6
- data/src/core/lib/security/credentials/credentials.cc +8 -8
- data/src/core/lib/security/credentials/credentials.h +5 -5
- data/src/core/lib/security/credentials/fake/fake_credentials.cc +5 -5
- data/src/core/lib/security/credentials/google_default/google_default_credentials.cc +1 -1
- data/src/core/lib/security/credentials/iam/iam_credentials.cc +4 -4
- data/src/core/lib/security/credentials/jwt/jwt_credentials.cc +4 -4
- data/src/core/lib/security/credentials/jwt/jwt_verifier.cc +2 -2
- data/src/core/lib/security/credentials/local/local_credentials.cc +3 -3
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc +13 -11
- data/src/core/lib/security/credentials/plugin/plugin_credentials.cc +6 -5
- data/src/core/lib/security/credentials/ssl/ssl_credentials.cc +4 -4
- data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.cc +5 -5
- data/src/core/lib/security/credentials/tls/spiffe_credentials.cc +2 -2
- data/src/core/lib/security/security_connector/alts/alts_security_connector.cc +28 -22
- data/src/core/lib/security/security_connector/alts/alts_security_connector.h +5 -0
- data/src/core/lib/security/security_connector/fake/fake_security_connector.cc +10 -10
- data/src/core/lib/security/security_connector/load_system_roots_linux.cc +2 -1
- data/src/core/lib/security/security_connector/local/local_security_connector.cc +8 -8
- data/src/core/lib/security/security_connector/security_connector.h +1 -1
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.cc +9 -9
- data/src/core/lib/security/security_connector/ssl_utils.cc +5 -4
- data/src/core/lib/security/security_connector/tls/spiffe_security_connector.cc +14 -15
- data/src/core/lib/security/transport/client_auth_filter.cc +4 -3
- data/src/core/lib/security/transport/secure_endpoint.cc +9 -8
- data/src/core/lib/security/transport/security_handshaker.cc +67 -23
- data/src/core/lib/security/transport/server_auth_filter.cc +6 -5
- data/src/core/lib/security/transport/target_authority_table.h +1 -1
- data/src/core/lib/slice/b64.cc +3 -4
- data/src/core/lib/slice/b64.h +1 -2
- data/src/core/lib/slice/slice.cc +8 -13
- data/src/core/lib/surface/call.cc +19 -19
- data/src/core/lib/surface/call.h +6 -7
- data/src/core/lib/surface/call_log_batch.cc +1 -2
- data/src/core/lib/surface/channel.cc +17 -18
- data/src/core/lib/surface/channel.h +4 -19
- data/src/core/lib/surface/channel_ping.cc +1 -1
- data/src/core/lib/surface/completion_queue.cc +21 -22
- data/src/core/lib/surface/completion_queue_factory.cc +1 -1
- data/src/core/lib/surface/init.cc +1 -1
- data/src/core/lib/surface/init_secure.cc +2 -2
- data/src/core/lib/surface/lame_client.cc +10 -12
- data/src/core/lib/surface/server.cc +24 -18
- data/src/core/lib/surface/version.cc +2 -2
- data/src/core/lib/transport/byte_stream.cc +2 -2
- data/src/core/lib/transport/byte_stream.h +2 -1
- data/src/core/lib/transport/connectivity_state.cc +4 -4
- data/src/core/lib/transport/connectivity_state.h +2 -2
- data/src/core/lib/transport/metadata.cc +8 -10
- data/src/core/lib/transport/metadata.h +5 -8
- data/src/core/lib/transport/metadata_batch.cc +6 -0
- data/src/core/lib/transport/static_metadata.cc +2 -4
- data/src/core/lib/transport/status_metadata.cc +7 -0
- data/src/core/lib/transport/status_metadata.h +18 -0
- data/src/core/lib/transport/transport.cc +9 -7
- data/src/core/plugin_registry/grpc_plugin_registry.cc +4 -0
- data/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +292 -43
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc +197 -46
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.h +4 -2
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker_private.h +5 -0
- data/src/core/tsi/ssl/session_cache/ssl_session.h +1 -1
- data/src/core/tsi/ssl/session_cache/ssl_session_boringssl.cc +1 -1
- data/src/core/tsi/ssl/session_cache/ssl_session_cache.cc +4 -4
- data/src/core/tsi/ssl/session_cache/ssl_session_openssl.cc +1 -1
- data/src/core/tsi/ssl_transport_security.cc +2 -1
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +0 -4
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +0 -6
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/third_party/upb/upb/decode.c +1 -0
- metadata +34 -32
- data/src/core/ext/filters/client_channel/connector.cc +0 -41
- data/src/core/ext/filters/client_channel/proxy_mapper.cc +0 -48
- data/src/core/lib/gprpp/set.h +0 -33
@@ -65,7 +65,7 @@ class OpenSslCachedSession : public SslCachedSession {
|
|
65
65
|
|
66
66
|
} // namespace
|
67
67
|
|
68
|
-
|
68
|
+
std::unique_ptr<SslCachedSession> SslCachedSession::Create(
|
69
69
|
SslSessionPtr session) {
|
70
70
|
return grpc_core::MakeUnique<OpenSslCachedSession>(std::move(session));
|
71
71
|
}
|
@@ -1543,7 +1543,8 @@ static int does_entry_match_name(grpc_core::StringView entry,
|
|
1543
1543
|
entry.remove_prefix(2); /* Remove *. */
|
1544
1544
|
size_t dot = name_subdomain.find('.');
|
1545
1545
|
if (dot == grpc_core::StringView::npos || dot == name_subdomain.size() - 1) {
|
1546
|
-
grpc_core::UniquePtr<char> name_subdomain_cstr(
|
1546
|
+
grpc_core::UniquePtr<char> name_subdomain_cstr(
|
1547
|
+
grpc_core::StringViewToCString(name_subdomain));
|
1547
1548
|
gpr_log(GPR_ERROR, "Invalid toplevel subdomain: %s",
|
1548
1549
|
name_subdomain_cstr.get());
|
1549
1550
|
return 0;
|
@@ -240,8 +240,6 @@ gpr_free_type gpr_free_import;
|
|
240
240
|
gpr_realloc_type gpr_realloc_import;
|
241
241
|
gpr_malloc_aligned_type gpr_malloc_aligned_import;
|
242
242
|
gpr_free_aligned_type gpr_free_aligned_import;
|
243
|
-
gpr_set_allocation_functions_type gpr_set_allocation_functions_import;
|
244
|
-
gpr_get_allocation_functions_type gpr_get_allocation_functions_import;
|
245
243
|
gpr_cpu_num_cores_type gpr_cpu_num_cores_import;
|
246
244
|
gpr_cpu_current_cpu_type gpr_cpu_current_cpu_import;
|
247
245
|
gpr_format_message_type gpr_format_message_import;
|
@@ -513,8 +511,6 @@ void grpc_rb_load_imports(HMODULE library) {
|
|
513
511
|
gpr_realloc_import = (gpr_realloc_type) GetProcAddress(library, "gpr_realloc");
|
514
512
|
gpr_malloc_aligned_import = (gpr_malloc_aligned_type) GetProcAddress(library, "gpr_malloc_aligned");
|
515
513
|
gpr_free_aligned_import = (gpr_free_aligned_type) GetProcAddress(library, "gpr_free_aligned");
|
516
|
-
gpr_set_allocation_functions_import = (gpr_set_allocation_functions_type) GetProcAddress(library, "gpr_set_allocation_functions");
|
517
|
-
gpr_get_allocation_functions_import = (gpr_get_allocation_functions_type) GetProcAddress(library, "gpr_get_allocation_functions");
|
518
514
|
gpr_cpu_num_cores_import = (gpr_cpu_num_cores_type) GetProcAddress(library, "gpr_cpu_num_cores");
|
519
515
|
gpr_cpu_current_cpu_import = (gpr_cpu_current_cpu_type) GetProcAddress(library, "gpr_cpu_current_cpu");
|
520
516
|
gpr_format_message_import = (gpr_format_message_type) GetProcAddress(library, "gpr_format_message");
|
@@ -695,12 +695,6 @@ extern gpr_malloc_aligned_type gpr_malloc_aligned_import;
|
|
695
695
|
typedef void(*gpr_free_aligned_type)(void* ptr);
|
696
696
|
extern gpr_free_aligned_type gpr_free_aligned_import;
|
697
697
|
#define gpr_free_aligned gpr_free_aligned_import
|
698
|
-
typedef void(*gpr_set_allocation_functions_type)(gpr_allocation_functions functions);
|
699
|
-
extern gpr_set_allocation_functions_type gpr_set_allocation_functions_import;
|
700
|
-
#define gpr_set_allocation_functions gpr_set_allocation_functions_import
|
701
|
-
typedef gpr_allocation_functions(*gpr_get_allocation_functions_type)(void);
|
702
|
-
extern gpr_get_allocation_functions_type gpr_get_allocation_functions_import;
|
703
|
-
#define gpr_get_allocation_functions gpr_get_allocation_functions_import
|
704
698
|
typedef unsigned(*gpr_cpu_num_cores_type)(void);
|
705
699
|
extern gpr_cpu_num_cores_type gpr_cpu_num_cores_import;
|
706
700
|
#define gpr_cpu_num_cores gpr_cpu_num_cores_import
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.26.0.pre1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gRPC Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: src/ruby/bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -277,7 +277,6 @@ files:
|
|
277
277
|
- src/core/ext/filters/client_channel/client_channel_factory.cc
|
278
278
|
- src/core/ext/filters/client_channel/client_channel_factory.h
|
279
279
|
- src/core/ext/filters/client_channel/client_channel_plugin.cc
|
280
|
-
- src/core/ext/filters/client_channel/connector.cc
|
281
280
|
- src/core/ext/filters/client_channel/connector.h
|
282
281
|
- src/core/ext/filters/client_channel/global_subchannel_pool.cc
|
283
282
|
- src/core/ext/filters/client_channel/global_subchannel_pool.h
|
@@ -302,6 +301,7 @@ files:
|
|
302
301
|
- src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc
|
303
302
|
- src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc
|
304
303
|
- src/core/ext/filters/client_channel/lb_policy/subchannel_list.h
|
304
|
+
- src/core/ext/filters/client_channel/lb_policy/xds/cds.cc
|
305
305
|
- src/core/ext/filters/client_channel/lb_policy/xds/xds.cc
|
306
306
|
- src/core/ext/filters/client_channel/lb_policy/xds/xds.h
|
307
307
|
- src/core/ext/filters/client_channel/lb_policy_factory.h
|
@@ -311,7 +311,6 @@ files:
|
|
311
311
|
- src/core/ext/filters/client_channel/local_subchannel_pool.h
|
312
312
|
- src/core/ext/filters/client_channel/parse_address.cc
|
313
313
|
- src/core/ext/filters/client_channel/parse_address.h
|
314
|
-
- src/core/ext/filters/client_channel/proxy_mapper.cc
|
315
314
|
- src/core/ext/filters/client_channel/proxy_mapper.h
|
316
315
|
- src/core/ext/filters/client_channel/proxy_mapper_registry.cc
|
317
316
|
- src/core/ext/filters/client_channel/proxy_mapper_registry.h
|
@@ -482,6 +481,8 @@ files:
|
|
482
481
|
- src/core/ext/upb-generated/envoy/service/discovery/v2/ads.upb.h
|
483
482
|
- src/core/ext/upb-generated/envoy/service/load_stats/v2/lrs.upb.c
|
484
483
|
- src/core/ext/upb-generated/envoy/service/load_stats/v2/lrs.upb.h
|
484
|
+
- src/core/ext/upb-generated/envoy/type/http.upb.c
|
485
|
+
- src/core/ext/upb-generated/envoy/type/http.upb.h
|
485
486
|
- src/core/ext/upb-generated/envoy/type/percent.upb.c
|
486
487
|
- src/core/ext/upb-generated/envoy/type/percent.upb.h
|
487
488
|
- src/core/ext/upb-generated/envoy/type/range.upb.c
|
@@ -636,7 +637,6 @@ files:
|
|
636
637
|
- src/core/lib/gprpp/orphanable.h
|
637
638
|
- src/core/lib/gprpp/ref_counted.h
|
638
639
|
- src/core/lib/gprpp/ref_counted_ptr.h
|
639
|
-
- src/core/lib/gprpp/set.h
|
640
640
|
- src/core/lib/gprpp/string_view.h
|
641
641
|
- src/core/lib/gprpp/sync.h
|
642
642
|
- src/core/lib/gprpp/thd.h
|
@@ -720,6 +720,8 @@ files:
|
|
720
720
|
- src/core/lib/iomgr/load_file.h
|
721
721
|
- src/core/lib/iomgr/lockfree_event.cc
|
722
722
|
- src/core/lib/iomgr/lockfree_event.h
|
723
|
+
- src/core/lib/iomgr/logical_thread.cc
|
724
|
+
- src/core/lib/iomgr/logical_thread.h
|
723
725
|
- src/core/lib/iomgr/nameser.h
|
724
726
|
- src/core/lib/iomgr/polling_entity.cc
|
725
727
|
- src/core/lib/iomgr/polling_entity.h
|
@@ -1727,50 +1729,50 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1727
1729
|
version: 2.3.0
|
1728
1730
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1729
1731
|
requirements:
|
1730
|
-
- - "
|
1732
|
+
- - ">"
|
1731
1733
|
- !ruby/object:Gem::Version
|
1732
|
-
version:
|
1734
|
+
version: 1.3.1
|
1733
1735
|
requirements: []
|
1734
1736
|
rubygems_version: 3.0.6
|
1735
1737
|
signing_key:
|
1736
1738
|
specification_version: 4
|
1737
1739
|
summary: GRPC system in Ruby
|
1738
1740
|
test_files:
|
1739
|
-
- src/ruby/spec/
|
1740
|
-
- src/ruby/spec/
|
1741
|
-
- src/ruby/spec/
|
1742
|
-
- src/ruby/spec/pb/codegen/package_option_spec.rb
|
1743
|
-
- src/ruby/spec/pb/codegen/grpc/testing/package_options_import.proto
|
1744
|
-
- src/ruby/spec/pb/codegen/grpc/testing/package_options_ruby_style.proto
|
1745
|
-
- src/ruby/spec/pb/codegen/grpc/testing/package_options.proto
|
1746
|
-
- src/ruby/spec/pb/health/checker_spec.rb
|
1747
|
-
- src/ruby/spec/channel_credentials_spec.rb
|
1748
|
-
- src/ruby/spec/spec_helper.rb
|
1749
|
-
- src/ruby/spec/support/services.rb
|
1750
|
-
- src/ruby/spec/support/helpers.rb
|
1751
|
-
- src/ruby/spec/call_spec.rb
|
1752
|
-
- src/ruby/spec/error_sanity_spec.rb
|
1753
|
-
- src/ruby/spec/channel_spec.rb
|
1754
|
-
- src/ruby/spec/call_credentials_spec.rb
|
1755
|
-
- src/ruby/spec/generic/rpc_server_pool_spec.rb
|
1741
|
+
- src/ruby/spec/channel_connection_spec.rb
|
1742
|
+
- src/ruby/spec/time_consts_spec.rb
|
1743
|
+
- src/ruby/spec/generic/service_spec.rb
|
1756
1744
|
- src/ruby/spec/generic/server_interceptors_spec.rb
|
1745
|
+
- src/ruby/spec/generic/interceptor_registry_spec.rb
|
1757
1746
|
- src/ruby/spec/generic/active_call_spec.rb
|
1758
1747
|
- src/ruby/spec/generic/rpc_desc_spec.rb
|
1759
|
-
- src/ruby/spec/generic/service_spec.rb
|
1760
|
-
- src/ruby/spec/generic/interceptor_registry_spec.rb
|
1761
1748
|
- src/ruby/spec/generic/client_stub_spec.rb
|
1762
1749
|
- src/ruby/spec/generic/rpc_server_spec.rb
|
1750
|
+
- src/ruby/spec/generic/rpc_server_pool_spec.rb
|
1763
1751
|
- src/ruby/spec/generic/client_interceptors_spec.rb
|
1752
|
+
- src/ruby/spec/google_rpc_status_utils_spec.rb
|
1753
|
+
- src/ruby/spec/support/helpers.rb
|
1754
|
+
- src/ruby/spec/support/services.rb
|
1764
1755
|
- src/ruby/spec/server_credentials_spec.rb
|
1765
|
-
- src/ruby/spec/
|
1756
|
+
- src/ruby/spec/errors_spec.rb
|
1766
1757
|
- src/ruby/spec/client_server_spec.rb
|
1767
|
-
- src/ruby/spec/
|
1758
|
+
- src/ruby/spec/pb/health/checker_spec.rb
|
1759
|
+
- src/ruby/spec/pb/duplicate/codegen_spec.rb
|
1760
|
+
- src/ruby/spec/pb/codegen/package_option_spec.rb
|
1761
|
+
- src/ruby/spec/pb/codegen/grpc/testing/package_options_ruby_style.proto
|
1762
|
+
- src/ruby/spec/pb/codegen/grpc/testing/package_options_import.proto
|
1763
|
+
- src/ruby/spec/pb/codegen/grpc/testing/package_options.proto
|
1764
|
+
- src/ruby/spec/channel_credentials_spec.rb
|
1765
|
+
- src/ruby/spec/channel_spec.rb
|
1766
|
+
- src/ruby/spec/client_auth_spec.rb
|
1767
|
+
- src/ruby/spec/call_credentials_spec.rb
|
1768
|
+
- src/ruby/spec/server_spec.rb
|
1768
1769
|
- src/ruby/spec/testdata/server1.pem
|
1769
1770
|
- src/ruby/spec/testdata/client.key
|
1770
1771
|
- src/ruby/spec/testdata/client.pem
|
1771
|
-
- src/ruby/spec/testdata/server1.key
|
1772
1772
|
- src/ruby/spec/testdata/README
|
1773
|
-
- src/ruby/spec/
|
1774
|
-
- src/ruby/spec/
|
1775
|
-
- src/ruby/spec/
|
1773
|
+
- src/ruby/spec/testdata/server1.key
|
1774
|
+
- src/ruby/spec/testdata/ca.pem
|
1775
|
+
- src/ruby/spec/call_spec.rb
|
1776
|
+
- src/ruby/spec/error_sanity_spec.rb
|
1777
|
+
- src/ruby/spec/spec_helper.rb
|
1776
1778
|
- src/ruby/spec/compression_options_spec.rb
|
@@ -1,41 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
*
|
3
|
-
* Copyright 2015 gRPC authors.
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
* you may not use this file except in compliance with the License.
|
7
|
-
* You may obtain a copy of the License at
|
8
|
-
*
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
*
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
* See the License for the specific language governing permissions and
|
15
|
-
* limitations under the License.
|
16
|
-
*
|
17
|
-
*/
|
18
|
-
|
19
|
-
#include <grpc/support/port_platform.h>
|
20
|
-
|
21
|
-
#include "src/core/ext/filters/client_channel/connector.h"
|
22
|
-
|
23
|
-
grpc_connector* grpc_connector_ref(grpc_connector* connector) {
|
24
|
-
connector->vtable->ref(connector);
|
25
|
-
return connector;
|
26
|
-
}
|
27
|
-
|
28
|
-
void grpc_connector_unref(grpc_connector* connector) {
|
29
|
-
connector->vtable->unref(connector);
|
30
|
-
}
|
31
|
-
|
32
|
-
void grpc_connector_connect(grpc_connector* connector,
|
33
|
-
const grpc_connect_in_args* in_args,
|
34
|
-
grpc_connect_out_args* out_args,
|
35
|
-
grpc_closure* notify) {
|
36
|
-
connector->vtable->connect(connector, in_args, out_args, notify);
|
37
|
-
}
|
38
|
-
|
39
|
-
void grpc_connector_shutdown(grpc_connector* connector, grpc_error* why) {
|
40
|
-
connector->vtable->shutdown(connector, why);
|
41
|
-
}
|
@@ -1,48 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
*
|
3
|
-
* Copyright 2017 gRPC authors.
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
* you may not use this file except in compliance with the License.
|
7
|
-
* You may obtain a copy of the License at
|
8
|
-
*
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
*
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
* See the License for the specific language governing permissions and
|
15
|
-
* limitations under the License.
|
16
|
-
*
|
17
|
-
*/
|
18
|
-
|
19
|
-
#include <grpc/support/port_platform.h>
|
20
|
-
|
21
|
-
#include "src/core/ext/filters/client_channel/proxy_mapper.h"
|
22
|
-
|
23
|
-
void grpc_proxy_mapper_init(const grpc_proxy_mapper_vtable* vtable,
|
24
|
-
grpc_proxy_mapper* mapper) {
|
25
|
-
mapper->vtable = vtable;
|
26
|
-
}
|
27
|
-
|
28
|
-
bool grpc_proxy_mapper_map_name(grpc_proxy_mapper* mapper,
|
29
|
-
const char* server_uri,
|
30
|
-
const grpc_channel_args* args,
|
31
|
-
char** name_to_resolve,
|
32
|
-
grpc_channel_args** new_args) {
|
33
|
-
return mapper->vtable->map_name(mapper, server_uri, args, name_to_resolve,
|
34
|
-
new_args);
|
35
|
-
}
|
36
|
-
|
37
|
-
bool grpc_proxy_mapper_map_address(grpc_proxy_mapper* mapper,
|
38
|
-
const grpc_resolved_address* address,
|
39
|
-
const grpc_channel_args* args,
|
40
|
-
grpc_resolved_address** new_address,
|
41
|
-
grpc_channel_args** new_args) {
|
42
|
-
return mapper->vtable->map_address(mapper, address, args, new_address,
|
43
|
-
new_args);
|
44
|
-
}
|
45
|
-
|
46
|
-
void grpc_proxy_mapper_destroy(grpc_proxy_mapper* mapper) {
|
47
|
-
mapper->vtable->destroy(mapper);
|
48
|
-
}
|
data/src/core/lib/gprpp/set.h
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Copyright 2017 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
|
-
#ifndef GRPC_CORE_LIB_GPRPP_SET_H
|
18
|
-
#define GRPC_CORE_LIB_GPRPP_SET_H
|
19
|
-
|
20
|
-
#include <grpc/support/port_platform.h>
|
21
|
-
|
22
|
-
#include <set>
|
23
|
-
|
24
|
-
#include "src/core/lib/gprpp/memory.h"
|
25
|
-
|
26
|
-
namespace grpc_core {
|
27
|
-
|
28
|
-
template <typename T, typename Compare = std::less<T>>
|
29
|
-
using Set = std::set<T, Compare, Allocator<T>>;
|
30
|
-
|
31
|
-
} // namespace grpc_core
|
32
|
-
|
33
|
-
#endif /* GRPC_CORE_LIB_GPRPP_SET_H */
|