grpc 0.14.1 → 0.15.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.

Files changed (277) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +1398 -817
  3. data/include/grpc/compression.h +2 -1
  4. data/include/grpc/grpc.h +10 -1
  5. data/include/grpc/grpc_cronet.h +51 -0
  6. data/include/grpc/grpc_posix.h +70 -0
  7. data/include/grpc/impl/codegen/atm.h +2 -2
  8. data/include/grpc/impl/codegen/{atm_win32.h → atm_windows.h} +3 -3
  9. data/include/grpc/impl/codegen/compression_types.h +39 -5
  10. data/include/grpc/impl/codegen/connectivity_state.h +1 -1
  11. data/include/grpc/impl/codegen/grpc_types.h +10 -0
  12. data/include/grpc/impl/codegen/log.h +2 -1
  13. data/include/grpc/impl/codegen/port_platform.h +30 -12
  14. data/include/grpc/impl/codegen/slice_buffer.h +2 -3
  15. data/include/grpc/impl/codegen/sync.h +2 -2
  16. data/include/grpc/impl/codegen/{sync_win32.h → sync_windows.h} +3 -3
  17. data/include/grpc/support/{sync_win32.h → atm_windows.h} +4 -4
  18. data/include/grpc/support/avl.h +5 -0
  19. data/include/grpc/support/{log_win32.h → log_windows.h} +3 -3
  20. data/include/grpc/support/string_util.h +2 -1
  21. data/include/grpc/support/{atm_win32.h → sync_windows.h} +4 -4
  22. data/src/core/ext/census/gen/census.pb.c +179 -0
  23. data/src/core/ext/census/gen/census.pb.h +294 -0
  24. data/src/core/ext/census/grpc_filter.c +11 -7
  25. data/src/core/ext/client_config/channel_connectivity.c +28 -14
  26. data/src/core/ext/client_config/client_channel.c +77 -53
  27. data/src/core/ext/client_config/connector.h +1 -1
  28. data/src/core/ext/client_config/lb_policy.c +9 -6
  29. data/src/core/ext/client_config/lb_policy.h +9 -5
  30. data/src/core/ext/client_config/subchannel.c +58 -39
  31. data/src/core/ext/client_config/subchannel.h +3 -2
  32. data/src/core/ext/client_config/subchannel_call_holder.c +34 -19
  33. data/src/core/ext/client_config/subchannel_call_holder.h +2 -1
  34. data/src/core/ext/client_config/subchannel_index.c +20 -9
  35. data/src/core/ext/lb_policy/grpclb/load_balancer_api.c +7 -7
  36. data/src/core/ext/lb_policy/grpclb/load_balancer_api.h +5 -5
  37. data/src/core/ext/lb_policy/grpclb/proto/grpc/lb/{v0 → v1}/load_balancer.pb.c +29 -30
  38. data/src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.h +178 -0
  39. data/src/core/ext/lb_policy/pick_first/pick_first.c +65 -45
  40. data/src/core/ext/lb_policy/round_robin/round_robin.c +84 -43
  41. data/src/core/ext/load_reporting/load_reporting.c +133 -0
  42. data/src/core/ext/load_reporting/load_reporting.h +75 -0
  43. data/src/core/ext/load_reporting/load_reporting_filter.c +151 -0
  44. data/src/core/ext/load_reporting/load_reporting_filter.h +41 -0
  45. data/src/core/ext/resolver/dns/native/dns_resolver.c +22 -8
  46. data/src/core/ext/resolver/sockaddr/sockaddr_resolver.c +2 -2
  47. data/src/core/ext/transport/chttp2/client/insecure/channel_create.c +4 -4
  48. data/src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c +95 -0
  49. data/src/core/ext/transport/chttp2/client/secure/secure_channel_create.c +14 -18
  50. data/src/core/ext/transport/chttp2/server/insecure/server_chttp2.c +49 -24
  51. data/src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c +82 -0
  52. data/src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c +104 -60
  53. data/src/core/ext/transport/chttp2/transport/bin_decoder.c +232 -0
  54. data/src/{ruby/ext/grpc/rb_signal.c → core/ext/transport/chttp2/transport/bin_decoder.h} +27 -31
  55. data/src/core/ext/transport/chttp2/transport/chttp2_transport.c +481 -260
  56. data/src/core/ext/transport/chttp2/transport/frame.h +1 -7
  57. data/src/core/ext/transport/chttp2/transport/frame_data.c +44 -27
  58. data/src/core/ext/transport/chttp2/transport/frame_data.h +6 -5
  59. data/src/core/ext/transport/chttp2/transport/frame_goaway.c +23 -17
  60. data/src/core/ext/transport/chttp2/transport/frame_goaway.h +2 -2
  61. data/src/core/ext/transport/chttp2/transport/frame_ping.c +12 -7
  62. data/src/core/ext/transport/chttp2/transport/frame_ping.h +3 -3
  63. data/src/core/ext/transport/chttp2/transport/frame_rst_stream.c +25 -12
  64. data/src/core/ext/transport/chttp2/transport/frame_rst_stream.h +2 -2
  65. data/src/core/ext/transport/chttp2/transport/frame_settings.c +23 -21
  66. data/src/core/ext/transport/chttp2/transport/frame_settings.h +2 -2
  67. data/src/core/ext/transport/chttp2/transport/frame_window_update.c +17 -9
  68. data/src/core/ext/transport/chttp2/transport/frame_window_update.h +2 -2
  69. data/src/core/ext/transport/chttp2/transport/hpack_parser.c +365 -287
  70. data/src/core/ext/transport/chttp2/transport/hpack_parser.h +8 -6
  71. data/src/core/ext/transport/chttp2/transport/hpack_table.c +24 -20
  72. data/src/core/ext/transport/chttp2/transport/hpack_table.h +5 -4
  73. data/src/core/ext/transport/chttp2/transport/incoming_metadata.c +1 -0
  74. data/src/core/ext/transport/chttp2/transport/incoming_metadata.h +1 -0
  75. data/src/core/ext/transport/chttp2/transport/internal.h +34 -32
  76. data/src/core/ext/transport/chttp2/transport/parsing.c +296 -212
  77. data/src/core/ext/transport/chttp2/transport/writing.c +12 -9
  78. data/src/core/lib/channel/channel_args.c +26 -12
  79. data/src/core/lib/channel/channel_args.h +1 -1
  80. data/src/core/lib/channel/channel_stack.c +12 -8
  81. data/src/core/lib/channel/channel_stack.h +27 -11
  82. data/src/core/lib/channel/channel_stack_builder.c +2 -2
  83. data/src/core/lib/channel/compress_filter.c +26 -31
  84. data/src/core/lib/channel/compress_filter.h +4 -4
  85. data/src/core/lib/channel/connected_channel.c +7 -5
  86. data/src/core/lib/channel/http_client_filter.c +34 -8
  87. data/src/core/lib/channel/http_client_filter.h +1 -1
  88. data/src/core/lib/channel/http_server_filter.c +21 -12
  89. data/src/core/lib/compression/{compression_algorithm.c → compression.c} +22 -21
  90. data/src/core/lib/http/httpcli.c +81 -59
  91. data/src/core/lib/http/httpcli.h +11 -15
  92. data/src/core/lib/http/httpcli_security_connector.c +5 -3
  93. data/src/core/lib/http/parser.c +127 -118
  94. data/src/core/lib/http/parser.h +11 -6
  95. data/src/core/lib/iomgr/closure.c +20 -16
  96. data/src/core/lib/iomgr/closure.h +19 -15
  97. data/src/core/lib/iomgr/endpoint.h +1 -1
  98. data/src/core/lib/iomgr/endpoint_pair_posix.c +2 -2
  99. data/src/core/lib/iomgr/error.c +535 -0
  100. data/src/core/lib/iomgr/error.h +192 -0
  101. data/src/core/lib/iomgr/ev_poll_and_epoll_posix.c +190 -83
  102. data/src/core/lib/iomgr/ev_poll_posix.c +1267 -0
  103. data/src/{ruby/ext/grpc/rb_signal.h → core/lib/iomgr/ev_poll_posix.h} +7 -5
  104. data/src/core/lib/iomgr/ev_posix.c +104 -14
  105. data/src/core/lib/iomgr/ev_posix.h +17 -7
  106. data/src/core/lib/iomgr/exec_ctx.c +25 -7
  107. data/src/core/lib/iomgr/exec_ctx.h +27 -8
  108. data/src/core/lib/iomgr/executor.c +2 -2
  109. data/src/core/lib/iomgr/executor.h +1 -1
  110. data/src/core/lib/iomgr/iocp_windows.c +2 -41
  111. data/src/core/lib/iomgr/iocp_windows.h +0 -8
  112. data/src/core/lib/iomgr/iomgr.c +5 -4
  113. data/src/core/lib/iomgr/iomgr_posix.c +5 -1
  114. data/src/core/lib/iomgr/iomgr_windows.c +1 -1
  115. data/src/core/lib/{support → iomgr}/load_file.c +15 -17
  116. data/src/core/lib/{support → iomgr}/load_file.h +8 -7
  117. data/src/core/lib/iomgr/polling_entity.c +104 -0
  118. data/src/core/lib/iomgr/polling_entity.h +81 -0
  119. data/src/core/lib/iomgr/pollset.h +6 -5
  120. data/src/core/lib/iomgr/pollset_set_windows.c +4 -1
  121. data/src/core/lib/iomgr/pollset_windows.c +10 -6
  122. data/src/core/lib/iomgr/resolve_address.h +5 -9
  123. data/src/core/lib/iomgr/resolve_address_posix.c +55 -38
  124. data/src/core/lib/iomgr/resolve_address_windows.c +51 -37
  125. data/src/core/lib/iomgr/sockaddr.h +2 -2
  126. data/src/core/lib/iomgr/{sockaddr_win32.h → sockaddr_windows.h} +3 -3
  127. data/src/core/lib/iomgr/socket_utils_common_posix.c +92 -45
  128. data/src/core/lib/iomgr/socket_utils_posix.h +19 -12
  129. data/src/core/lib/iomgr/socket_windows.c +61 -2
  130. data/src/core/lib/iomgr/socket_windows.h +13 -0
  131. data/src/core/lib/iomgr/tcp_client_posix.c +54 -39
  132. data/src/core/lib/iomgr/tcp_client_windows.c +34 -34
  133. data/src/core/lib/iomgr/tcp_posix.c +43 -39
  134. data/src/core/lib/iomgr/tcp_server.h +5 -3
  135. data/src/core/lib/iomgr/tcp_server_posix.c +103 -64
  136. data/src/core/lib/iomgr/tcp_server_windows.c +114 -101
  137. data/src/core/lib/iomgr/tcp_windows.c +45 -50
  138. data/src/core/lib/iomgr/tcp_windows.h +1 -1
  139. data/src/core/lib/iomgr/timer.c +26 -13
  140. data/src/core/lib/iomgr/udp_server.c +28 -4
  141. data/src/core/lib/iomgr/udp_server.h +5 -1
  142. data/src/core/lib/iomgr/unix_sockets_posix.c +8 -7
  143. data/src/core/lib/iomgr/unix_sockets_posix.h +2 -1
  144. data/src/core/lib/iomgr/unix_sockets_posix_noop.c +4 -2
  145. data/src/core/lib/iomgr/wakeup_fd_eventfd.c +15 -5
  146. data/src/core/lib/iomgr/wakeup_fd_pipe.c +13 -9
  147. data/src/core/lib/iomgr/wakeup_fd_posix.c +6 -6
  148. data/src/core/lib/iomgr/wakeup_fd_posix.h +9 -6
  149. data/src/core/lib/iomgr/workqueue.h +5 -4
  150. data/src/core/lib/iomgr/workqueue_posix.c +40 -26
  151. data/src/core/lib/iomgr/workqueue_windows.c +2 -2
  152. data/src/core/lib/profiling/basic_timers.c +2 -2
  153. data/src/core/lib/security/{security_context.c → context/security_context.c} +1 -1
  154. data/src/core/lib/security/{security_context.h → context/security_context.h} +4 -4
  155. data/src/core/lib/security/credentials/composite/composite_credentials.c +263 -0
  156. data/src/core/lib/security/credentials/composite/composite_credentials.h +72 -0
  157. data/src/core/lib/security/credentials/credentials.c +233 -0
  158. data/src/core/lib/security/{credentials.h → credentials/credentials.h} +19 -157
  159. data/src/core/lib/security/{credentials_metadata.c → credentials/credentials_metadata.c} +1 -1
  160. data/src/core/lib/security/credentials/fake/fake_credentials.c +139 -0
  161. data/src/core/lib/security/credentials/fake/fake_credentials.h +56 -0
  162. data/src/core/lib/security/{credentials_posix.c → credentials/google_default/credentials_posix.c} +1 -1
  163. data/src/core/lib/security/{credentials_win32.c → credentials/google_default/credentials_windows.c} +3 -3
  164. data/src/core/lib/security/{google_default_credentials.c → credentials/google_default/google_default_credentials.c} +93 -35
  165. data/src/core/lib/security/credentials/google_default/google_default_credentials.h +46 -0
  166. data/src/core/lib/security/credentials/iam/iam_credentials.c +85 -0
  167. data/src/core/lib/security/credentials/iam/iam_credentials.h +44 -0
  168. data/src/core/lib/security/{json_token.c → credentials/jwt/json_token.c} +10 -101
  169. data/src/core/lib/security/{json_token.h → credentials/jwt/json_token.h} +3 -33
  170. data/src/core/lib/security/credentials/jwt/jwt_credentials.c +160 -0
  171. data/src/core/lib/security/credentials/jwt/jwt_credentials.h +62 -0
  172. data/src/core/lib/security/{jwt_verifier.c → credentials/jwt/jwt_verifier.c} +35 -15
  173. data/src/core/lib/security/{jwt_verifier.h → credentials/jwt/jwt_verifier.h} +3 -3
  174. data/src/core/lib/security/credentials/oauth2/oauth2_credentials.c +433 -0
  175. data/src/core/lib/security/credentials/oauth2/oauth2_credentials.h +109 -0
  176. data/src/core/lib/security/credentials/plugin/plugin_credentials.c +129 -0
  177. data/src/core/lib/security/credentials/plugin/plugin_credentials.h +45 -0
  178. data/src/core/lib/security/credentials/ssl/ssl_credentials.c +240 -0
  179. data/src/core/lib/security/credentials/ssl/ssl_credentials.h +48 -0
  180. data/src/core/lib/security/{auth_filters.h → transport/auth_filters.h} +3 -3
  181. data/src/core/lib/security/{client_auth_filter.c → transport/client_auth_filter.c} +27 -20
  182. data/src/core/lib/security/{handshake.c → transport/handshake.c} +77 -45
  183. data/src/core/lib/security/{handshake.h → transport/handshake.h} +9 -11
  184. data/src/core/lib/security/{secure_endpoint.c → transport/secure_endpoint.c} +19 -12
  185. data/src/core/lib/security/{secure_endpoint.h → transport/secure_endpoint.h} +3 -3
  186. data/src/core/lib/security/{security_connector.c → transport/security_connector.c} +26 -17
  187. data/src/core/lib/security/{security_connector.h → transport/security_connector.h} +8 -8
  188. data/src/core/lib/security/{server_auth_filter.c → transport/server_auth_filter.c} +24 -16
  189. data/src/core/lib/security/transport/tsi_error.c +40 -0
  190. data/src/core/lib/security/transport/tsi_error.h +42 -0
  191. data/src/core/lib/security/{b64.c → util/b64.c} +1 -1
  192. data/src/core/lib/security/{b64.h → util/b64.h} +3 -3
  193. data/src/core/lib/security/util/json_util.c +61 -0
  194. data/src/core/lib/security/util/json_util.h +55 -0
  195. data/src/core/lib/support/avl.c +11 -0
  196. data/src/core/lib/support/cpu_windows.c +2 -2
  197. data/src/core/lib/support/{env_win32.c → env_windows.c} +3 -3
  198. data/src/core/lib/support/log.c +3 -1
  199. data/src/core/lib/support/log_linux.c +2 -2
  200. data/src/core/lib/support/{log_win32.c → log_windows.c} +4 -4
  201. data/src/core/lib/support/murmur_hash.c +3 -5
  202. data/src/core/lib/support/string.c +10 -0
  203. data/src/core/lib/support/string.h +4 -0
  204. data/src/core/lib/support/{string_util_win32.c → string_util_windows.c} +3 -3
  205. data/src/core/lib/support/{string_win32.c → string_windows.c} +2 -2
  206. data/src/core/lib/support/{string_win32.h → string_windows.h} +5 -5
  207. data/src/core/lib/support/subprocess_windows.c +1 -1
  208. data/src/core/lib/support/{sync_win32.c → sync_windows.c} +2 -2
  209. data/src/core/lib/support/{thd_win32.c → thd_windows.c} +2 -2
  210. data/src/core/lib/support/{time_win32.c → time_windows.c} +2 -2
  211. data/src/core/lib/support/tmpfile_msys.c +1 -1
  212. data/src/core/lib/support/{tmpfile_win32.c → tmpfile_windows.c} +3 -3
  213. data/src/core/lib/surface/alarm.c +2 -2
  214. data/src/core/lib/surface/byte_buffer_reader.c +13 -6
  215. data/src/core/lib/surface/call.c +323 -123
  216. data/src/core/lib/surface/call.h +2 -0
  217. data/src/core/lib/surface/call_log_batch.c +1 -1
  218. data/src/core/lib/surface/channel.c +64 -15
  219. data/src/core/lib/surface/channel.h +9 -0
  220. data/src/core/lib/surface/channel_ping.c +3 -3
  221. data/src/core/lib/surface/completion_queue.c +75 -19
  222. data/src/core/lib/surface/completion_queue.h +7 -2
  223. data/src/core/lib/surface/init.c +2 -1
  224. data/src/core/lib/surface/init_secure.c +4 -4
  225. data/src/core/lib/surface/lame_client.c +12 -8
  226. data/src/core/lib/surface/server.c +213 -120
  227. data/src/core/lib/surface/server.h +1 -0
  228. data/src/core/lib/surface/version.c +1 -1
  229. data/src/core/lib/transport/connectivity_state.c +40 -18
  230. data/src/core/lib/transport/connectivity_state.h +4 -1
  231. data/src/core/lib/transport/metadata.c +23 -23
  232. data/src/core/lib/transport/metadata.h +4 -0
  233. data/src/core/lib/transport/metadata_batch.c +9 -0
  234. data/src/core/lib/transport/metadata_batch.h +3 -0
  235. data/src/core/lib/transport/static_metadata.c +6 -5
  236. data/src/core/lib/transport/static_metadata.h +64 -60
  237. data/src/core/lib/transport/transport.c +24 -12
  238. data/src/core/lib/transport/transport.h +6 -5
  239. data/src/core/lib/transport/transport_impl.h +4 -0
  240. data/src/core/lib/transport/transport_op_string.c +2 -2
  241. data/src/core/plugin_registry/grpc_plugin_registry.c +4 -0
  242. data/src/ruby/bin/math_services.rb +41 -2
  243. data/src/ruby/ext/grpc/rb_call.c +42 -40
  244. data/src/ruby/ext/grpc/rb_channel.c +1 -1
  245. data/src/ruby/ext/grpc/rb_completion_queue.c +59 -6
  246. data/src/ruby/ext/grpc/rb_completion_queue.h +1 -1
  247. data/src/ruby/ext/grpc/rb_grpc.c +1 -3
  248. data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +12 -2
  249. data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +21 -5
  250. data/src/ruby/ext/grpc/rb_loader.c +1 -1
  251. data/src/ruby/ext/grpc/rb_server.c +5 -3
  252. data/src/ruby/lib/grpc.rb +0 -3
  253. data/src/ruby/lib/grpc/errors.rb +3 -2
  254. data/src/ruby/lib/grpc/generic/active_call.rb +32 -42
  255. data/src/ruby/lib/grpc/generic/bidi_call.rb +20 -0
  256. data/src/ruby/lib/grpc/generic/client_stub.rb +31 -54
  257. data/src/ruby/lib/grpc/generic/rpc_desc.rb +4 -4
  258. data/src/ruby/lib/grpc/generic/rpc_server.rb +12 -23
  259. data/src/ruby/lib/grpc/generic/service.rb +8 -8
  260. data/src/ruby/lib/grpc/version.rb +1 -1
  261. data/src/ruby/pb/grpc/health/v1/health_services.rb +30 -2
  262. data/src/ruby/pb/grpc/testing/duplicate/echo_duplicate_services.rb +34 -4
  263. data/src/ruby/pb/grpc/testing/metrics_services.rb +39 -2
  264. data/src/ruby/pb/src/proto/grpc/testing/empty.rb +15 -0
  265. data/src/ruby/pb/src/proto/grpc/testing/messages.rb +84 -0
  266. data/src/ruby/pb/src/proto/grpc/testing/test.rb +14 -0
  267. data/src/ruby/pb/src/proto/grpc/testing/test_services.rb +110 -0
  268. data/src/ruby/pb/test/client.rb +5 -2
  269. data/src/ruby/spec/generic/active_call_spec.rb +3 -2
  270. data/src/ruby/spec/generic/client_stub_spec.rb +27 -24
  271. data/src/ruby/spec/generic/rpc_desc_spec.rb +11 -11
  272. data/src/ruby/spec/generic/rpc_server_spec.rb +42 -61
  273. data/src/ruby/spec/pb/health/checker_spec.rb +3 -5
  274. metadata +86 -48
  275. data/src/core/ext/lb_policy/grpclb/proto/grpc/lb/v0/load_balancer.pb.h +0 -182
  276. data/src/core/lib/security/credentials.c +0 -1296
  277. data/src/ruby/lib/grpc/signals.rb +0 -69
@@ -56,14 +56,14 @@ describe GRPC::RpcDesc do
56
56
  it 'sends the specified status if BadStatus is raised' do
57
57
  expect(@call).to receive(:remote_read).once.and_return(Object.new)
58
58
  expect(@call).to receive(:send_status).once.with(@bs_code, 'NOK', false,
59
- {})
59
+ metadata: {})
60
60
  this_desc.run_server_method(@call, method(:bad_status))
61
61
  end
62
62
 
63
63
  it 'sends status UNKNOWN if other StandardErrors are raised' do
64
64
  expect(@call).to receive(:remote_read).once.and_return(Object.new)
65
65
  expect(@call).to receive(:send_status) .once.with(UNKNOWN, @no_reason,
66
- false, {})
66
+ false, metadata: {})
67
67
  this_desc.run_server_method(@call, method(:other_error))
68
68
  end
69
69
 
@@ -93,7 +93,7 @@ describe GRPC::RpcDesc do
93
93
  expect(@call).to receive(:remote_send).once.with(@ok_response)
94
94
  expect(@call).to receive(:output_metadata).and_return(fake_md)
95
95
  expect(@call).to receive(:send_status).once.with(OK, 'OK', true,
96
- **fake_md)
96
+ metadata: fake_md)
97
97
  this_desc.run_server_method(@call, method(:fake_reqresp))
98
98
  end
99
99
  end
@@ -106,13 +106,13 @@ describe GRPC::RpcDesc do
106
106
 
107
107
  it 'sends the specified status if BadStatus is raised' do
108
108
  expect(@call).to receive(:send_status).once.with(@bs_code, 'NOK', false,
109
- {})
109
+ metadata: {})
110
110
  @client_streamer.run_server_method(@call, method(:bad_status_alt))
111
111
  end
112
112
 
113
113
  it 'sends status UNKNOWN if other StandardErrors are raised' do
114
- expect(@call).to receive(:send_status) .once.with(UNKNOWN, @no_reason,
115
- false, {})
114
+ expect(@call).to receive(:send_status).once.with(UNKNOWN, @no_reason,
115
+ false, metadata: {})
116
116
  @client_streamer.run_server_method(@call, method(:other_error_alt))
117
117
  end
118
118
 
@@ -128,7 +128,7 @@ describe GRPC::RpcDesc do
128
128
  expect(@call).to receive(:remote_send).once.with(@ok_response)
129
129
  expect(@call).to receive(:output_metadata).and_return(fake_md)
130
130
  expect(@call).to receive(:send_status).once.with(OK, 'OK', true,
131
- **fake_md)
131
+ metadata: fake_md)
132
132
  @client_streamer.run_server_method(@call, method(:fake_clstream))
133
133
  end
134
134
  end
@@ -148,7 +148,7 @@ describe GRPC::RpcDesc do
148
148
  expect(@call).to receive(:remote_send).twice.with(@ok_response)
149
149
  expect(@call).to receive(:output_metadata).and_return(fake_md)
150
150
  expect(@call).to receive(:send_status).once.with(OK, 'OK', true,
151
- **fake_md)
151
+ metadata: fake_md)
152
152
  @server_streamer.run_server_method(@call, method(:fake_svstream))
153
153
  end
154
154
  end
@@ -165,14 +165,14 @@ describe GRPC::RpcDesc do
165
165
  e = GRPC::BadStatus.new(@bs_code, 'NOK')
166
166
  expect(@call).to receive(:run_server_bidi).and_raise(e)
167
167
  expect(@call).to receive(:send_status).once.with(@bs_code, 'NOK', false,
168
- {})
168
+ metadata: {})
169
169
  @bidi_streamer.run_server_method(@call, method(:bad_status_alt))
170
170
  end
171
171
 
172
172
  it 'sends status UNKNOWN if other StandardErrors are raised' do
173
173
  expect(@call).to receive(:run_server_bidi).and_raise(StandardError)
174
174
  expect(@call).to receive(:send_status).once.with(UNKNOWN, @no_reason,
175
- false, {})
175
+ false, metadata: {})
176
176
  @bidi_streamer.run_server_method(@call, method(:other_error_alt))
177
177
  end
178
178
 
@@ -180,7 +180,7 @@ describe GRPC::RpcDesc do
180
180
  expect(@call).to receive(:run_server_bidi)
181
181
  expect(@call).to receive(:output_metadata).and_return(fake_md)
182
182
  expect(@call).to receive(:send_status).once.with(OK, 'OK', true,
183
- **fake_md)
183
+ metadata: fake_md)
184
184
  @bidi_streamer.run_server_method(@call, method(:fake_bidistream))
185
185
  end
186
186
  end
@@ -99,7 +99,7 @@ class FailingService
99
99
  end
100
100
 
101
101
  def an_rpc(_req, _call)
102
- fail GRPC::BadStatus.new(@code, @details, **@md)
102
+ fail GRPC::BadStatus.new(@code, @details, @md)
103
103
  end
104
104
  end
105
105
 
@@ -137,24 +137,11 @@ describe GRPC::RpcServer do
137
137
  @noop = proc { |x| x }
138
138
 
139
139
  @server_queue = GRPC::Core::CompletionQueue.new
140
- server_host = '0.0.0.0:0'
141
- @server = GRPC::Core::Server.new(@server_queue, nil)
142
- server_port = @server.add_http2_port(server_host, :this_port_is_insecure)
143
- @host = "localhost:#{server_port}"
144
- @ch = GRPC::Core::Channel.new(@host, nil, :this_channel_is_insecure)
145
140
  end
146
141
 
147
142
  describe '#new' do
148
143
  it 'can be created with just some args' do
149
- opts = { a_channel_arg: 'an_arg' }
150
- blk = proc do
151
- RpcServer.new(**opts)
152
- end
153
- expect(&blk).not_to raise_error
154
- end
155
-
156
- it 'can be created with a default deadline' do
157
- opts = { a_channel_arg: 'an_arg', deadline: 5 }
144
+ opts = { server_args: { a_channel_arg: 'an_arg' } }
158
145
  blk = proc do
159
146
  RpcServer.new(**opts)
160
147
  end
@@ -163,7 +150,7 @@ describe GRPC::RpcServer do
163
150
 
164
151
  it 'can be created with a completion queue override' do
165
152
  opts = {
166
- a_channel_arg: 'an_arg',
153
+ server_args: { a_channel_arg: 'an_arg' },
167
154
  completion_queue_override: @server_queue
168
155
  }
169
156
  blk = proc do
@@ -175,7 +162,7 @@ describe GRPC::RpcServer do
175
162
  it 'cannot be created with a bad completion queue override' do
176
163
  blk = proc do
177
164
  opts = {
178
- a_channel_arg: 'an_arg',
165
+ server_args: { a_channel_arg: 'an_arg' },
179
166
  completion_queue_override: Object.new
180
167
  }
181
168
  RpcServer.new(**opts)
@@ -186,38 +173,20 @@ describe GRPC::RpcServer do
186
173
  it 'cannot be created with invalid ServerCredentials' do
187
174
  blk = proc do
188
175
  opts = {
189
- a_channel_arg: 'an_arg',
176
+ server_args: { a_channel_arg: 'an_arg' },
190
177
  creds: Object.new
191
178
  }
192
179
  RpcServer.new(**opts)
193
180
  end
194
181
  expect(&blk).to raise_error
195
182
  end
196
-
197
- it 'can be created with a server override' do
198
- opts = { a_channel_arg: 'an_arg', server_override: @server }
199
- blk = proc do
200
- RpcServer.new(**opts)
201
- end
202
- expect(&blk).not_to raise_error
203
- end
204
-
205
- it 'cannot be created with a bad server override' do
206
- blk = proc do
207
- opts = {
208
- a_channel_arg: 'an_arg',
209
- server_override: Object.new
210
- }
211
- RpcServer.new(**opts)
212
- end
213
- expect(&blk).to raise_error
214
- end
215
183
  end
216
184
 
217
185
  describe '#stopped?' do
218
186
  before(:each) do
219
- opts = { a_channel_arg: 'an_arg', poll_period: 1.5 }
187
+ opts = { server_args: { a_channel_arg: 'an_arg' }, poll_period: 1.5 }
220
188
  @srv = RpcServer.new(**opts)
189
+ @srv.add_http2_port('0.0.0.0:0', :this_port_is_insecure)
221
190
  end
222
191
 
223
192
  it 'starts out false' do
@@ -245,28 +214,30 @@ describe GRPC::RpcServer do
245
214
 
246
215
  describe '#running?' do
247
216
  it 'starts out false' do
248
- opts = { a_channel_arg: 'an_arg', server_override: @server }
217
+ opts = {
218
+ server_args: { a_channel_arg: 'an_arg' }
219
+ }
249
220
  r = RpcServer.new(**opts)
250
221
  expect(r.running?).to be(false)
251
222
  end
252
223
 
253
224
  it 'is false if run is called with no services registered', server: true do
254
225
  opts = {
255
- a_channel_arg: 'an_arg',
256
- poll_period: 2,
257
- server_override: @server
226
+ server_args: { a_channel_arg: 'an_arg' },
227
+ poll_period: 2
258
228
  }
259
229
  r = RpcServer.new(**opts)
230
+ r.add_http2_port('0.0.0.0:0', :this_port_is_insecure)
260
231
  expect { r.run }.to raise_error(RuntimeError)
261
232
  end
262
233
 
263
234
  it 'is true after run is called with a registered service' do
264
235
  opts = {
265
- a_channel_arg: 'an_arg',
266
- poll_period: 2.5,
267
- server_override: @server
236
+ server_args: { a_channel_arg: 'an_arg' },
237
+ poll_period: 2.5
268
238
  }
269
239
  r = RpcServer.new(**opts)
240
+ r.add_http2_port('0.0.0.0:0', :this_port_is_insecure)
270
241
  r.handle(EchoService)
271
242
  t = Thread.new { r.run }
272
243
  r.wait_till_running
@@ -278,8 +249,9 @@ describe GRPC::RpcServer do
278
249
 
279
250
  describe '#handle' do
280
251
  before(:each) do
281
- @opts = { a_channel_arg: 'an_arg', poll_period: 1 }
252
+ @opts = { server_args: { a_channel_arg: 'an_arg' }, poll_period: 1 }
282
253
  @srv = RpcServer.new(**@opts)
254
+ @srv.add_http2_port('0.0.0.0:0', :this_port_is_insecure)
283
255
  end
284
256
 
285
257
  it 'raises if #run has already been called' do
@@ -322,11 +294,13 @@ describe GRPC::RpcServer do
322
294
  context 'with no connect_metadata' do
323
295
  before(:each) do
324
296
  server_opts = {
325
- server_override: @server,
326
297
  completion_queue_override: @server_queue,
327
298
  poll_period: 1
328
299
  }
329
300
  @srv = RpcServer.new(**server_opts)
301
+ server_port = @srv.add_http2_port('0.0.0.0:0', :this_port_is_insecure)
302
+ @host = "localhost:#{server_port}"
303
+ @ch = GRPC::Core::Channel.new(@host, nil, :this_channel_is_insecure)
330
304
  end
331
305
 
332
306
  it 'should return NOT_FOUND status on unknown methods', server: true do
@@ -383,7 +357,8 @@ describe GRPC::RpcServer do
383
357
  @srv.wait_till_running
384
358
  req = EchoMsg.new
385
359
  stub = EchoStub.new(@host, :this_channel_is_insecure, **client_opts)
386
- expect(stub.an_rpc(req, k1: 'v1', k2: 'v2')).to be_a(EchoMsg)
360
+ expect(stub.an_rpc(req, metadata: { k1: 'v1', k2: 'v2' }))
361
+ .to be_a(EchoMsg)
387
362
  wanted_md = [{ 'k1' => 'v1', 'k2' => 'v2' }]
388
363
  check_md(wanted_md, service.received_md)
389
364
  @srv.stop
@@ -397,8 +372,11 @@ describe GRPC::RpcServer do
397
372
  @srv.wait_till_running
398
373
  req = EchoMsg.new
399
374
  stub = SlowStub.new(@host, :this_channel_is_insecure, **client_opts)
400
- timeout = service.delay + 1.0 # wait for long enough
401
- resp = stub.an_rpc(req, timeout: timeout, k1: 'v1', k2: 'v2')
375
+ timeout = service.delay + 1.0
376
+ deadline = GRPC::Core::TimeConsts.from_relative_time(timeout)
377
+ resp = stub.an_rpc(req,
378
+ deadline: deadline,
379
+ metadata: { k1: 'v1', k2: 'v2' })
402
380
  expect(resp).to be_a(EchoMsg)
403
381
  wanted_md = [{ 'k1' => 'v1', 'k2' => 'v2' }]
404
382
  check_md(wanted_md, service.received_md)
@@ -413,7 +391,7 @@ describe GRPC::RpcServer do
413
391
  @srv.wait_till_running
414
392
  req = EchoMsg.new
415
393
  stub = SlowStub.new(@host, :this_channel_is_insecure, **client_opts)
416
- op = stub.an_rpc(req, k1: 'v1', k2: 'v2', return_op: true)
394
+ op = stub.an_rpc(req, metadata: { k1: 'v1', k2: 'v2' }, return_op: true)
417
395
  Thread.new do # cancel the call
418
396
  sleep 0.1
419
397
  op.cancel
@@ -443,8 +421,7 @@ describe GRPC::RpcServer do
443
421
 
444
422
  it 'should return RESOURCE_EXHAUSTED on too many jobs', server: true do
445
423
  opts = {
446
- a_channel_arg: 'an_arg',
447
- server_override: @server,
424
+ server_args: { a_channel_arg: 'an_arg' },
448
425
  completion_queue_override: @server_queue,
449
426
  pool_size: 1,
450
427
  poll_period: 1,
@@ -452,6 +429,8 @@ describe GRPC::RpcServer do
452
429
  }
453
430
  alt_srv = RpcServer.new(**opts)
454
431
  alt_srv.handle(SlowService)
432
+ alt_port = alt_srv.add_http2_port('0.0.0.0:0', :this_port_is_insecure)
433
+ alt_host = "0.0.0.0:#{alt_port}"
455
434
  t = Thread.new { alt_srv.run }
456
435
  alt_srv.wait_till_running
457
436
  req = EchoMsg.new
@@ -460,7 +439,7 @@ describe GRPC::RpcServer do
460
439
  one_failed_as_unavailable = false
461
440
  n.times do
462
441
  threads << Thread.new do
463
- stub = SlowStub.new(@host, :this_channel_is_insecure, **client_opts)
442
+ stub = SlowStub.new(alt_host, :this_channel_is_insecure)
464
443
  begin
465
444
  stub.an_rpc(req)
466
445
  rescue GRPC::BadStatus => e
@@ -487,12 +466,13 @@ describe GRPC::RpcServer do
487
466
  end
488
467
  before(:each) do
489
468
  server_opts = {
490
- server_override: @server,
491
469
  completion_queue_override: @server_queue,
492
470
  poll_period: 1,
493
471
  connect_md_proc: test_md_proc
494
472
  }
495
473
  @srv = RpcServer.new(**server_opts)
474
+ alt_port = @srv.add_http2_port('0.0.0.0:0', :this_port_is_insecure)
475
+ @alt_host = "0.0.0.0:#{alt_port}"
496
476
  end
497
477
 
498
478
  it 'should send connect metadata to the client', server: true do
@@ -501,8 +481,8 @@ describe GRPC::RpcServer do
501
481
  t = Thread.new { @srv.run }
502
482
  @srv.wait_till_running
503
483
  req = EchoMsg.new
504
- stub = EchoStub.new(@host, :this_channel_is_insecure, **client_opts)
505
- op = stub.an_rpc(req, k1: 'v1', k2: 'v2', return_op: true)
484
+ stub = EchoStub.new(@alt_host, :this_channel_is_insecure)
485
+ op = stub.an_rpc(req, metadata: { k1: 'v1', k2: 'v2' }, return_op: true)
506
486
  expect(op.metadata).to be nil
507
487
  expect(op.execute).to be_a(EchoMsg)
508
488
  wanted_md = {
@@ -522,11 +502,12 @@ describe GRPC::RpcServer do
522
502
  context 'with trailing metadata' do
523
503
  before(:each) do
524
504
  server_opts = {
525
- server_override: @server,
526
505
  completion_queue_override: @server_queue,
527
506
  poll_period: 1
528
507
  }
529
508
  @srv = RpcServer.new(**server_opts)
509
+ alt_port = @srv.add_http2_port('0.0.0.0:0', :this_port_is_insecure)
510
+ @alt_host = "0.0.0.0:#{alt_port}"
530
511
  end
531
512
 
532
513
  it 'should be added to BadStatus when requests fail', server: true do
@@ -535,7 +516,7 @@ describe GRPC::RpcServer do
535
516
  t = Thread.new { @srv.run }
536
517
  @srv.wait_till_running
537
518
  req = EchoMsg.new
538
- stub = FailingStub.new(@host, :this_channel_is_insecure, **client_opts)
519
+ stub = FailingStub.new(@alt_host, :this_channel_is_insecure)
539
520
  blk = proc { stub.an_rpc(req) }
540
521
 
541
522
  # confirm it raise the expected error
@@ -560,8 +541,8 @@ describe GRPC::RpcServer do
560
541
  t = Thread.new { @srv.run }
561
542
  @srv.wait_till_running
562
543
  req = EchoMsg.new
563
- stub = EchoStub.new(@host, :this_channel_is_insecure, **client_opts)
564
- op = stub.an_rpc(req, k1: 'v1', k2: 'v2', return_op: true)
544
+ stub = EchoStub.new(@alt_host, :this_channel_is_insecure)
545
+ op = stub.an_rpc(req, return_op: true, metadata: { k1: 'v1', k2: 'v2' })
565
546
  expect(op.metadata).to be nil
566
547
  expect(op.execute).to be_a(EchoMsg)
567
548
  expect(op.metadata).to eq(wanted_trailers)
@@ -170,17 +170,15 @@ describe Grpc::Health::Checker do
170
170
  before(:each) do
171
171
  @server_queue = GRPC::Core::CompletionQueue.new
172
172
  server_host = '0.0.0.0:0'
173
- @server = GRPC::Core::Server.new(@server_queue, nil)
174
- server_port = @server.add_http2_port(server_host, :this_port_is_insecure)
175
- @host = "localhost:#{server_port}"
176
- @ch = GRPC::Core::Channel.new(@host, nil, :this_channel_is_insecure)
177
173
  @client_opts = { channel_override: @ch }
178
174
  server_opts = {
179
- server_override: @server,
180
175
  completion_queue_override: @server_queue,
181
176
  poll_period: 1
182
177
  }
183
178
  @srv = RpcServer.new(**server_opts)
179
+ server_port = @srv.add_http2_port(server_host, :this_port_is_insecure)
180
+ @host = "localhost:#{server_port}"
181
+ @ch = GRPC::Core::Channel.new(@host, nil, :this_channel_is_insecure)
184
182
  end
185
183
 
186
184
  after(:each) do
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: 0.14.1
4
+ version: 0.15.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: 2016-05-11 00:00:00.000000000 Z
11
+ date: 2016-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -193,6 +193,8 @@ files:
193
193
  - include/grpc/census.h
194
194
  - include/grpc/compression.h
195
195
  - include/grpc/grpc.h
196
+ - include/grpc/grpc_cronet.h
197
+ - include/grpc/grpc_posix.h
196
198
  - include/grpc/grpc_security.h
197
199
  - include/grpc/grpc_security_constants.h
198
200
  - include/grpc/grpc_zookeeper.h
@@ -200,7 +202,7 @@ files:
200
202
  - include/grpc/impl/codegen/atm.h
201
203
  - include/grpc/impl/codegen/atm_gcc_atomic.h
202
204
  - include/grpc/impl/codegen/atm_gcc_sync.h
203
- - include/grpc/impl/codegen/atm_win32.h
205
+ - include/grpc/impl/codegen/atm_windows.h
204
206
  - include/grpc/impl/codegen/byte_buffer.h
205
207
  - include/grpc/impl/codegen/byte_buffer_reader.h
206
208
  - include/grpc/impl/codegen/compression_types.h
@@ -215,21 +217,21 @@ files:
215
217
  - include/grpc/impl/codegen/sync.h
216
218
  - include/grpc/impl/codegen/sync_generic.h
217
219
  - include/grpc/impl/codegen/sync_posix.h
218
- - include/grpc/impl/codegen/sync_win32.h
220
+ - include/grpc/impl/codegen/sync_windows.h
219
221
  - include/grpc/impl/codegen/time.h
220
222
  - include/grpc/status.h
221
223
  - include/grpc/support/alloc.h
222
224
  - include/grpc/support/atm.h
223
225
  - include/grpc/support/atm_gcc_atomic.h
224
226
  - include/grpc/support/atm_gcc_sync.h
225
- - include/grpc/support/atm_win32.h
227
+ - include/grpc/support/atm_windows.h
226
228
  - include/grpc/support/avl.h
227
229
  - include/grpc/support/cmdline.h
228
230
  - include/grpc/support/cpu.h
229
231
  - include/grpc/support/histogram.h
230
232
  - include/grpc/support/host_port.h
231
233
  - include/grpc/support/log.h
232
- - include/grpc/support/log_win32.h
234
+ - include/grpc/support/log_windows.h
233
235
  - include/grpc/support/port_platform.h
234
236
  - include/grpc/support/slice.h
235
237
  - include/grpc/support/slice_buffer.h
@@ -238,7 +240,7 @@ files:
238
240
  - include/grpc/support/sync.h
239
241
  - include/grpc/support/sync_generic.h
240
242
  - include/grpc/support/sync_posix.h
241
- - include/grpc/support/sync_win32.h
243
+ - include/grpc/support/sync_windows.h
242
244
  - include/grpc/support/thd.h
243
245
  - include/grpc/support/time.h
244
246
  - include/grpc/support/tls.h
@@ -251,6 +253,8 @@ files:
251
253
  - src/core/ext/census/census_interface.h
252
254
  - src/core/ext/census/census_rpc_stats.h
253
255
  - src/core/ext/census/context.c
256
+ - src/core/ext/census/gen/census.pb.c
257
+ - src/core/ext/census/gen/census.pb.h
254
258
  - src/core/ext/census/grpc_context.c
255
259
  - src/core/ext/census/grpc_filter.c
256
260
  - src/core/ext/census/grpc_filter.h
@@ -299,18 +303,26 @@ files:
299
303
  - src/core/ext/client_config/uri_parser.h
300
304
  - src/core/ext/lb_policy/grpclb/load_balancer_api.c
301
305
  - src/core/ext/lb_policy/grpclb/load_balancer_api.h
302
- - src/core/ext/lb_policy/grpclb/proto/grpc/lb/v0/load_balancer.pb.c
303
- - src/core/ext/lb_policy/grpclb/proto/grpc/lb/v0/load_balancer.pb.h
306
+ - src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
307
+ - src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.h
304
308
  - src/core/ext/lb_policy/pick_first/pick_first.c
305
309
  - src/core/ext/lb_policy/round_robin/round_robin.c
310
+ - src/core/ext/load_reporting/load_reporting.c
311
+ - src/core/ext/load_reporting/load_reporting.h
312
+ - src/core/ext/load_reporting/load_reporting_filter.c
313
+ - src/core/ext/load_reporting/load_reporting_filter.h
306
314
  - src/core/ext/resolver/dns/native/dns_resolver.c
307
315
  - src/core/ext/resolver/sockaddr/sockaddr_resolver.c
308
316
  - src/core/ext/transport/chttp2/alpn/alpn.c
309
317
  - src/core/ext/transport/chttp2/alpn/alpn.h
310
318
  - src/core/ext/transport/chttp2/client/insecure/channel_create.c
319
+ - src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
311
320
  - src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
312
321
  - src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
322
+ - src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
313
323
  - src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c
324
+ - src/core/ext/transport/chttp2/transport/bin_decoder.c
325
+ - src/core/ext/transport/chttp2/transport/bin_decoder.h
314
326
  - src/core/ext/transport/chttp2/transport/bin_encoder.c
315
327
  - src/core/ext/transport/chttp2/transport/bin_encoder.h
316
328
  - src/core/ext/transport/chttp2/transport/chttp2_plugin.c
@@ -368,7 +380,7 @@ files:
368
380
  - src/core/lib/channel/http_server_filter.c
369
381
  - src/core/lib/channel/http_server_filter.h
370
382
  - src/core/lib/compression/algorithm_metadata.h
371
- - src/core/lib/compression/compression_algorithm.c
383
+ - src/core/lib/compression/compression.c
372
384
  - src/core/lib/compression/message_compress.c
373
385
  - src/core/lib/compression/message_compress.h
374
386
  - src/core/lib/debug/trace.c
@@ -387,8 +399,12 @@ files:
387
399
  - src/core/lib/iomgr/endpoint_pair.h
388
400
  - src/core/lib/iomgr/endpoint_pair_posix.c
389
401
  - src/core/lib/iomgr/endpoint_pair_windows.c
402
+ - src/core/lib/iomgr/error.c
403
+ - src/core/lib/iomgr/error.h
390
404
  - src/core/lib/iomgr/ev_poll_and_epoll_posix.c
391
405
  - src/core/lib/iomgr/ev_poll_and_epoll_posix.h
406
+ - src/core/lib/iomgr/ev_poll_posix.c
407
+ - src/core/lib/iomgr/ev_poll_posix.h
392
408
  - src/core/lib/iomgr/ev_posix.c
393
409
  - src/core/lib/iomgr/ev_posix.h
394
410
  - src/core/lib/iomgr/exec_ctx.c
@@ -403,6 +419,10 @@ files:
403
419
  - src/core/lib/iomgr/iomgr_posix.c
404
420
  - src/core/lib/iomgr/iomgr_posix.h
405
421
  - src/core/lib/iomgr/iomgr_windows.c
422
+ - src/core/lib/iomgr/load_file.c
423
+ - src/core/lib/iomgr/load_file.h
424
+ - src/core/lib/iomgr/polling_entity.c
425
+ - src/core/lib/iomgr/polling_entity.h
406
426
  - src/core/lib/iomgr/pollset.h
407
427
  - src/core/lib/iomgr/pollset_set.h
408
428
  - src/core/lib/iomgr/pollset_set_windows.c
@@ -416,7 +436,7 @@ files:
416
436
  - src/core/lib/iomgr/sockaddr_posix.h
417
437
  - src/core/lib/iomgr/sockaddr_utils.c
418
438
  - src/core/lib/iomgr/sockaddr_utils.h
419
- - src/core/lib/iomgr/sockaddr_win32.h
439
+ - src/core/lib/iomgr/sockaddr_windows.h
420
440
  - src/core/lib/iomgr/socket_utils_common_posix.c
421
441
  - src/core/lib/iomgr/socket_utils_linux.c
422
442
  - src/core/lib/iomgr/socket_utils_posix.c
@@ -466,29 +486,48 @@ files:
466
486
  - src/core/lib/profiling/basic_timers.c
467
487
  - src/core/lib/profiling/stap_timers.c
468
488
  - src/core/lib/profiling/timers.h
469
- - src/core/lib/security/auth_filters.h
470
- - src/core/lib/security/b64.c
471
- - src/core/lib/security/b64.h
472
- - src/core/lib/security/client_auth_filter.c
473
- - src/core/lib/security/credentials.c
474
- - src/core/lib/security/credentials.h
475
- - src/core/lib/security/credentials_metadata.c
476
- - src/core/lib/security/credentials_posix.c
477
- - src/core/lib/security/credentials_win32.c
478
- - src/core/lib/security/google_default_credentials.c
479
- - src/core/lib/security/handshake.c
480
- - src/core/lib/security/handshake.h
481
- - src/core/lib/security/json_token.c
482
- - src/core/lib/security/json_token.h
483
- - src/core/lib/security/jwt_verifier.c
484
- - src/core/lib/security/jwt_verifier.h
485
- - src/core/lib/security/secure_endpoint.c
486
- - src/core/lib/security/secure_endpoint.h
487
- - src/core/lib/security/security_connector.c
488
- - src/core/lib/security/security_connector.h
489
- - src/core/lib/security/security_context.c
490
- - src/core/lib/security/security_context.h
491
- - src/core/lib/security/server_auth_filter.c
489
+ - src/core/lib/security/context/security_context.c
490
+ - src/core/lib/security/context/security_context.h
491
+ - src/core/lib/security/credentials/composite/composite_credentials.c
492
+ - src/core/lib/security/credentials/composite/composite_credentials.h
493
+ - src/core/lib/security/credentials/credentials.c
494
+ - src/core/lib/security/credentials/credentials.h
495
+ - src/core/lib/security/credentials/credentials_metadata.c
496
+ - src/core/lib/security/credentials/fake/fake_credentials.c
497
+ - src/core/lib/security/credentials/fake/fake_credentials.h
498
+ - src/core/lib/security/credentials/google_default/credentials_posix.c
499
+ - src/core/lib/security/credentials/google_default/credentials_windows.c
500
+ - src/core/lib/security/credentials/google_default/google_default_credentials.c
501
+ - src/core/lib/security/credentials/google_default/google_default_credentials.h
502
+ - src/core/lib/security/credentials/iam/iam_credentials.c
503
+ - src/core/lib/security/credentials/iam/iam_credentials.h
504
+ - src/core/lib/security/credentials/jwt/json_token.c
505
+ - src/core/lib/security/credentials/jwt/json_token.h
506
+ - src/core/lib/security/credentials/jwt/jwt_credentials.c
507
+ - src/core/lib/security/credentials/jwt/jwt_credentials.h
508
+ - src/core/lib/security/credentials/jwt/jwt_verifier.c
509
+ - src/core/lib/security/credentials/jwt/jwt_verifier.h
510
+ - src/core/lib/security/credentials/oauth2/oauth2_credentials.c
511
+ - src/core/lib/security/credentials/oauth2/oauth2_credentials.h
512
+ - src/core/lib/security/credentials/plugin/plugin_credentials.c
513
+ - src/core/lib/security/credentials/plugin/plugin_credentials.h
514
+ - src/core/lib/security/credentials/ssl/ssl_credentials.c
515
+ - src/core/lib/security/credentials/ssl/ssl_credentials.h
516
+ - src/core/lib/security/transport/auth_filters.h
517
+ - src/core/lib/security/transport/client_auth_filter.c
518
+ - src/core/lib/security/transport/handshake.c
519
+ - src/core/lib/security/transport/handshake.h
520
+ - src/core/lib/security/transport/secure_endpoint.c
521
+ - src/core/lib/security/transport/secure_endpoint.h
522
+ - src/core/lib/security/transport/security_connector.c
523
+ - src/core/lib/security/transport/security_connector.h
524
+ - src/core/lib/security/transport/server_auth_filter.c
525
+ - src/core/lib/security/transport/tsi_error.c
526
+ - src/core/lib/security/transport/tsi_error.h
527
+ - src/core/lib/security/util/b64.c
528
+ - src/core/lib/security/util/b64.h
529
+ - src/core/lib/security/util/json_util.c
530
+ - src/core/lib/security/util/json_util.h
492
531
  - src/core/lib/support/alloc.c
493
532
  - src/core/lib/support/avl.c
494
533
  - src/core/lib/support/backoff.c
@@ -502,16 +541,14 @@ files:
502
541
  - src/core/lib/support/env.h
503
542
  - src/core/lib/support/env_linux.c
504
543
  - src/core/lib/support/env_posix.c
505
- - src/core/lib/support/env_win32.c
544
+ - src/core/lib/support/env_windows.c
506
545
  - src/core/lib/support/histogram.c
507
546
  - src/core/lib/support/host_port.c
508
- - src/core/lib/support/load_file.c
509
- - src/core/lib/support/load_file.h
510
547
  - src/core/lib/support/log.c
511
548
  - src/core/lib/support/log_android.c
512
549
  - src/core/lib/support/log_linux.c
513
550
  - src/core/lib/support/log_posix.c
514
- - src/core/lib/support/log_win32.c
551
+ - src/core/lib/support/log_windows.c
515
552
  - src/core/lib/support/murmur_hash.c
516
553
  - src/core/lib/support/murmur_hash.h
517
554
  - src/core/lib/support/slice.c
@@ -521,28 +558,28 @@ files:
521
558
  - src/core/lib/support/string.c
522
559
  - src/core/lib/support/string.h
523
560
  - src/core/lib/support/string_posix.c
524
- - src/core/lib/support/string_util_win32.c
525
- - src/core/lib/support/string_win32.c
526
- - src/core/lib/support/string_win32.h
561
+ - src/core/lib/support/string_util_windows.c
562
+ - src/core/lib/support/string_windows.c
563
+ - src/core/lib/support/string_windows.h
527
564
  - src/core/lib/support/subprocess_posix.c
528
565
  - src/core/lib/support/subprocess_windows.c
529
566
  - src/core/lib/support/sync.c
530
567
  - src/core/lib/support/sync_posix.c
531
- - src/core/lib/support/sync_win32.c
568
+ - src/core/lib/support/sync_windows.c
532
569
  - src/core/lib/support/thd.c
533
570
  - src/core/lib/support/thd_internal.h
534
571
  - src/core/lib/support/thd_posix.c
535
- - src/core/lib/support/thd_win32.c
572
+ - src/core/lib/support/thd_windows.c
536
573
  - src/core/lib/support/time.c
537
574
  - src/core/lib/support/time_posix.c
538
575
  - src/core/lib/support/time_precise.c
539
576
  - src/core/lib/support/time_precise.h
540
- - src/core/lib/support/time_win32.c
577
+ - src/core/lib/support/time_windows.c
541
578
  - src/core/lib/support/tls_pthread.c
542
579
  - src/core/lib/support/tmpfile.h
543
580
  - src/core/lib/support/tmpfile_msys.c
544
581
  - src/core/lib/support/tmpfile_posix.c
545
- - src/core/lib/support/tmpfile_win32.c
582
+ - src/core/lib/support/tmpfile_windows.c
546
583
  - src/core/lib/support/wrap_memcpy.c
547
584
  - src/core/lib/surface/alarm.c
548
585
  - src/core/lib/surface/api_trace.c
@@ -636,8 +673,6 @@ files:
636
673
  - src/ruby/ext/grpc/rb_server.h
637
674
  - src/ruby/ext/grpc/rb_server_credentials.c
638
675
  - src/ruby/ext/grpc/rb_server_credentials.h
639
- - src/ruby/ext/grpc/rb_signal.c
640
- - src/ruby/ext/grpc/rb_signal.h
641
676
  - src/ruby/lib/grpc.rb
642
677
  - src/ruby/lib/grpc/core/time_consts.rb
643
678
  - src/ruby/lib/grpc/errors.rb
@@ -650,7 +685,6 @@ files:
650
685
  - src/ruby/lib/grpc/grpc.rb
651
686
  - src/ruby/lib/grpc/logconfig.rb
652
687
  - src/ruby/lib/grpc/notifier.rb
653
- - src/ruby/lib/grpc/signals.rb
654
688
  - src/ruby/lib/grpc/version.rb
655
689
  - src/ruby/pb/README.md
656
690
  - src/ruby/pb/generate_proto_ruby.sh
@@ -660,6 +694,10 @@ files:
660
694
  - src/ruby/pb/grpc/testing/duplicate/echo_duplicate_services.rb
661
695
  - src/ruby/pb/grpc/testing/metrics.rb
662
696
  - src/ruby/pb/grpc/testing/metrics_services.rb
697
+ - src/ruby/pb/src/proto/grpc/testing/empty.rb
698
+ - src/ruby/pb/src/proto/grpc/testing/messages.rb
699
+ - src/ruby/pb/src/proto/grpc/testing/test.rb
700
+ - src/ruby/pb/src/proto/grpc/testing/test_services.rb
663
701
  - src/ruby/pb/test/client.rb
664
702
  - src/ruby/pb/test/proto/empty.rb
665
703
  - src/ruby/pb/test/proto/messages.rb