grpc 1.3.4 → 1.4.0
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 +581 -450
- data/include/grpc/census.h +49 -49
- data/include/grpc/grpc.h +16 -70
- data/include/grpc/grpc_security.h +59 -59
- data/include/grpc/grpc_security_constants.h +9 -9
- data/include/grpc/impl/codegen/atm.h +1 -1
- data/include/grpc/impl/codegen/atm_windows.h +4 -4
- data/include/grpc/impl/codegen/byte_buffer_reader.h +2 -2
- data/include/grpc/impl/codegen/compression_types.h +4 -5
- data/include/grpc/impl/codegen/gpr_slice.h +5 -5
- data/include/grpc/impl/codegen/gpr_types.h +6 -7
- data/include/grpc/impl/codegen/grpc_types.h +128 -59
- data/include/grpc/impl/codegen/port_platform.h +6 -0
- data/include/grpc/impl/codegen/propagation_bits.h +2 -2
- data/include/grpc/impl/codegen/slice.h +13 -12
- data/include/grpc/impl/codegen/status.h +23 -18
- data/include/grpc/impl/codegen/sync.h +1 -1
- data/include/grpc/load_reporting.h +6 -6
- data/include/grpc/slice.h +47 -25
- data/include/grpc/slice_buffer.h +18 -14
- data/include/grpc/support/alloc.h +7 -7
- data/include/grpc/support/cmdline.h +10 -10
- data/include/grpc/support/cpu.h +3 -3
- data/include/grpc/support/histogram.h +1 -1
- data/include/grpc/support/host_port.h +2 -2
- data/include/grpc/support/log.h +9 -9
- data/include/grpc/support/log_windows.h +1 -1
- data/include/grpc/support/string_util.h +3 -3
- data/include/grpc/support/subprocess.h +3 -3
- data/include/grpc/support/sync.h +31 -31
- data/include/grpc/support/thd.h +11 -11
- data/include/grpc/support/time.h +12 -12
- data/include/grpc/support/tls.h +1 -1
- data/include/grpc/support/tls_gcc.h +2 -2
- data/include/grpc/support/tls_msvc.h +1 -1
- data/include/grpc/support/tls_pthread.h +1 -1
- data/include/grpc/support/useful.h +2 -2
- data/include/grpc/support/workaround_list.h +46 -0
- data/src/core/ext/census/context.c +1 -1
- data/src/core/ext/census/intrusive_hash_map.c +319 -0
- data/src/core/ext/census/intrusive_hash_map.h +167 -0
- data/src/core/ext/census/intrusive_hash_map_internal.h +63 -0
- data/src/core/ext/census/resource.c +3 -1
- data/src/core/ext/filters/client_channel/channel_connectivity.c +1 -1
- data/src/core/ext/filters/client_channel/client_channel.c +173 -103
- data/src/core/ext/filters/client_channel/client_channel_plugin.c +3 -2
- data/src/core/ext/filters/client_channel/lb_policy.c +2 -1
- data/src/core/ext/filters/client_channel/lb_policy.h +8 -7
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.c +153 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.h +42 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c +405 -102
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.c +133 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.h +65 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.c +90 -51
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h +7 -1
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c +19 -8
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.h +63 -34
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.c +2 -1
- data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.c +188 -294
- data/src/core/ext/filters/client_channel/lb_policy_factory.c +28 -5
- data/src/core/ext/filters/client_channel/lb_policy_factory.h +18 -4
- data/src/core/ext/filters/client_channel/parse_address.c +90 -59
- data/src/core/ext/filters/client_channel/parse_address.h +17 -8
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.c +11 -7
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.c +59 -14
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h +6 -0
- data/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.c +3 -3
- data/src/core/ext/filters/client_channel/subchannel.c +20 -17
- data/src/core/ext/filters/client_channel/subchannel.h +1 -0
- data/src/core/ext/filters/client_channel/subchannel_index.c +11 -1
- data/src/core/ext/filters/client_channel/uri_parser.c +36 -22
- data/src/core/ext/filters/client_channel/uri_parser.h +1 -1
- data/src/core/{lib/channel → ext/filters/deadline}/deadline_filter.c +42 -17
- data/src/core/{lib/channel → ext/filters/deadline}/deadline_filter.h +8 -9
- data/src/core/{lib/channel → ext/filters/http/client}/http_client_filter.c +19 -11
- data/src/core/{lib/channel → ext/filters/http/client}/http_client_filter.h +3 -6
- data/src/core/ext/filters/http/http_filters_plugin.c +104 -0
- data/src/core/{lib/channel/compress_filter.c → ext/filters/http/message_compress/message_compress_filter.c} +124 -23
- data/src/core/{lib/channel/compress_filter.h → ext/filters/http/message_compress/message_compress_filter.h} +5 -6
- data/src/core/{lib/channel → ext/filters/http/server}/http_server_filter.c +4 -6
- data/src/core/{lib/channel → ext/filters/http/server}/http_server_filter.h +3 -3
- data/src/core/ext/filters/load_reporting/load_reporting.c +2 -25
- data/src/core/ext/filters/load_reporting/load_reporting_filter.c +26 -1
- data/src/core/ext/filters/max_age/max_age_filter.c +14 -14
- data/src/core/{lib/channel → ext/filters/message_size}/message_size_filter.c +91 -47
- data/src/core/{lib/channel → ext/filters/message_size}/message_size_filter.h +3 -3
- data/src/core/ext/filters/workarounds/workaround_cronet_compression_filter.c +223 -0
- data/src/core/ext/filters/workarounds/workaround_cronet_compression_filter.h +40 -0
- data/src/core/ext/filters/workarounds/workaround_utils.c +65 -0
- data/src/core/ext/filters/workarounds/workaround_utils.h +52 -0
- data/src/core/ext/transport/chttp2/client/insecure/channel_create.c +1 -1
- data/src/core/ext/transport/chttp2/server/chttp2_server.c +3 -2
- data/src/core/ext/transport/chttp2/transport/bin_decoder.c +2 -2
- data/src/core/ext/transport/chttp2/transport/bin_encoder.c +3 -3
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.c +319 -175
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +3 -2
- data/src/core/ext/transport/chttp2/transport/frame_data.c +203 -164
- data/src/core/ext/transport/chttp2/transport/frame_data.h +8 -14
- data/src/core/ext/transport/chttp2/transport/frame_goaway.c +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_ping.c +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.c +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_settings.c +5 -5
- data/src/core/ext/transport/chttp2/transport/frame_window_update.c +1 -1
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.c +4 -4
- data/src/core/ext/transport/chttp2/transport/hpack_parser.c +2 -4
- data/src/core/ext/transport/chttp2/transport/hpack_table.c +4 -3
- data/src/core/ext/transport/chttp2/transport/internal.h +50 -33
- data/src/core/ext/transport/chttp2/transport/parsing.c +10 -11
- data/src/core/ext/transport/chttp2/transport/writing.c +32 -13
- data/src/core/lib/channel/channel_args.c +30 -9
- data/src/core/lib/channel/channel_args.h +5 -1
- data/src/core/lib/channel/channel_stack.c +1 -1
- data/src/core/lib/channel/channel_stack.h +2 -2
- data/src/core/lib/channel/channel_stack_builder.c +13 -1
- data/src/core/lib/channel/channel_stack_builder.h +5 -1
- data/src/core/lib/channel/connected_channel.c +3 -1
- data/src/core/lib/channel/context.h +2 -2
- data/src/core/lib/compression/message_compress.c +2 -2
- data/src/core/lib/debug/trace.c +13 -6
- data/src/core/lib/debug/trace.h +27 -1
- data/src/core/lib/http/httpcli.c +1 -1
- data/src/core/lib/http/httpcli_security_connector.c +9 -11
- data/src/core/lib/http/parser.c +2 -2
- data/src/core/lib/http/parser.h +2 -1
- data/src/core/lib/iomgr/combiner.c +6 -6
- data/src/core/lib/iomgr/combiner.h +2 -1
- data/src/core/lib/iomgr/error.c +12 -5
- data/src/core/lib/iomgr/error.h +13 -13
- data/src/core/lib/iomgr/ev_epoll1_linux.c +984 -0
- data/src/core/lib/iomgr/ev_epoll1_linux.h +44 -0
- data/src/core/lib/iomgr/ev_epoll_limited_pollers_linux.c +2146 -0
- data/src/core/lib/iomgr/ev_epoll_limited_pollers_linux.h +43 -0
- data/src/core/lib/iomgr/ev_epoll_thread_pool_linux.c +1337 -0
- data/src/core/lib/iomgr/ev_epoll_thread_pool_linux.h +43 -0
- data/src/core/lib/iomgr/ev_epollex_linux.c +1511 -0
- data/src/core/lib/iomgr/ev_epollex_linux.h +43 -0
- data/src/core/lib/iomgr/{ev_epoll_linux.c → ev_epollsig_linux.c} +41 -33
- data/src/core/lib/iomgr/{ev_epoll_linux.h → ev_epollsig_linux.h} +4 -4
- data/src/core/lib/iomgr/ev_poll_posix.c +12 -27
- data/src/core/lib/iomgr/ev_poll_posix.h +2 -2
- data/src/core/lib/iomgr/ev_posix.c +22 -8
- data/src/core/lib/iomgr/ev_posix.h +4 -3
- data/src/core/lib/iomgr/ev_windows.c +43 -0
- data/src/core/lib/iomgr/exec_ctx.c +5 -0
- data/src/core/lib/iomgr/exec_ctx.h +2 -0
- data/src/core/lib/iomgr/iomgr.c +4 -0
- data/src/core/lib/iomgr/iomgr.h +3 -0
- data/src/core/lib/iomgr/is_epollexclusive_available.c +116 -0
- data/src/core/lib/iomgr/is_epollexclusive_available.h +41 -0
- data/src/core/lib/iomgr/lockfree_event.c +16 -0
- data/src/core/lib/iomgr/pollset.h +2 -5
- data/src/core/lib/iomgr/pollset_uv.c +1 -1
- data/src/core/lib/iomgr/pollset_windows.c +3 -3
- data/src/core/lib/iomgr/resource_quota.c +9 -8
- data/src/core/lib/iomgr/resource_quota.h +2 -1
- data/src/core/lib/iomgr/sockaddr_utils.h +1 -1
- data/src/core/lib/iomgr/socket_mutator.h +2 -0
- data/src/core/lib/iomgr/sys_epoll_wrapper.h +43 -0
- data/src/core/lib/iomgr/tcp_client_posix.c +6 -6
- data/src/core/lib/iomgr/tcp_client_uv.c +3 -3
- data/src/core/lib/iomgr/tcp_posix.c +7 -7
- data/src/core/lib/iomgr/tcp_posix.h +2 -1
- data/src/core/lib/iomgr/tcp_server_posix.c +1 -1
- data/src/core/lib/iomgr/tcp_uv.c +6 -6
- data/src/core/lib/iomgr/tcp_uv.h +2 -1
- data/src/core/lib/iomgr/tcp_windows.c +1 -1
- data/src/core/lib/iomgr/timer_generic.c +24 -25
- data/src/core/lib/iomgr/timer_manager.c +276 -0
- data/src/core/lib/iomgr/timer_manager.h +52 -0
- data/src/core/lib/iomgr/timer_uv.c +6 -0
- data/src/core/lib/iomgr/udp_server.c +42 -9
- data/src/core/lib/iomgr/udp_server.h +3 -1
- data/src/core/lib/security/credentials/credentials.c +0 -1
- data/src/core/lib/security/credentials/fake/fake_credentials.c +23 -0
- data/src/core/lib/security/credentials/fake/fake_credentials.h +12 -9
- data/src/core/lib/security/credentials/google_default/google_default_credentials.c +1 -1
- data/src/core/lib/security/credentials/jwt/jwt_credentials.c +1 -1
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.c +1 -1
- data/src/core/lib/security/credentials/ssl/ssl_credentials.c +24 -53
- data/src/core/lib/security/transport/client_auth_filter.c +9 -3
- data/src/core/lib/security/transport/secure_endpoint.c +7 -7
- data/src/core/lib/security/transport/secure_endpoint.h +1 -1
- data/src/core/lib/security/transport/security_connector.c +45 -57
- data/src/core/lib/security/transport/security_connector.h +10 -14
- data/src/core/lib/security/transport/security_handshaker.c +123 -97
- data/src/core/lib/slice/b64.c +1 -1
- data/src/core/lib/slice/percent_encoding.c +3 -3
- data/src/core/lib/slice/slice.c +66 -33
- data/src/core/lib/slice/slice_buffer.c +25 -6
- data/src/core/lib/slice/slice_hash_table.c +33 -35
- data/src/core/lib/slice/slice_hash_table.h +7 -12
- data/src/core/lib/support/atomic.h +45 -0
- data/src/core/lib/support/atomic_with_atm.h +70 -0
- data/src/core/lib/support/atomic_with_std.h +48 -0
- data/src/core/lib/support/avl.c +14 -14
- data/src/core/lib/support/cmdline.c +3 -3
- data/src/core/lib/support/histogram.c +2 -2
- data/src/core/lib/support/host_port.c +1 -1
- data/src/core/lib/support/memory.h +74 -0
- data/src/core/lib/support/mpscq.c +36 -2
- data/src/core/lib/support/mpscq.h +28 -1
- data/src/core/lib/support/stack_lockfree.c +3 -36
- data/src/core/lib/support/string.c +12 -12
- data/src/core/lib/support/string_posix.c +1 -1
- data/src/core/lib/support/subprocess_posix.c +2 -2
- data/src/core/lib/support/thd_posix.c +1 -1
- data/src/core/lib/support/time_posix.c +8 -0
- data/src/core/lib/support/tmpfile_posix.c +10 -10
- data/src/core/lib/surface/alarm.c +3 -1
- data/src/core/lib/surface/api_trace.c +2 -1
- data/src/core/lib/surface/api_trace.h +2 -2
- data/src/core/lib/surface/byte_buffer_reader.c +1 -1
- data/src/core/lib/surface/call.c +65 -22
- data/src/core/lib/surface/call.h +4 -2
- data/src/core/lib/surface/channel_init.c +2 -19
- data/src/core/lib/surface/channel_stack_type.c +18 -0
- data/src/core/lib/surface/channel_stack_type.h +2 -0
- data/src/core/lib/surface/completion_queue.c +694 -247
- data/src/core/lib/surface/completion_queue.h +30 -13
- data/src/core/lib/surface/completion_queue_factory.c +24 -9
- data/src/core/lib/surface/init.c +1 -52
- data/src/core/lib/surface/{lame_client.c → lame_client.cc} +37 -26
- data/src/core/lib/surface/server.c +79 -110
- data/src/core/lib/surface/server.h +2 -1
- data/src/core/lib/surface/version.c +2 -2
- data/src/core/lib/transport/bdp_estimator.c +25 -9
- data/src/core/lib/transport/bdp_estimator.h +7 -1
- data/src/core/lib/transport/byte_stream.c +23 -9
- data/src/core/lib/transport/byte_stream.h +15 -6
- data/src/core/lib/transport/connectivity_state.c +6 -6
- data/src/core/lib/transport/connectivity_state.h +2 -1
- data/src/core/lib/transport/service_config.c +6 -13
- data/src/core/lib/transport/service_config.h +2 -2
- data/src/core/lib/transport/static_metadata.c +403 -389
- data/src/core/lib/transport/static_metadata.h +127 -114
- data/src/core/plugin_registry/grpc_plugin_registry.c +16 -0
- data/src/core/tsi/fake_transport_security.c +5 -4
- data/src/core/tsi/ssl_transport_security.c +71 -82
- data/src/core/tsi/ssl_transport_security.h +39 -61
- data/src/core/tsi/transport_security.c +83 -2
- data/src/core/tsi/transport_security.h +27 -2
- data/src/core/tsi/transport_security_adapter.c +236 -0
- data/src/core/tsi/transport_security_adapter.h +62 -0
- data/src/core/tsi/transport_security_interface.h +179 -66
- data/src/ruby/ext/grpc/extconf.rb +2 -1
- data/src/ruby/ext/grpc/rb_byte_buffer.c +8 -6
- data/src/ruby/ext/grpc/rb_call.c +56 -48
- data/src/ruby/ext/grpc/rb_call.h +3 -4
- data/src/ruby/ext/grpc/rb_call_credentials.c +23 -22
- data/src/ruby/ext/grpc/rb_channel.c +2 -3
- data/src/ruby/ext/grpc/rb_channel_args.c +11 -9
- data/src/ruby/ext/grpc/rb_channel_credentials.c +16 -12
- data/src/ruby/ext/grpc/rb_completion_queue.c +7 -9
- data/src/ruby/ext/grpc/rb_compression_options.c +7 -6
- data/src/ruby/ext/grpc/rb_event_thread.c +10 -12
- data/src/ruby/ext/grpc/rb_event_thread.h +1 -2
- data/src/ruby/ext/grpc/rb_grpc.c +11 -15
- data/src/ruby/ext/grpc/rb_grpc.h +2 -2
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +16 -6
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +25 -10
- data/src/ruby/ext/grpc/rb_server.c +26 -28
- data/src/ruby/lib/grpc/grpc.rb +1 -1
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/third_party/cares/config_linux/ares_config.h +36 -2
- data/third_party/zlib/adler32.c +14 -7
- data/third_party/zlib/compress.c +24 -18
- data/third_party/zlib/crc32.c +29 -12
- data/third_party/zlib/deflate.c +499 -303
- data/third_party/zlib/deflate.h +19 -16
- data/third_party/zlib/gzguts.h +16 -7
- data/third_party/zlib/gzlib.c +17 -14
- data/third_party/zlib/gzread.c +108 -48
- data/third_party/zlib/gzwrite.c +210 -122
- data/third_party/zlib/infback.c +2 -2
- data/third_party/zlib/inffast.c +34 -51
- data/third_party/zlib/inflate.c +86 -37
- data/third_party/zlib/inflate.h +7 -4
- data/third_party/zlib/inftrees.c +12 -14
- data/third_party/zlib/trees.c +38 -61
- data/third_party/zlib/uncompr.c +66 -32
- data/third_party/zlib/zconf.h +32 -9
- data/third_party/zlib/zlib.h +298 -154
- data/third_party/zlib/zutil.c +25 -24
- data/third_party/zlib/zutil.h +35 -17
- metadata +63 -30
data/third_party/zlib/zutil.c
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/* zutil.c -- target dependent utility functions for the compression library
|
2
|
-
* Copyright (C) 1995-
|
2
|
+
* Copyright (C) 1995-2017 Jean-loup Gailly
|
3
3
|
* For conditions of distribution and use, see copyright notice in zlib.h
|
4
4
|
*/
|
5
5
|
|
@@ -10,21 +10,18 @@
|
|
10
10
|
# include "gzguts.h"
|
11
11
|
#endif
|
12
12
|
|
13
|
-
#ifndef NO_DUMMY_DECL
|
14
|
-
struct internal_state {int dummy;}; /* for buggy compilers */
|
15
|
-
#endif
|
16
|
-
|
17
13
|
z_const char * const z_errmsg[10] = {
|
18
|
-
"need dictionary", /* Z_NEED_DICT 2 */
|
19
|
-
"stream end", /* Z_STREAM_END 1 */
|
20
|
-
"", /* Z_OK 0 */
|
21
|
-
"file error", /* Z_ERRNO (-1) */
|
22
|
-
"stream error", /* Z_STREAM_ERROR (-2) */
|
23
|
-
"data error", /* Z_DATA_ERROR (-3) */
|
24
|
-
"insufficient memory", /* Z_MEM_ERROR (-4) */
|
25
|
-
"buffer error", /* Z_BUF_ERROR (-5) */
|
26
|
-
"incompatible version",/* Z_VERSION_ERROR (-6) */
|
27
|
-
""
|
14
|
+
(z_const char *)"need dictionary", /* Z_NEED_DICT 2 */
|
15
|
+
(z_const char *)"stream end", /* Z_STREAM_END 1 */
|
16
|
+
(z_const char *)"", /* Z_OK 0 */
|
17
|
+
(z_const char *)"file error", /* Z_ERRNO (-1) */
|
18
|
+
(z_const char *)"stream error", /* Z_STREAM_ERROR (-2) */
|
19
|
+
(z_const char *)"data error", /* Z_DATA_ERROR (-3) */
|
20
|
+
(z_const char *)"insufficient memory", /* Z_MEM_ERROR (-4) */
|
21
|
+
(z_const char *)"buffer error", /* Z_BUF_ERROR (-5) */
|
22
|
+
(z_const char *)"incompatible version",/* Z_VERSION_ERROR (-6) */
|
23
|
+
(z_const char *)""
|
24
|
+
};
|
28
25
|
|
29
26
|
|
30
27
|
const char * ZEXPORT zlibVersion()
|
@@ -61,7 +58,7 @@ uLong ZEXPORT zlibCompileFlags()
|
|
61
58
|
case 8: flags += 2 << 6; break;
|
62
59
|
default: flags += 3 << 6;
|
63
60
|
}
|
64
|
-
#ifdef
|
61
|
+
#ifdef ZLIB_DEBUG
|
65
62
|
flags += 1 << 8;
|
66
63
|
#endif
|
67
64
|
#if defined(ASMV) || defined(ASMINF)
|
@@ -115,8 +112,8 @@ uLong ZEXPORT zlibCompileFlags()
|
|
115
112
|
return flags;
|
116
113
|
}
|
117
114
|
|
118
|
-
#ifdef
|
119
|
-
|
115
|
+
#ifdef ZLIB_DEBUG
|
116
|
+
#include <stdlib.h>
|
120
117
|
# ifndef verbose
|
121
118
|
# define verbose 0
|
122
119
|
# endif
|
@@ -219,9 +216,11 @@ local ptr_table table[MAX_PTR];
|
|
219
216
|
|
220
217
|
voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, unsigned items, unsigned size)
|
221
218
|
{
|
222
|
-
voidpf buf
|
219
|
+
voidpf buf;
|
223
220
|
ulg bsize = (ulg)items*size;
|
224
221
|
|
222
|
+
(void)opaque;
|
223
|
+
|
225
224
|
/* If we allocate less than 65520 bytes, we assume that farmalloc
|
226
225
|
* will return a usable pointer which doesn't have to be normalized.
|
227
226
|
*/
|
@@ -244,6 +243,9 @@ voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, unsigned items, unsigned size)
|
|
244
243
|
void ZLIB_INTERNAL zcfree (voidpf opaque, voidpf ptr)
|
245
244
|
{
|
246
245
|
int n;
|
246
|
+
|
247
|
+
(void)opaque;
|
248
|
+
|
247
249
|
if (*(ush*)&ptr != 0) { /* object < 64K */
|
248
250
|
farfree(ptr);
|
249
251
|
return;
|
@@ -259,7 +261,6 @@ void ZLIB_INTERNAL zcfree (voidpf opaque, voidpf ptr)
|
|
259
261
|
next_ptr--;
|
260
262
|
return;
|
261
263
|
}
|
262
|
-
ptr = opaque; /* just to make some compilers happy */
|
263
264
|
Assert(0, "zcfree: ptr not found");
|
264
265
|
}
|
265
266
|
|
@@ -278,13 +279,13 @@ void ZLIB_INTERNAL zcfree (voidpf opaque, voidpf ptr)
|
|
278
279
|
|
279
280
|
voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, uInt items, uInt size)
|
280
281
|
{
|
281
|
-
|
282
|
+
(void)opaque;
|
282
283
|
return _halloc((long)items, size);
|
283
284
|
}
|
284
285
|
|
285
286
|
void ZLIB_INTERNAL zcfree (voidpf opaque, voidpf ptr)
|
286
287
|
{
|
287
|
-
|
288
|
+
(void)opaque;
|
288
289
|
_hfree(ptr);
|
289
290
|
}
|
290
291
|
|
@@ -306,7 +307,7 @@ voidpf ZLIB_INTERNAL zcalloc (opaque, items, size)
|
|
306
307
|
unsigned items;
|
307
308
|
unsigned size;
|
308
309
|
{
|
309
|
-
|
310
|
+
(void)opaque;
|
310
311
|
return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) :
|
311
312
|
(voidpf)calloc(items, size);
|
312
313
|
}
|
@@ -315,8 +316,8 @@ void ZLIB_INTERNAL zcfree (opaque, ptr)
|
|
315
316
|
voidpf opaque;
|
316
317
|
voidpf ptr;
|
317
318
|
{
|
319
|
+
(void)opaque;
|
318
320
|
free(ptr);
|
319
|
-
if (opaque) return; /* make compiler happy */
|
320
321
|
}
|
321
322
|
|
322
323
|
#endif /* MY_ZCALLOC */
|
data/third_party/zlib/zutil.h
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/* zutil.h -- internal interface and configuration of the compression library
|
2
|
-
* Copyright (C) 1995-
|
2
|
+
* Copyright (C) 1995-2016 Jean-loup Gailly, Mark Adler
|
3
3
|
* For conditions of distribution and use, see copyright notice in zlib.h
|
4
4
|
*/
|
5
5
|
|
@@ -36,7 +36,9 @@
|
|
36
36
|
#ifndef local
|
37
37
|
# define local static
|
38
38
|
#endif
|
39
|
-
/*
|
39
|
+
/* since "static" is used to mean two completely different things in C, we
|
40
|
+
define "local" for the non-static meaning of "static", for readability
|
41
|
+
(compile with -Dlocal if your debugger can't find static symbols) */
|
40
42
|
|
41
43
|
typedef unsigned char uch;
|
42
44
|
typedef uch FAR uchf;
|
@@ -98,28 +100,38 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
|
|
98
100
|
#endif
|
99
101
|
|
100
102
|
#ifdef AMIGA
|
101
|
-
# define OS_CODE
|
103
|
+
# define OS_CODE 1
|
102
104
|
#endif
|
103
105
|
|
104
106
|
#if defined(VAXC) || defined(VMS)
|
105
|
-
# define OS_CODE
|
107
|
+
# define OS_CODE 2
|
106
108
|
# define F_OPEN(name, mode) \
|
107
109
|
fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512")
|
108
110
|
#endif
|
109
111
|
|
112
|
+
#ifdef __370__
|
113
|
+
# if __TARGET_LIB__ < 0x20000000
|
114
|
+
# define OS_CODE 4
|
115
|
+
# elif __TARGET_LIB__ < 0x40000000
|
116
|
+
# define OS_CODE 11
|
117
|
+
# else
|
118
|
+
# define OS_CODE 8
|
119
|
+
# endif
|
120
|
+
#endif
|
121
|
+
|
110
122
|
#if defined(ATARI) || defined(atarist)
|
111
|
-
# define OS_CODE
|
123
|
+
# define OS_CODE 5
|
112
124
|
#endif
|
113
125
|
|
114
126
|
#ifdef OS2
|
115
|
-
# define OS_CODE
|
127
|
+
# define OS_CODE 6
|
116
128
|
# if defined(M_I86) && !defined(Z_SOLO)
|
117
129
|
# include <malloc.h>
|
118
130
|
# endif
|
119
131
|
#endif
|
120
132
|
|
121
133
|
#if defined(MACOS) || defined(TARGET_OS_MAC)
|
122
|
-
# define OS_CODE
|
134
|
+
# define OS_CODE 7
|
123
135
|
# ifndef Z_SOLO
|
124
136
|
# if defined(__MWERKS__) && __dest_os != __be_os && __dest_os != __win32_os
|
125
137
|
# include <unix.h> /* for fdopen */
|
@@ -131,18 +143,24 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
|
|
131
143
|
# endif
|
132
144
|
#endif
|
133
145
|
|
134
|
-
#ifdef
|
135
|
-
# define OS_CODE
|
146
|
+
#ifdef __acorn
|
147
|
+
# define OS_CODE 13
|
136
148
|
#endif
|
137
149
|
|
138
|
-
#
|
139
|
-
#
|
140
|
-
#
|
141
|
-
|
150
|
+
#if defined(WIN32) && !defined(__CYGWIN__)
|
151
|
+
# define OS_CODE 10
|
152
|
+
#endif
|
153
|
+
|
154
|
+
#ifdef _BEOS_
|
155
|
+
# define OS_CODE 16
|
156
|
+
#endif
|
157
|
+
|
158
|
+
#ifdef __TOS_OS400__
|
159
|
+
# define OS_CODE 18
|
142
160
|
#endif
|
143
161
|
|
144
|
-
#ifdef
|
145
|
-
# define OS_CODE
|
162
|
+
#ifdef __APPLE__
|
163
|
+
# define OS_CODE 19
|
146
164
|
#endif
|
147
165
|
|
148
166
|
#if defined(_BEOS_) || defined(RISCOS)
|
@@ -177,7 +195,7 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
|
|
177
195
|
/* common defaults */
|
178
196
|
|
179
197
|
#ifndef OS_CODE
|
180
|
-
# define OS_CODE
|
198
|
+
# define OS_CODE 3 /* assume Unix */
|
181
199
|
#endif
|
182
200
|
|
183
201
|
#ifndef F_OPEN
|
@@ -216,7 +234,7 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
|
|
216
234
|
#endif
|
217
235
|
|
218
236
|
/* Diagnostic functions */
|
219
|
-
#ifdef
|
237
|
+
#ifdef ZLIB_DEBUG
|
220
238
|
# include <stdio.h>
|
221
239
|
extern int ZLIB_INTERNAL z_verbose;
|
222
240
|
extern void ZLIB_INTERNAL z_error OF((char *m));
|
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.4.0
|
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: 2017-
|
11
|
+
date: 2017-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -247,6 +247,7 @@ files:
|
|
247
247
|
- include/grpc/support/tls_msvc.h
|
248
248
|
- include/grpc/support/tls_pthread.h
|
249
249
|
- include/grpc/support/useful.h
|
250
|
+
- include/grpc/support/workaround_list.h
|
250
251
|
- src/boringssl/err_data.c
|
251
252
|
- src/core/ext/census/aggregation.h
|
252
253
|
- src/core/ext/census/base_resources.c
|
@@ -263,6 +264,9 @@ files:
|
|
263
264
|
- src/core/ext/census/grpc_filter.h
|
264
265
|
- src/core/ext/census/grpc_plugin.c
|
265
266
|
- src/core/ext/census/initialize.c
|
267
|
+
- src/core/ext/census/intrusive_hash_map.c
|
268
|
+
- src/core/ext/census/intrusive_hash_map.h
|
269
|
+
- src/core/ext/census/intrusive_hash_map_internal.h
|
266
270
|
- src/core/ext/census/mlog.c
|
267
271
|
- src/core/ext/census/mlog.h
|
268
272
|
- src/core/ext/census/operation.c
|
@@ -292,10 +296,14 @@ files:
|
|
292
296
|
- src/core/ext/filters/client_channel/http_proxy.h
|
293
297
|
- src/core/ext/filters/client_channel/lb_policy.c
|
294
298
|
- src/core/ext/filters/client_channel/lb_policy.h
|
299
|
+
- src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.c
|
300
|
+
- src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.h
|
295
301
|
- src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c
|
296
302
|
- src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.h
|
297
303
|
- src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel.h
|
298
304
|
- src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel_secure.c
|
305
|
+
- src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.c
|
306
|
+
- src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.h
|
299
307
|
- src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.c
|
300
308
|
- src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h
|
301
309
|
- src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
|
@@ -333,12 +341,27 @@ files:
|
|
333
341
|
- src/core/ext/filters/client_channel/subchannel_index.h
|
334
342
|
- src/core/ext/filters/client_channel/uri_parser.c
|
335
343
|
- src/core/ext/filters/client_channel/uri_parser.h
|
344
|
+
- src/core/ext/filters/deadline/deadline_filter.c
|
345
|
+
- src/core/ext/filters/deadline/deadline_filter.h
|
346
|
+
- src/core/ext/filters/http/client/http_client_filter.c
|
347
|
+
- src/core/ext/filters/http/client/http_client_filter.h
|
348
|
+
- src/core/ext/filters/http/http_filters_plugin.c
|
349
|
+
- src/core/ext/filters/http/message_compress/message_compress_filter.c
|
350
|
+
- src/core/ext/filters/http/message_compress/message_compress_filter.h
|
351
|
+
- src/core/ext/filters/http/server/http_server_filter.c
|
352
|
+
- src/core/ext/filters/http/server/http_server_filter.h
|
336
353
|
- src/core/ext/filters/load_reporting/load_reporting.c
|
337
354
|
- src/core/ext/filters/load_reporting/load_reporting.h
|
338
355
|
- src/core/ext/filters/load_reporting/load_reporting_filter.c
|
339
356
|
- src/core/ext/filters/load_reporting/load_reporting_filter.h
|
340
357
|
- src/core/ext/filters/max_age/max_age_filter.c
|
341
358
|
- src/core/ext/filters/max_age/max_age_filter.h
|
359
|
+
- src/core/ext/filters/message_size/message_size_filter.c
|
360
|
+
- src/core/ext/filters/message_size/message_size_filter.h
|
361
|
+
- src/core/ext/filters/workarounds/workaround_cronet_compression_filter.c
|
362
|
+
- src/core/ext/filters/workarounds/workaround_cronet_compression_filter.h
|
363
|
+
- src/core/ext/filters/workarounds/workaround_utils.c
|
364
|
+
- src/core/ext/filters/workarounds/workaround_utils.h
|
342
365
|
- src/core/ext/transport/chttp2/alpn/alpn.c
|
343
366
|
- src/core/ext/transport/chttp2/alpn/alpn.h
|
344
367
|
- src/core/ext/transport/chttp2/client/chttp2_connector.c
|
@@ -397,25 +420,15 @@ files:
|
|
397
420
|
- src/core/lib/channel/channel_stack.h
|
398
421
|
- src/core/lib/channel/channel_stack_builder.c
|
399
422
|
- src/core/lib/channel/channel_stack_builder.h
|
400
|
-
- src/core/lib/channel/compress_filter.c
|
401
|
-
- src/core/lib/channel/compress_filter.h
|
402
423
|
- src/core/lib/channel/connected_channel.c
|
403
424
|
- src/core/lib/channel/connected_channel.h
|
404
425
|
- src/core/lib/channel/context.h
|
405
|
-
- src/core/lib/channel/deadline_filter.c
|
406
|
-
- src/core/lib/channel/deadline_filter.h
|
407
426
|
- src/core/lib/channel/handshaker.c
|
408
427
|
- src/core/lib/channel/handshaker.h
|
409
428
|
- src/core/lib/channel/handshaker_factory.c
|
410
429
|
- src/core/lib/channel/handshaker_factory.h
|
411
430
|
- src/core/lib/channel/handshaker_registry.c
|
412
431
|
- src/core/lib/channel/handshaker_registry.h
|
413
|
-
- src/core/lib/channel/http_client_filter.c
|
414
|
-
- src/core/lib/channel/http_client_filter.h
|
415
|
-
- src/core/lib/channel/http_server_filter.c
|
416
|
-
- src/core/lib/channel/http_server_filter.h
|
417
|
-
- src/core/lib/channel/message_size_filter.c
|
418
|
-
- src/core/lib/channel/message_size_filter.h
|
419
432
|
- src/core/lib/compression/algorithm_metadata.h
|
420
433
|
- src/core/lib/compression/compression.c
|
421
434
|
- src/core/lib/compression/message_compress.c
|
@@ -442,12 +455,21 @@ files:
|
|
442
455
|
- src/core/lib/iomgr/error.c
|
443
456
|
- src/core/lib/iomgr/error.h
|
444
457
|
- src/core/lib/iomgr/error_internal.h
|
445
|
-
- src/core/lib/iomgr/
|
446
|
-
- src/core/lib/iomgr/
|
458
|
+
- src/core/lib/iomgr/ev_epoll1_linux.c
|
459
|
+
- src/core/lib/iomgr/ev_epoll1_linux.h
|
460
|
+
- src/core/lib/iomgr/ev_epoll_limited_pollers_linux.c
|
461
|
+
- src/core/lib/iomgr/ev_epoll_limited_pollers_linux.h
|
462
|
+
- src/core/lib/iomgr/ev_epoll_thread_pool_linux.c
|
463
|
+
- src/core/lib/iomgr/ev_epoll_thread_pool_linux.h
|
464
|
+
- src/core/lib/iomgr/ev_epollex_linux.c
|
465
|
+
- src/core/lib/iomgr/ev_epollex_linux.h
|
466
|
+
- src/core/lib/iomgr/ev_epollsig_linux.c
|
467
|
+
- src/core/lib/iomgr/ev_epollsig_linux.h
|
447
468
|
- src/core/lib/iomgr/ev_poll_posix.c
|
448
469
|
- src/core/lib/iomgr/ev_poll_posix.h
|
449
470
|
- src/core/lib/iomgr/ev_posix.c
|
450
471
|
- src/core/lib/iomgr/ev_posix.h
|
472
|
+
- src/core/lib/iomgr/ev_windows.c
|
451
473
|
- src/core/lib/iomgr/exec_ctx.c
|
452
474
|
- src/core/lib/iomgr/exec_ctx.h
|
453
475
|
- src/core/lib/iomgr/executor.c
|
@@ -461,6 +483,8 @@ files:
|
|
461
483
|
- src/core/lib/iomgr/iomgr_posix.h
|
462
484
|
- src/core/lib/iomgr/iomgr_uv.c
|
463
485
|
- src/core/lib/iomgr/iomgr_windows.c
|
486
|
+
- src/core/lib/iomgr/is_epollexclusive_available.c
|
487
|
+
- src/core/lib/iomgr/is_epollexclusive_available.h
|
464
488
|
- src/core/lib/iomgr/load_file.c
|
465
489
|
- src/core/lib/iomgr/load_file.h
|
466
490
|
- src/core/lib/iomgr/lockfree_event.c
|
@@ -503,6 +527,7 @@ files:
|
|
503
527
|
- src/core/lib/iomgr/socket_utils_windows.c
|
504
528
|
- src/core/lib/iomgr/socket_windows.c
|
505
529
|
- src/core/lib/iomgr/socket_windows.h
|
530
|
+
- src/core/lib/iomgr/sys_epoll_wrapper.h
|
506
531
|
- src/core/lib/iomgr/tcp_client.h
|
507
532
|
- src/core/lib/iomgr/tcp_client_posix.c
|
508
533
|
- src/core/lib/iomgr/tcp_client_posix.h
|
@@ -529,6 +554,8 @@ files:
|
|
529
554
|
- src/core/lib/iomgr/timer_generic.h
|
530
555
|
- src/core/lib/iomgr/timer_heap.c
|
531
556
|
- src/core/lib/iomgr/timer_heap.h
|
557
|
+
- src/core/lib/iomgr/timer_manager.c
|
558
|
+
- src/core/lib/iomgr/timer_manager.h
|
532
559
|
- src/core/lib/iomgr/timer_uv.c
|
533
560
|
- src/core/lib/iomgr/timer_uv.h
|
534
561
|
- src/core/lib/iomgr/udp_server.c
|
@@ -617,6 +644,9 @@ files:
|
|
617
644
|
- src/core/lib/support/arena.c
|
618
645
|
- src/core/lib/support/arena.h
|
619
646
|
- src/core/lib/support/atm.c
|
647
|
+
- src/core/lib/support/atomic.h
|
648
|
+
- src/core/lib/support/atomic_with_atm.h
|
649
|
+
- src/core/lib/support/atomic_with_std.h
|
620
650
|
- src/core/lib/support/avl.c
|
621
651
|
- src/core/lib/support/backoff.c
|
622
652
|
- src/core/lib/support/backoff.h
|
@@ -637,6 +667,7 @@ files:
|
|
637
667
|
- src/core/lib/support/log_linux.c
|
638
668
|
- src/core/lib/support/log_posix.c
|
639
669
|
- src/core/lib/support/log_windows.c
|
670
|
+
- src/core/lib/support/memory.h
|
640
671
|
- src/core/lib/support/mpscq.c
|
641
672
|
- src/core/lib/support/mpscq.h
|
642
673
|
- src/core/lib/support/murmur_hash.c
|
@@ -696,7 +727,7 @@ files:
|
|
696
727
|
- src/core/lib/surface/init.c
|
697
728
|
- src/core/lib/surface/init.h
|
698
729
|
- src/core/lib/surface/init_secure.c
|
699
|
-
- src/core/lib/surface/lame_client.
|
730
|
+
- src/core/lib/surface/lame_client.cc
|
700
731
|
- src/core/lib/surface/lame_client.h
|
701
732
|
- src/core/lib/surface/metadata_array.c
|
702
733
|
- src/core/lib/surface/server.c
|
@@ -739,6 +770,8 @@ files:
|
|
739
770
|
- src/core/tsi/ssl_types.h
|
740
771
|
- src/core/tsi/transport_security.c
|
741
772
|
- src/core/tsi/transport_security.h
|
773
|
+
- src/core/tsi/transport_security_adapter.c
|
774
|
+
- src/core/tsi/transport_security_adapter.h
|
742
775
|
- src/core/tsi/transport_security_interface.h
|
743
776
|
- src/ruby/bin/apis/google/protobuf/empty.rb
|
744
777
|
- src/ruby/bin/apis/pubsub_demo.rb
|
@@ -1370,27 +1403,27 @@ signing_key:
|
|
1370
1403
|
specification_version: 4
|
1371
1404
|
summary: GRPC system in Ruby
|
1372
1405
|
test_files:
|
1373
|
-
- src/ruby/spec/
|
1374
|
-
- src/ruby/spec/generic/rpc_server_pool_spec.rb
|
1375
|
-
- src/ruby/spec/generic/client_stub_spec.rb
|
1376
|
-
- src/ruby/spec/generic/rpc_desc_spec.rb
|
1377
|
-
- src/ruby/spec/generic/service_spec.rb
|
1378
|
-
- src/ruby/spec/generic/active_call_spec.rb
|
1379
|
-
- src/ruby/spec/pb/health/checker_spec.rb
|
1380
|
-
- src/ruby/spec/pb/duplicate/codegen_spec.rb
|
1406
|
+
- src/ruby/spec/server_spec.rb
|
1381
1407
|
- src/ruby/spec/channel_spec.rb
|
1382
|
-
- src/ruby/spec/client_server_spec.rb
|
1383
1408
|
- src/ruby/spec/testdata/README
|
1384
|
-
- src/ruby/spec/testdata/server1.key
|
1385
1409
|
- src/ruby/spec/testdata/ca.pem
|
1410
|
+
- src/ruby/spec/testdata/server1.key
|
1386
1411
|
- src/ruby/spec/testdata/server1.pem
|
1412
|
+
- src/ruby/spec/time_consts_spec.rb
|
1413
|
+
- src/ruby/spec/channel_connection_spec.rb
|
1387
1414
|
- src/ruby/spec/call_spec.rb
|
1415
|
+
- src/ruby/spec/generic/rpc_server_spec.rb
|
1416
|
+
- src/ruby/spec/generic/rpc_desc_spec.rb
|
1417
|
+
- src/ruby/spec/generic/active_call_spec.rb
|
1418
|
+
- src/ruby/spec/generic/client_stub_spec.rb
|
1419
|
+
- src/ruby/spec/generic/rpc_server_pool_spec.rb
|
1420
|
+
- src/ruby/spec/generic/service_spec.rb
|
1421
|
+
- src/ruby/spec/pb/duplicate/codegen_spec.rb
|
1422
|
+
- src/ruby/spec/pb/health/checker_spec.rb
|
1423
|
+
- src/ruby/spec/client_server_spec.rb
|
1424
|
+
- src/ruby/spec/compression_options_spec.rb
|
1388
1425
|
- src/ruby/spec/server_credentials_spec.rb
|
1389
1426
|
- src/ruby/spec/spec_helper.rb
|
1390
|
-
- src/ruby/spec/
|
1427
|
+
- src/ruby/spec/error_sanity_spec.rb
|
1391
1428
|
- src/ruby/spec/channel_credentials_spec.rb
|
1392
1429
|
- src/ruby/spec/call_credentials_spec.rb
|
1393
|
-
- src/ruby/spec/channel_connection_spec.rb
|
1394
|
-
- src/ruby/spec/server_spec.rb
|
1395
|
-
- src/ruby/spec/error_sanity_spec.rb
|
1396
|
-
- src/ruby/spec/compression_options_spec.rb
|