grpc 1.12.0 → 1.13.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.

Files changed (245) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +314 -23
  3. data/include/grpc/impl/codegen/fork.h +4 -4
  4. data/include/grpc/impl/codegen/grpc_types.h +1 -1
  5. data/include/grpc/impl/codegen/port_platform.h +3 -0
  6. data/src/boringssl/err_data.c +256 -246
  7. data/src/core/ext/filters/client_channel/channel_connectivity.cc +1 -1
  8. data/src/core/ext/filters/client_channel/client_channel.cc +367 -272
  9. data/src/core/ext/filters/client_channel/lb_policy.h +1 -3
  10. data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.cc +11 -9
  11. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +42 -32
  12. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.h +36 -0
  13. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.cc +36 -102
  14. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.h +37 -32
  15. data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc +22 -19
  16. data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h +1 -1
  17. data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +1 -1
  18. data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +1 -1
  19. data/src/core/ext/filters/client_channel/resolver.h +1 -3
  20. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc +3 -3
  21. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +2 -2
  22. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc +0 -1
  23. data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc +4 -4
  24. data/src/core/ext/filters/client_channel/subchannel.cc +3 -3
  25. data/src/core/ext/filters/http/client_authority_filter.cc +5 -4
  26. data/src/core/ext/filters/http/message_compress/message_compress_filter.cc +4 -4
  27. data/src/core/ext/filters/http/server/http_server_filter.cc +123 -131
  28. data/src/core/ext/transport/chttp2/server/chttp2_server.cc +1 -1
  29. data/src/core/ext/transport/chttp2/transport/bin_decoder.cc +9 -8
  30. data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +19 -19
  31. data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +10 -6
  32. data/src/core/ext/transport/chttp2/transport/hpack_encoder.h +4 -3
  33. data/src/core/ext/transport/chttp2/transport/parsing.cc +14 -12
  34. data/src/core/ext/transport/chttp2/transport/writing.cc +6 -6
  35. data/src/core/lib/channel/channel_stack.cc +0 -5
  36. data/src/core/lib/channel/channel_stack.h +1 -1
  37. data/src/core/lib/channel/channel_stack_builder.cc +0 -3
  38. data/src/core/lib/channel/channel_stack_builder.h +0 -2
  39. data/src/core/lib/channel/channel_trace.cc +3 -3
  40. data/src/core/lib/channel/channelz_registry.cc +77 -0
  41. data/src/core/lib/channel/channelz_registry.h +99 -0
  42. data/src/core/lib/channel/handshaker.cc +20 -1
  43. data/src/core/lib/debug/stats.h +7 -0
  44. data/src/core/lib/debug/stats_data.cc +5 -0
  45. data/src/core/lib/debug/stats_data.h +120 -0
  46. data/src/core/lib/debug/trace.h +11 -9
  47. data/src/core/lib/gprpp/fork.cc +260 -0
  48. data/src/core/lib/gprpp/fork.h +79 -0
  49. data/src/core/lib/gprpp/memory.h +12 -0
  50. data/src/core/lib/gprpp/orphanable.h +2 -6
  51. data/src/core/lib/gprpp/ref_counted.h +2 -6
  52. data/src/core/lib/gprpp/thd.h +0 -3
  53. data/src/core/lib/gprpp/thd_posix.cc +4 -53
  54. data/src/core/lib/gprpp/thd_windows.cc +0 -7
  55. data/src/core/lib/http/httpcli_security_connector.cc +1 -3
  56. data/src/core/lib/iomgr/combiner.cc +19 -2
  57. data/src/core/lib/iomgr/combiner.h +1 -1
  58. data/src/core/lib/iomgr/ev_epoll1_linux.cc +2 -2
  59. data/src/core/lib/iomgr/ev_epollex_linux.cc +59 -3
  60. data/src/core/lib/iomgr/ev_epollsig_linux.cc +1 -1
  61. data/src/core/lib/iomgr/ev_poll_posix.cc +2 -2
  62. data/src/core/lib/iomgr/ev_posix.cc +11 -4
  63. data/src/core/lib/iomgr/ev_posix.h +6 -0
  64. data/src/core/lib/iomgr/exec_ctx.cc +9 -9
  65. data/src/core/lib/iomgr/exec_ctx.h +39 -20
  66. data/src/core/lib/iomgr/fork_posix.cc +30 -18
  67. data/src/core/lib/iomgr/iomgr_posix.cc +2 -2
  68. data/src/core/lib/iomgr/polling_entity.cc +11 -2
  69. data/src/core/lib/iomgr/pollset_custom.cc +2 -2
  70. data/src/core/lib/iomgr/port.h +38 -1
  71. data/src/core/lib/iomgr/resolve_address.h +1 -1
  72. data/src/core/lib/iomgr/resolve_address_posix.cc +1 -1
  73. data/src/core/lib/iomgr/resource_quota.cc +1 -1
  74. data/src/core/lib/iomgr/sockaddr_posix.h +1 -1
  75. data/src/core/lib/iomgr/socket_factory_posix.cc +1 -1
  76. data/src/core/lib/iomgr/socket_utils_common_posix.cc +1 -1
  77. data/src/core/lib/iomgr/tcp_client_custom.cc +3 -3
  78. data/src/core/lib/iomgr/tcp_client_posix.cc +3 -2
  79. data/src/core/lib/iomgr/tcp_custom.cc +1 -1
  80. data/src/core/lib/iomgr/tcp_posix.cc +18 -10
  81. data/src/core/lib/iomgr/tcp_server_posix.cc +9 -8
  82. data/src/core/lib/iomgr/tcp_server_utils_posix.h +1 -1
  83. data/src/core/lib/iomgr/tcp_server_utils_posix_common.cc +16 -4
  84. data/src/core/lib/iomgr/timer.h +1 -1
  85. data/src/core/lib/iomgr/timer_generic.cc +113 -41
  86. data/src/core/lib/iomgr/timer_manager.cc +1 -1
  87. data/src/core/lib/security/credentials/credentials.h +1 -0
  88. data/src/core/lib/security/credentials/google_default/google_default_credentials.cc +88 -115
  89. data/src/core/lib/security/credentials/google_default/google_default_credentials.h +16 -0
  90. data/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc +10 -6
  91. data/src/core/lib/security/credentials/oauth2/oauth2_credentials.h +1 -1
  92. data/src/core/lib/security/security_connector/alts_security_connector.cc +2 -1
  93. data/src/core/lib/security/security_connector/security_connector.cc +7 -7
  94. data/src/core/lib/security/transport/security_handshaker.cc +1 -0
  95. data/src/core/lib/security/util/json_util.cc +4 -0
  96. data/src/core/lib/slice/slice_buffer.cc +15 -3
  97. data/src/core/lib/surface/call.cc +31 -17
  98. data/src/core/lib/surface/call.h +5 -0
  99. data/src/core/lib/surface/channel.cc +2 -5
  100. data/src/core/lib/surface/completion_queue.cc +1 -3
  101. data/src/core/lib/surface/completion_queue.h +0 -1
  102. data/src/core/lib/surface/init.cc +7 -8
  103. data/src/core/lib/surface/version.cc +2 -2
  104. data/src/core/lib/transport/byte_stream.cc +1 -1
  105. data/src/core/lib/transport/transport.cc +2 -1
  106. data/src/core/lib/transport/transport.h +4 -8
  107. data/src/core/lib/transport/transport_op_string.cc +1 -1
  108. data/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +19 -7
  109. data/src/core/tsi/alts/handshaker/alts_handshaker_client.h +10 -0
  110. data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc +28 -2
  111. data/src/core/tsi/alts/handshaker/alts_tsi_handshaker_private.h +3 -0
  112. data/src/core/tsi/fake_transport_security.cc +1 -0
  113. data/src/core/tsi/ssl_transport_security.cc +238 -110
  114. data/src/core/tsi/transport_security.cc +14 -0
  115. data/src/core/tsi/transport_security.h +2 -0
  116. data/src/core/tsi/transport_security_interface.h +11 -1
  117. data/src/ruby/bin/math_client.rb +17 -9
  118. data/src/ruby/lib/grpc/generic/rpc_server.rb +2 -1
  119. data/src/ruby/lib/grpc/version.rb +1 -1
  120. data/src/ruby/pb/grpc/health/v1/health_services_pb.rb +4 -1
  121. data/third_party/boringssl/crypto/asn1/a_int.c +33 -28
  122. data/third_party/boringssl/crypto/asn1/a_mbstr.c +24 -22
  123. data/third_party/boringssl/crypto/asn1/a_utf8.c +13 -11
  124. data/third_party/boringssl/crypto/asn1/asn1_locl.h +3 -0
  125. data/third_party/boringssl/crypto/bio/fd.c +1 -0
  126. data/third_party/boringssl/crypto/bio/file.c +2 -0
  127. data/third_party/boringssl/crypto/bn_extra/convert.c +6 -5
  128. data/third_party/boringssl/crypto/bytestring/ber.c +1 -4
  129. data/third_party/boringssl/crypto/bytestring/cbb.c +116 -16
  130. data/third_party/boringssl/crypto/bytestring/cbs.c +150 -20
  131. data/third_party/boringssl/crypto/cipher_extra/e_aesccm.c +171 -0
  132. data/third_party/boringssl/crypto/cipher_extra/e_rc2.c +2 -0
  133. data/third_party/boringssl/crypto/cipher_extra/e_tls.c +1 -2
  134. data/third_party/boringssl/crypto/cpu-aarch64-fuchsia.c +55 -0
  135. data/third_party/boringssl/crypto/cpu-aarch64-linux.c +2 -1
  136. data/third_party/boringssl/crypto/dsa/dsa.c +16 -54
  137. data/third_party/boringssl/crypto/fipsmodule/bcm.c +11 -542
  138. data/third_party/boringssl/crypto/fipsmodule/bn/add.c +33 -64
  139. data/third_party/boringssl/crypto/fipsmodule/bn/asm/x86_64-gcc.c +4 -3
  140. data/third_party/boringssl/crypto/fipsmodule/bn/bn.c +122 -70
  141. data/third_party/boringssl/crypto/fipsmodule/bn/bytes.c +32 -71
  142. data/third_party/boringssl/crypto/fipsmodule/bn/cmp.c +58 -112
  143. data/third_party/boringssl/crypto/fipsmodule/bn/div.c +198 -122
  144. data/third_party/boringssl/crypto/fipsmodule/bn/exponentiation.c +31 -65
  145. data/third_party/boringssl/crypto/fipsmodule/bn/generic.c +2 -1
  146. data/third_party/boringssl/crypto/fipsmodule/bn/internal.h +98 -15
  147. data/third_party/boringssl/crypto/fipsmodule/bn/jacobi.c +1 -1
  148. data/third_party/boringssl/crypto/fipsmodule/bn/montgomery.c +124 -81
  149. data/third_party/boringssl/crypto/fipsmodule/bn/montgomery_inv.c +8 -30
  150. data/third_party/boringssl/crypto/fipsmodule/bn/mul.c +303 -347
  151. data/third_party/boringssl/crypto/fipsmodule/bn/prime.c +2 -3
  152. data/third_party/boringssl/crypto/fipsmodule/bn/random.c +3 -4
  153. data/third_party/boringssl/crypto/fipsmodule/bn/rsaz_exp.c +199 -222
  154. data/third_party/boringssl/crypto/fipsmodule/bn/rsaz_exp.h +27 -47
  155. data/third_party/boringssl/crypto/fipsmodule/bn/shift.c +45 -28
  156. data/third_party/boringssl/crypto/fipsmodule/bn/sqrt.c +1 -1
  157. data/third_party/boringssl/crypto/fipsmodule/cipher/e_aes.c +10 -10
  158. data/third_party/boringssl/crypto/fipsmodule/des/internal.h +2 -0
  159. data/third_party/boringssl/crypto/fipsmodule/ec/ec.c +78 -47
  160. data/third_party/boringssl/crypto/fipsmodule/ec/ec_key.c +35 -54
  161. data/third_party/boringssl/crypto/fipsmodule/ec/ec_montgomery.c +3 -10
  162. data/third_party/boringssl/crypto/fipsmodule/ec/internal.h +36 -22
  163. data/third_party/boringssl/crypto/fipsmodule/ec/oct.c +59 -90
  164. data/third_party/boringssl/crypto/fipsmodule/ec/p224-64.c +29 -48
  165. data/third_party/boringssl/crypto/fipsmodule/ec/p256-x86_64.c +17 -26
  166. data/third_party/boringssl/crypto/fipsmodule/ec/p256-x86_64.h +15 -11
  167. data/third_party/boringssl/crypto/fipsmodule/ec/simple.c +45 -51
  168. data/third_party/boringssl/crypto/fipsmodule/ec/{util-64.c → util.c} +0 -5
  169. data/third_party/boringssl/crypto/fipsmodule/ec/wnaf.c +144 -264
  170. data/third_party/boringssl/crypto/fipsmodule/ecdsa/ecdsa.c +78 -56
  171. data/third_party/boringssl/crypto/fipsmodule/modes/ccm.c +256 -0
  172. data/third_party/boringssl/crypto/fipsmodule/modes/internal.h +36 -32
  173. data/third_party/boringssl/crypto/fipsmodule/rand/ctrdrbg.c +9 -7
  174. data/third_party/boringssl/crypto/fipsmodule/rsa/rsa.c +16 -10
  175. data/third_party/boringssl/crypto/fipsmodule/rsa/rsa_impl.c +255 -102
  176. data/third_party/boringssl/crypto/fipsmodule/self_check/self_check.c +581 -0
  177. data/third_party/boringssl/crypto/fipsmodule/tls/internal.h +39 -0
  178. data/third_party/boringssl/crypto/fipsmodule/tls/kdf.c +165 -0
  179. data/third_party/boringssl/crypto/internal.h +65 -2
  180. data/third_party/boringssl/crypto/mem.c +0 -2
  181. data/third_party/boringssl/crypto/obj/obj.c +6 -73
  182. data/third_party/boringssl/crypto/thread_pthread.c +35 -5
  183. data/third_party/boringssl/crypto/x509/a_strex.c +11 -11
  184. data/third_party/boringssl/crypto/x509/x_name.c +13 -0
  185. data/third_party/boringssl/include/openssl/aead.h +4 -0
  186. data/third_party/boringssl/include/openssl/asn1.h +1 -3
  187. data/third_party/boringssl/include/openssl/base.h +1 -14
  188. data/third_party/boringssl/include/openssl/bio.h +1 -1
  189. data/third_party/boringssl/include/openssl/bn.h +49 -15
  190. data/third_party/boringssl/include/openssl/bytestring.h +49 -24
  191. data/third_party/boringssl/include/openssl/crypto.h +4 -0
  192. data/third_party/boringssl/include/openssl/ec_key.h +7 -3
  193. data/third_party/boringssl/include/openssl/err.h +9 -9
  194. data/third_party/boringssl/include/openssl/evp.h +1 -1
  195. data/third_party/boringssl/include/openssl/rsa.h +34 -10
  196. data/third_party/boringssl/include/openssl/ssl.h +160 -17
  197. data/third_party/boringssl/include/openssl/stack.h +1 -1
  198. data/third_party/boringssl/include/openssl/tls1.h +10 -2
  199. data/third_party/boringssl/include/openssl/x509.h +3 -0
  200. data/third_party/boringssl/ssl/d1_both.cc +16 -2
  201. data/third_party/boringssl/ssl/dtls_method.cc +1 -1
  202. data/third_party/boringssl/ssl/handoff.cc +285 -0
  203. data/third_party/boringssl/ssl/handshake.cc +26 -12
  204. data/third_party/boringssl/ssl/handshake_client.cc +65 -31
  205. data/third_party/boringssl/ssl/handshake_server.cc +14 -2
  206. data/third_party/boringssl/ssl/internal.h +132 -79
  207. data/third_party/boringssl/ssl/s3_both.cc +2 -2
  208. data/third_party/boringssl/ssl/s3_lib.cc +3 -1
  209. data/third_party/boringssl/ssl/s3_pkt.cc +0 -18
  210. data/third_party/boringssl/ssl/ssl_aead_ctx.cc +1 -4
  211. data/third_party/boringssl/ssl/ssl_asn1.cc +47 -43
  212. data/third_party/boringssl/ssl/ssl_cipher.cc +8 -8
  213. data/third_party/boringssl/ssl/ssl_key_share.cc +3 -1
  214. data/third_party/boringssl/ssl/ssl_lib.cc +83 -14
  215. data/third_party/boringssl/ssl/ssl_privkey.cc +6 -0
  216. data/third_party/boringssl/ssl/ssl_stat.cc +6 -6
  217. data/third_party/boringssl/ssl/ssl_versions.cc +12 -85
  218. data/third_party/boringssl/ssl/ssl_x509.cc +59 -61
  219. data/third_party/boringssl/ssl/t1_enc.cc +73 -124
  220. data/third_party/boringssl/ssl/t1_lib.cc +367 -41
  221. data/third_party/boringssl/ssl/tls13_both.cc +8 -0
  222. data/third_party/boringssl/ssl/tls13_client.cc +98 -184
  223. data/third_party/boringssl/ssl/tls13_enc.cc +88 -158
  224. data/third_party/boringssl/ssl/tls13_server.cc +91 -137
  225. data/third_party/boringssl/ssl/tls_method.cc +0 -17
  226. data/third_party/boringssl/ssl/tls_record.cc +1 -10
  227. data/third_party/boringssl/third_party/fiat/curve25519.c +921 -2753
  228. data/third_party/boringssl/third_party/fiat/curve25519_tables.h +7880 -0
  229. data/third_party/boringssl/third_party/fiat/internal.h +32 -20
  230. data/third_party/boringssl/third_party/fiat/p256.c +1824 -0
  231. metadata +64 -64
  232. data/src/core/lib/channel/channel_trace_registry.cc +0 -80
  233. data/src/core/lib/channel/channel_trace_registry.h +0 -43
  234. data/src/core/lib/gpr/fork.cc +0 -78
  235. data/src/core/lib/gpr/fork.h +0 -35
  236. data/src/core/tsi/transport_security_adapter.cc +0 -235
  237. data/src/core/tsi/transport_security_adapter.h +0 -41
  238. data/src/ruby/bin/apis/google/protobuf/empty.rb +0 -29
  239. data/src/ruby/bin/apis/pubsub_demo.rb +0 -241
  240. data/src/ruby/bin/apis/tech/pubsub/proto/pubsub.rb +0 -159
  241. data/src/ruby/bin/apis/tech/pubsub/proto/pubsub_services.rb +0 -88
  242. data/src/ruby/pb/test/client.rb +0 -764
  243. data/src/ruby/pb/test/server.rb +0 -252
  244. data/third_party/boringssl/crypto/curve25519/x25519-x86_64.c +0 -247
  245. data/third_party/boringssl/crypto/fipsmodule/ec/p256-64.c +0 -1674
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.12.0
4
+ version: 1.13.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: 2018-05-15 00:00:00.000000000 Z
11
+ date: 2018-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -24,26 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.1'
27
- - !ruby/object:Gem::Dependency
28
- name: googleauth
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 0.5.1
34
- - - "<"
35
- - !ruby/object:Gem::Version
36
- version: '0.7'
37
- type: :runtime
38
- prerelease: false
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: 0.5.1
44
- - - "<"
45
- - !ruby/object:Gem::Version
46
- version: '0.7'
47
27
  - !ruby/object:Gem::Dependency
48
28
  name: googleapis-common-protos-types
49
29
  requirement: !ruby/object:Gem::Requirement
@@ -198,6 +178,26 @@ dependencies:
198
178
  - - "~>"
199
179
  - !ruby/object:Gem::Version
200
180
  version: 0.7.0
181
+ - !ruby/object:Gem::Dependency
182
+ name: googleauth
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: 0.5.1
188
+ - - "<"
189
+ - !ruby/object:Gem::Version
190
+ version: '0.7'
191
+ type: :development
192
+ prerelease: false
193
+ version_requirements: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - ">="
196
+ - !ruby/object:Gem::Version
197
+ version: 0.5.1
198
+ - - "<"
199
+ - !ruby/object:Gem::Version
200
+ version: '0.7'
201
201
  description: Send RPCs from Ruby using GRPC
202
202
  email: temiola@google.com
203
203
  executables: []
@@ -283,6 +283,7 @@ files:
283
283
  - src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.cc
284
284
  - src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.h
285
285
  - src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc
286
+ - src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.h
286
287
  - src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel.h
287
288
  - src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel_secure.cc
288
289
  - src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.cc
@@ -423,8 +424,8 @@ files:
423
424
  - src/core/lib/channel/channel_stack_builder.h
424
425
  - src/core/lib/channel/channel_trace.cc
425
426
  - src/core/lib/channel/channel_trace.h
426
- - src/core/lib/channel/channel_trace_registry.cc
427
- - src/core/lib/channel/channel_trace_registry.h
427
+ - src/core/lib/channel/channelz_registry.cc
428
+ - src/core/lib/channel/channelz_registry.h
428
429
  - src/core/lib/channel/connected_channel.cc
429
430
  - src/core/lib/channel/connected_channel.h
430
431
  - src/core/lib/channel/context.h
@@ -466,8 +467,6 @@ files:
466
467
  - src/core/lib/gpr/env_linux.cc
467
468
  - src/core/lib/gpr/env_posix.cc
468
469
  - src/core/lib/gpr/env_windows.cc
469
- - src/core/lib/gpr/fork.cc
470
- - src/core/lib/gpr/fork.h
471
470
  - src/core/lib/gpr/host_port.cc
472
471
  - src/core/lib/gpr/host_port.h
473
472
  - src/core/lib/gpr/log.cc
@@ -510,6 +509,8 @@ files:
510
509
  - src/core/lib/gprpp/atomic_with_atm.h
511
510
  - src/core/lib/gprpp/atomic_with_std.h
512
511
  - src/core/lib/gprpp/debug_location.h
512
+ - src/core/lib/gprpp/fork.cc
513
+ - src/core/lib/gprpp/fork.h
513
514
  - src/core/lib/gprpp/inlined_vector.h
514
515
  - src/core/lib/gprpp/manual_constructor.h
515
516
  - src/core/lib/gprpp/memory.h
@@ -875,15 +876,9 @@ files:
875
876
  - src/core/tsi/ssl_types.h
876
877
  - src/core/tsi/transport_security.cc
877
878
  - src/core/tsi/transport_security.h
878
- - src/core/tsi/transport_security_adapter.cc
879
- - src/core/tsi/transport_security_adapter.h
880
879
  - src/core/tsi/transport_security_grpc.cc
881
880
  - src/core/tsi/transport_security_grpc.h
882
881
  - src/core/tsi/transport_security_interface.h
883
- - src/ruby/bin/apis/google/protobuf/empty.rb
884
- - src/ruby/bin/apis/pubsub_demo.rb
885
- - src/ruby/bin/apis/tech/pubsub/proto/pubsub.rb
886
- - src/ruby/bin/apis/tech/pubsub/proto/pubsub_services.rb
887
882
  - src/ruby/bin/math_client.rb
888
883
  - src/ruby/bin/math_pb.rb
889
884
  - src/ruby/bin/math_server.rb
@@ -947,8 +942,6 @@ files:
947
942
  - src/ruby/pb/src/proto/grpc/testing/messages_pb.rb
948
943
  - src/ruby/pb/src/proto/grpc/testing/test_pb.rb
949
944
  - src/ruby/pb/src/proto/grpc/testing/test_services_pb.rb
950
- - src/ruby/pb/test/client.rb
951
- - src/ruby/pb/test/server.rb
952
945
  - src/ruby/spec/call_credentials_spec.rb
953
946
  - src/ruby/spec/call_spec.rb
954
947
  - src/ruby/spec/channel_connection_spec.rb
@@ -1044,6 +1037,7 @@ files:
1044
1037
  - third_party/boringssl/crypto/chacha/chacha.c
1045
1038
  - third_party/boringssl/crypto/cipher_extra/cipher_extra.c
1046
1039
  - third_party/boringssl/crypto/cipher_extra/derive_key.c
1040
+ - third_party/boringssl/crypto/cipher_extra/e_aesccm.c
1047
1041
  - third_party/boringssl/crypto/cipher_extra/e_aesctrhmac.c
1048
1042
  - third_party/boringssl/crypto/cipher_extra/e_aesgcmsiv.c
1049
1043
  - third_party/boringssl/crypto/cipher_extra/e_chacha20poly1305.c
@@ -1058,6 +1052,7 @@ files:
1058
1052
  - third_party/boringssl/crypto/conf/conf.c
1059
1053
  - third_party/boringssl/crypto/conf/conf_def.h
1060
1054
  - third_party/boringssl/crypto/conf/internal.h
1055
+ - third_party/boringssl/crypto/cpu-aarch64-fuchsia.c
1061
1056
  - third_party/boringssl/crypto/cpu-aarch64-linux.c
1062
1057
  - third_party/boringssl/crypto/cpu-arm-linux.c
1063
1058
  - third_party/boringssl/crypto/cpu-arm.c
@@ -1065,7 +1060,6 @@ files:
1065
1060
  - third_party/boringssl/crypto/cpu-ppc64le.c
1066
1061
  - third_party/boringssl/crypto/crypto.c
1067
1062
  - third_party/boringssl/crypto/curve25519/spake25519.c
1068
- - third_party/boringssl/crypto/curve25519/x25519-x86_64.c
1069
1063
  - third_party/boringssl/crypto/dh/check.c
1070
1064
  - third_party/boringssl/crypto/dh/dh.c
1071
1065
  - third_party/boringssl/crypto/dh/dh_asn1.c
@@ -1140,12 +1134,11 @@ files:
1140
1134
  - third_party/boringssl/crypto/fipsmodule/ec/internal.h
1141
1135
  - third_party/boringssl/crypto/fipsmodule/ec/oct.c
1142
1136
  - third_party/boringssl/crypto/fipsmodule/ec/p224-64.c
1143
- - third_party/boringssl/crypto/fipsmodule/ec/p256-64.c
1144
1137
  - third_party/boringssl/crypto/fipsmodule/ec/p256-x86_64-table.h
1145
1138
  - third_party/boringssl/crypto/fipsmodule/ec/p256-x86_64.c
1146
1139
  - third_party/boringssl/crypto/fipsmodule/ec/p256-x86_64.h
1147
1140
  - third_party/boringssl/crypto/fipsmodule/ec/simple.c
1148
- - third_party/boringssl/crypto/fipsmodule/ec/util-64.c
1141
+ - third_party/boringssl/crypto/fipsmodule/ec/util.c
1149
1142
  - third_party/boringssl/crypto/fipsmodule/ec/wnaf.c
1150
1143
  - third_party/boringssl/crypto/fipsmodule/ecdsa/ecdsa.c
1151
1144
  - third_party/boringssl/crypto/fipsmodule/hmac/hmac.c
@@ -1153,6 +1146,7 @@ files:
1153
1146
  - third_party/boringssl/crypto/fipsmodule/md4/md4.c
1154
1147
  - third_party/boringssl/crypto/fipsmodule/md5/md5.c
1155
1148
  - third_party/boringssl/crypto/fipsmodule/modes/cbc.c
1149
+ - third_party/boringssl/crypto/fipsmodule/modes/ccm.c
1156
1150
  - third_party/boringssl/crypto/fipsmodule/modes/cfb.c
1157
1151
  - third_party/boringssl/crypto/fipsmodule/modes/ctr.c
1158
1152
  - third_party/boringssl/crypto/fipsmodule/modes/gcm.c
@@ -1168,10 +1162,13 @@ files:
1168
1162
  - third_party/boringssl/crypto/fipsmodule/rsa/padding.c
1169
1163
  - third_party/boringssl/crypto/fipsmodule/rsa/rsa.c
1170
1164
  - third_party/boringssl/crypto/fipsmodule/rsa/rsa_impl.c
1165
+ - third_party/boringssl/crypto/fipsmodule/self_check/self_check.c
1171
1166
  - third_party/boringssl/crypto/fipsmodule/sha/sha1-altivec.c
1172
1167
  - third_party/boringssl/crypto/fipsmodule/sha/sha1.c
1173
1168
  - third_party/boringssl/crypto/fipsmodule/sha/sha256.c
1174
1169
  - third_party/boringssl/crypto/fipsmodule/sha/sha512.c
1170
+ - third_party/boringssl/crypto/fipsmodule/tls/internal.h
1171
+ - third_party/boringssl/crypto/fipsmodule/tls/kdf.c
1175
1172
  - third_party/boringssl/crypto/hkdf/hkdf.c
1176
1173
  - third_party/boringssl/crypto/internal.h
1177
1174
  - third_party/boringssl/crypto/lhash/lhash.c
@@ -1381,6 +1378,7 @@ files:
1381
1378
  - third_party/boringssl/ssl/d1_srtp.cc
1382
1379
  - third_party/boringssl/ssl/dtls_method.cc
1383
1380
  - third_party/boringssl/ssl/dtls_record.cc
1381
+ - third_party/boringssl/ssl/handoff.cc
1384
1382
  - third_party/boringssl/ssl/handshake.cc
1385
1383
  - third_party/boringssl/ssl/handshake_client.cc
1386
1384
  - third_party/boringssl/ssl/handshake_server.cc
@@ -1411,7 +1409,9 @@ files:
1411
1409
  - third_party/boringssl/ssl/tls_method.cc
1412
1410
  - third_party/boringssl/ssl/tls_record.cc
1413
1411
  - third_party/boringssl/third_party/fiat/curve25519.c
1412
+ - third_party/boringssl/third_party/fiat/curve25519_tables.h
1414
1413
  - third_party/boringssl/third_party/fiat/internal.h
1414
+ - third_party/boringssl/third_party/fiat/p256.c
1415
1415
  - third_party/cares/ares_build.h
1416
1416
  - third_party/cares/cares/ares.h
1417
1417
  - third_party/cares/cares/ares__close_sockets.c
@@ -1537,49 +1537,49 @@ required_ruby_version: !ruby/object:Gem::Requirement
1537
1537
  version: 2.0.0
1538
1538
  required_rubygems_version: !ruby/object:Gem::Requirement
1539
1539
  requirements:
1540
- - - ">="
1540
+ - - ">"
1541
1541
  - !ruby/object:Gem::Version
1542
- version: '0'
1542
+ version: 1.3.1
1543
1543
  requirements: []
1544
1544
  rubyforge_project:
1545
- rubygems_version: 2.7.6
1545
+ rubygems_version: 2.7.7
1546
1546
  signing_key:
1547
1547
  specification_version: 4
1548
1548
  summary: GRPC system in Ruby
1549
1549
  test_files:
1550
- - src/ruby/spec/spec_helper.rb
1551
- - src/ruby/spec/channel_connection_spec.rb
1552
- - src/ruby/spec/server_spec.rb
1553
- - src/ruby/spec/support/services.rb
1550
+ - src/ruby/spec/client_server_spec.rb
1551
+ - src/ruby/spec/error_sanity_spec.rb
1552
+ - src/ruby/spec/call_spec.rb
1554
1553
  - src/ruby/spec/support/helpers.rb
1555
- - src/ruby/spec/channel_spec.rb
1554
+ - src/ruby/spec/support/services.rb
1556
1555
  - src/ruby/spec/server_credentials_spec.rb
1557
- - src/ruby/spec/generic/rpc_server_pool_spec.rb
1556
+ - src/ruby/spec/compression_options_spec.rb
1557
+ - src/ruby/spec/channel_connection_spec.rb
1558
+ - src/ruby/spec/call_credentials_spec.rb
1559
+ - src/ruby/spec/channel_credentials_spec.rb
1560
+ - src/ruby/spec/google_rpc_status_utils_spec.rb
1558
1561
  - src/ruby/spec/generic/rpc_desc_spec.rb
1559
- - src/ruby/spec/generic/active_call_spec.rb
1560
- - src/ruby/spec/generic/server_interceptors_spec.rb
1561
- - src/ruby/spec/generic/service_spec.rb
1562
1562
  - src/ruby/spec/generic/rpc_server_spec.rb
1563
+ - src/ruby/spec/generic/interceptor_registry_spec.rb
1564
+ - src/ruby/spec/generic/rpc_server_pool_spec.rb
1563
1565
  - src/ruby/spec/generic/client_stub_spec.rb
1564
1566
  - src/ruby/spec/generic/client_interceptors_spec.rb
1565
- - src/ruby/spec/generic/interceptor_registry_spec.rb
1566
- - src/ruby/spec/client_server_spec.rb
1567
- - src/ruby/spec/time_consts_spec.rb
1568
- - src/ruby/spec/google_rpc_status_utils_spec.rb
1569
- - src/ruby/spec/compression_options_spec.rb
1570
- - src/ruby/spec/error_sanity_spec.rb
1571
- - src/ruby/spec/call_credentials_spec.rb
1572
- - src/ruby/spec/channel_credentials_spec.rb
1573
- - src/ruby/spec/pb/health/checker_spec.rb
1574
- - src/ruby/spec/pb/package_with_underscore/service.proto
1575
- - src/ruby/spec/pb/package_with_underscore/data.proto
1576
- - src/ruby/spec/pb/package_with_underscore/checker_spec.rb
1577
- - src/ruby/spec/pb/duplicate/codegen_spec.rb
1567
+ - src/ruby/spec/generic/server_interceptors_spec.rb
1568
+ - src/ruby/spec/generic/service_spec.rb
1569
+ - src/ruby/spec/generic/active_call_spec.rb
1578
1570
  - src/ruby/spec/testdata/client.pem
1579
1571
  - src/ruby/spec/testdata/ca.pem
1580
- - src/ruby/spec/testdata/server1.key
1581
1572
  - src/ruby/spec/testdata/client.key
1582
1573
  - src/ruby/spec/testdata/server1.pem
1574
+ - src/ruby/spec/testdata/server1.key
1583
1575
  - src/ruby/spec/testdata/README
1584
- - src/ruby/spec/call_spec.rb
1585
1576
  - src/ruby/spec/client_auth_spec.rb
1577
+ - src/ruby/spec/pb/package_with_underscore/checker_spec.rb
1578
+ - src/ruby/spec/pb/package_with_underscore/service.proto
1579
+ - src/ruby/spec/pb/package_with_underscore/data.proto
1580
+ - src/ruby/spec/pb/health/checker_spec.rb
1581
+ - src/ruby/spec/pb/duplicate/codegen_spec.rb
1582
+ - src/ruby/spec/time_consts_spec.rb
1583
+ - src/ruby/spec/server_spec.rb
1584
+ - src/ruby/spec/spec_helper.rb
1585
+ - src/ruby/spec/channel_spec.rb
@@ -1,80 +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/impl/codegen/port_platform.h>
20
-
21
- #include "src/core/lib/avl/avl.h"
22
- #include "src/core/lib/channel/channel_trace.h"
23
- #include "src/core/lib/channel/channel_trace_registry.h"
24
- #include "src/core/lib/gpr/useful.h"
25
-
26
- #include <grpc/support/alloc.h>
27
- #include <grpc/support/log.h>
28
-
29
- // file global lock and avl.
30
- static gpr_mu g_mu;
31
- static grpc_avl g_avl;
32
- static gpr_atm g_uuid = 0;
33
-
34
- // avl vtable for uuid (intptr_t) -> ChannelTrace
35
- // this table is only looking, it does not own anything.
36
- static void destroy_intptr(void* not_used, void* user_data) {}
37
- static void* copy_intptr(void* key, void* user_data) { return key; }
38
- static long compare_intptr(void* key1, void* key2, void* user_data) {
39
- return GPR_ICMP(key1, key2);
40
- }
41
-
42
- static void destroy_channel_trace(void* trace, void* user_data) {}
43
- static void* copy_channel_trace(void* trace, void* user_data) { return trace; }
44
- static const grpc_avl_vtable avl_vtable = {
45
- destroy_intptr, copy_intptr, compare_intptr, destroy_channel_trace,
46
- copy_channel_trace};
47
-
48
- void grpc_channel_trace_registry_init() {
49
- gpr_mu_init(&g_mu);
50
- g_avl = grpc_avl_create(&avl_vtable);
51
- }
52
-
53
- void grpc_channel_trace_registry_shutdown() {
54
- grpc_avl_unref(g_avl, nullptr);
55
- gpr_mu_destroy(&g_mu);
56
- }
57
-
58
- intptr_t grpc_channel_trace_registry_register_channel_trace(
59
- grpc_core::ChannelTrace* channel_trace) {
60
- intptr_t prior = gpr_atm_no_barrier_fetch_add(&g_uuid, 1);
61
- gpr_mu_lock(&g_mu);
62
- g_avl = grpc_avl_add(g_avl, (void*)prior, channel_trace, nullptr);
63
- gpr_mu_unlock(&g_mu);
64
- return prior;
65
- }
66
-
67
- void grpc_channel_trace_registry_unregister_channel_trace(intptr_t uuid) {
68
- gpr_mu_lock(&g_mu);
69
- g_avl = grpc_avl_remove(g_avl, (void*)uuid, nullptr);
70
- gpr_mu_unlock(&g_mu);
71
- }
72
-
73
- grpc_core::ChannelTrace* grpc_channel_trace_registry_get_channel_trace(
74
- intptr_t uuid) {
75
- gpr_mu_lock(&g_mu);
76
- grpc_core::ChannelTrace* ret = static_cast<grpc_core::ChannelTrace*>(
77
- grpc_avl_get(g_avl, (void*)uuid, nullptr));
78
- gpr_mu_unlock(&g_mu);
79
- return ret;
80
- }
@@ -1,43 +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
- #ifndef GRPC_CORE_LIB_CHANNEL_CHANNEL_TRACE_REGISTRY_H
20
- #define GRPC_CORE_LIB_CHANNEL_CHANNEL_TRACE_REGISTRY_H
21
-
22
- #include <grpc/impl/codegen/port_platform.h>
23
-
24
- #include "src/core/lib/channel/channel_trace.h"
25
-
26
- #include <stdint.h>
27
-
28
- // TODO(ncteisen): convert this file to C++
29
-
30
- void grpc_channel_trace_registry_init();
31
- void grpc_channel_trace_registry_shutdown();
32
-
33
- // globally registers a ChannelTrace. Returns its unique uuid
34
- intptr_t grpc_channel_trace_registry_register_channel_trace(
35
- grpc_core::ChannelTrace* channel_trace);
36
- // globally unregisters the ChannelTrace that is associated to uuid.
37
- void grpc_channel_trace_registry_unregister_channel_trace(intptr_t uuid);
38
- // if object with uuid has previously been registered, returns the ChannelTrace
39
- // associated with that uuid. Else returns nullptr.
40
- grpc_core::ChannelTrace* grpc_channel_trace_registry_get_channel_trace(
41
- intptr_t uuid);
42
-
43
- #endif /* GRPC_CORE_LIB_CHANNEL_CHANNEL_TRACE_REGISTRY_H */
@@ -1,78 +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/lib/gpr/fork.h"
22
-
23
- #include <string.h>
24
-
25
- #include <grpc/support/alloc.h>
26
-
27
- #include "src/core/lib/gpr/env.h"
28
- #include "src/core/lib/gpr/useful.h"
29
-
30
- /*
31
- * NOTE: FORKING IS NOT GENERALLY SUPPORTED, THIS IS ONLY INTENDED TO WORK
32
- * AROUND VERY SPECIFIC USE CASES.
33
- */
34
-
35
- static int override_fork_support_enabled = -1;
36
- static int fork_support_enabled;
37
-
38
- void grpc_fork_support_init() {
39
- #ifdef GRPC_ENABLE_FORK_SUPPORT
40
- fork_support_enabled = 1;
41
- #else
42
- fork_support_enabled = 0;
43
- #endif
44
- bool env_var_set = false;
45
- char* env = gpr_getenv("GRPC_ENABLE_FORK_SUPPORT");
46
- if (env != nullptr) {
47
- static const char* truthy[] = {"yes", "Yes", "YES", "true",
48
- "True", "TRUE", "1"};
49
- static const char* falsey[] = {"no", "No", "NO", "false",
50
- "False", "FALSE", "0"};
51
- for (size_t i = 0; i < GPR_ARRAY_SIZE(truthy); i++) {
52
- if (0 == strcmp(env, truthy[i])) {
53
- fork_support_enabled = 1;
54
- env_var_set = true;
55
- break;
56
- }
57
- }
58
- if (!env_var_set) {
59
- for (size_t i = 0; i < GPR_ARRAY_SIZE(falsey); i++) {
60
- if (0 == strcmp(env, falsey[i])) {
61
- fork_support_enabled = 0;
62
- env_var_set = true;
63
- break;
64
- }
65
- }
66
- }
67
- gpr_free(env);
68
- }
69
- if (override_fork_support_enabled != -1) {
70
- fork_support_enabled = override_fork_support_enabled;
71
- }
72
- }
73
-
74
- int grpc_fork_support_enabled() { return fork_support_enabled; }
75
-
76
- void grpc_enable_fork_support(int enable) {
77
- override_fork_support_enabled = enable;
78
- }