grpc 1.50.0-x86-mingw32 → 1.51.0-x86-mingw32

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0558a3ba72766def904292a5017bf73ead32e3668f34ca68edfe19041a4e183e'
4
- data.tar.gz: 0d727a3b4aa35010f01c8fc11159d1af6b5589b58b1bf534fd3604a727dcad4c
3
+ metadata.gz: 397ef25fa6d9f86e03076583f55dc31634254f1a089ac780f9a2279bff1f7731
4
+ data.tar.gz: 11052561bfd4f3ff922ed57e823fe483e281517599b98b40700cd93db0dcff5f
5
5
  SHA512:
6
- metadata.gz: cdc78392890987283f743652bfb36c46a6292e58318a640101e0f5faae321d2035d582ebdb44c538f10e2b4b5b518fbd8d309af55329ffffc8963ec2fa9693e5
7
- data.tar.gz: 7749df80eb4bbe70408bf3007dd9db247a75c5d3ba3597f3cae451abae64c08a1d973afd470831ca4f33fdd97ceae59f6da7cdb3e29882369c3516fe866bbbdb
6
+ metadata.gz: cf2a8c8770fa9a1215a64d581e8733c2442fc404b8a9d98a849cdb4779622c310114af6f7f6757ade9c9205ac87e80a8647577c2770212cbb3802394cc76f13c
7
+ data.tar.gz: 1ee251f99f5ba5964cd83e2aa563a721829118bf6b29d475202730400bdc12d84b9cd7738c25764600efa3400a30275a530c534c01856abeb54524e2f7e18f05
Binary file
@@ -35,7 +35,6 @@ grpc_metadata_array_init_type grpc_metadata_array_init_import;
35
35
  grpc_metadata_array_destroy_type grpc_metadata_array_destroy_import;
36
36
  grpc_call_details_init_type grpc_call_details_init_import;
37
37
  grpc_call_details_destroy_type grpc_call_details_destroy_import;
38
- grpc_register_plugin_type grpc_register_plugin_import;
39
38
  grpc_init_type grpc_init_import;
40
39
  grpc_shutdown_type grpc_shutdown_import;
41
40
  grpc_is_initialized_type grpc_is_initialized_import;
@@ -321,7 +320,6 @@ void grpc_rb_load_imports(HMODULE library) {
321
320
  grpc_metadata_array_destroy_import = (grpc_metadata_array_destroy_type) GetProcAddress(library, "grpc_metadata_array_destroy");
322
321
  grpc_call_details_init_import = (grpc_call_details_init_type) GetProcAddress(library, "grpc_call_details_init");
323
322
  grpc_call_details_destroy_import = (grpc_call_details_destroy_type) GetProcAddress(library, "grpc_call_details_destroy");
324
- grpc_register_plugin_import = (grpc_register_plugin_type) GetProcAddress(library, "grpc_register_plugin");
325
323
  grpc_init_import = (grpc_init_type) GetProcAddress(library, "grpc_init");
326
324
  grpc_shutdown_import = (grpc_shutdown_type) GetProcAddress(library, "grpc_shutdown");
327
325
  grpc_is_initialized_import = (grpc_is_initialized_type) GetProcAddress(library, "grpc_is_initialized");
@@ -80,9 +80,6 @@ extern grpc_call_details_init_type grpc_call_details_init_import;
80
80
  typedef void(*grpc_call_details_destroy_type)(grpc_call_details* details);
81
81
  extern grpc_call_details_destroy_type grpc_call_details_destroy_import;
82
82
  #define grpc_call_details_destroy grpc_call_details_destroy_import
83
- typedef void(*grpc_register_plugin_type)(void (*init)(void), void (*destroy)(void));
84
- extern grpc_register_plugin_type grpc_register_plugin_import;
85
- #define grpc_register_plugin grpc_register_plugin_import
86
83
  typedef void(*grpc_init_type)(void);
87
84
  extern grpc_init_type grpc_init_import;
88
85
  #define grpc_init grpc_init_import
Binary file
Binary file
Binary file
Binary file
@@ -14,5 +14,5 @@
14
14
 
15
15
  # GRPC contains the General RPC module.
16
16
  module GRPC
17
- VERSION = '1.50.0'
17
+ VERSION = '1.51.0'
18
18
  end
@@ -28,28 +28,6 @@ describe GRPC::Core::Channel do
28
28
  GRPC::Core::ChannelCredentials.new(load_test_certs[0])
29
29
  end
30
30
 
31
- def fork_with_propagated_error_message
32
- pipe_read, pipe_write = IO.pipe
33
- pid = fork do
34
- pipe_read.close
35
- begin
36
- yield
37
- rescue => exc
38
- pipe_write.syswrite(exc.message)
39
- end
40
- pipe_write.close
41
- end
42
- pipe_write.close
43
-
44
- exc_message = pipe_read.read
45
- Process.wait(pid)
46
-
47
- unless $CHILD_STATUS.success?
48
- raise "forked process failed with #{$CHILD_STATUS}"
49
- end
50
- raise exc_message unless exc_message.empty?
51
- end
52
-
53
31
  shared_examples '#new' do
54
32
  it 'take a host name without channel args' do
55
33
  blk = proc do
@@ -102,14 +80,6 @@ describe GRPC::Core::Channel do
102
80
  blk = construct_with_args(args)
103
81
  expect(&blk).to_not raise_error
104
82
  end
105
-
106
- it 'raises if grpc was initialized in another process' do
107
- blk = construct_with_args({})
108
- expect(&blk).not_to raise_error
109
- expect do
110
- fork_with_propagated_error_message(&blk)
111
- end.to raise_error(RuntimeError, 'grpc cannot be used before and after forking')
112
- end
113
83
  end
114
84
 
115
85
  describe '#new for secure channels' do
@@ -168,19 +138,6 @@ describe GRPC::Core::Channel do
168
138
  expect(&blk).to raise_error(RuntimeError)
169
139
  STDERR.puts "#{Time.now}: finished: raises an error if called on a closed channel"
170
140
  end
171
-
172
- it 'raises if grpc was initialized in another process' do
173
- ch = GRPC::Core::Channel.new(fake_host, nil, :this_channel_is_insecure)
174
-
175
- deadline = Time.now + 5
176
-
177
- blk = proc do
178
- fork_with_propagated_error_message do
179
- ch.create_call(nil, nil, 'phony_method', nil, deadline)
180
- end
181
- end
182
- expect(&blk).to raise_error(RuntimeError, 'grpc cannot be used before and after forking')
183
- end
184
141
  end
185
142
 
186
143
  describe '#destroy' do
@@ -65,12 +65,21 @@ describe GRPC::ActiveCall do
65
65
 
66
66
  describe 'restricted view methods' do
67
67
  before(:each) do
68
- call = make_test_call
69
- ActiveCall.client_invoke(call)
70
- @client_call = ActiveCall.new(call, @pass_through,
68
+ @call = make_test_call
69
+ ActiveCall.client_invoke(@call)
70
+ @client_call = ActiveCall.new(@call, @pass_through,
71
71
  @pass_through, deadline)
72
72
  end
73
73
 
74
+ after(:each) do
75
+ # terminate the RPC that was started in before(:each)
76
+ recvd_rpc = @received_rpcs_queue.pop
77
+ recvd_call = recvd_rpc.call
78
+ recvd_call.run_batch(CallOps::SEND_INITIAL_METADATA => nil)
79
+ @call.run_batch(CallOps::RECV_INITIAL_METADATA => nil)
80
+ send_and_receive_close_and_status(@call, recvd_call)
81
+ end
82
+
74
83
  describe '#multi_req_view' do
75
84
  it 'exposes a fixed subset of the ActiveCall.methods' do
76
85
  want = %w(cancelled?, deadline, each_remote_read, metadata, \
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.50.0
4
+ version: 1.51.0
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - gRPC Authors
8
8
  autorequire:
9
9
  bindir: src/ruby/bin
10
10
  cert_chain: []
11
- date: 2022-10-14 00:00:00.000000000 Z
11
+ date: 2022-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf