grpc 1.57.0-x86_64-linux → 1.58.0.pre1-x86_64-linux
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/src/ruby/lib/grpc/2.6/grpc_c.so +0 -0
- data/src/ruby/lib/grpc/2.7/grpc_c.so +0 -0
- data/src/ruby/lib/grpc/3.0/grpc_c.so +0 -0
- data/src/ruby/lib/grpc/3.1/grpc_c.so +0 -0
- data/src/ruby/lib/grpc/3.2/grpc_c.so +0 -0
- data/src/ruby/lib/grpc/generic/active_call.rb +9 -14
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/pb/test/client.rb +16 -0
- data/src/ruby/spec/generic/rpc_server_spec.rb +3 -3
- metadata +9 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3811bb35c8d851b613b4bf2decbebb7269e85ced302decd255c05f93d58fef0
|
4
|
+
data.tar.gz: e7ad146733204663290faa79ea422d1b9606d289fb9c4e42abfb0499d32cd4d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27b8c6efed253a84fb77fee8cbb6bd87e5368ad96cb82d9b89b56216ab9d4b786f428e01598259ff1c3ab02899a610938bba37b716f9fe167a9734bdf8532d4e
|
7
|
+
data.tar.gz: 9bbd43b409265e3ef0ab20991eaa2e04bae4a367f28f60c11bec85e9f6c53288671a0a4b4bdbf56d1a176c24ae149027f42237677bf9af10864237b7a7f9b009
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -232,17 +232,16 @@ module GRPC
|
|
232
232
|
def server_unary_response(req, trailing_metadata: {},
|
233
233
|
code: Core::StatusCodes::OK, details: 'OK')
|
234
234
|
ops = {}
|
235
|
+
ops[SEND_MESSAGE] = @marshal.call(req)
|
236
|
+
ops[SEND_STATUS_FROM_SERVER] = Struct::Status.new(
|
237
|
+
code, details, trailing_metadata)
|
238
|
+
ops[RECV_CLOSE_ON_SERVER] = nil
|
239
|
+
|
235
240
|
@send_initial_md_mutex.synchronize do
|
236
241
|
ops[SEND_INITIAL_METADATA] = @metadata_to_send unless @metadata_sent
|
237
242
|
@metadata_sent = true
|
238
243
|
end
|
239
244
|
|
240
|
-
payload = @marshal.call(req)
|
241
|
-
ops[SEND_MESSAGE] = payload
|
242
|
-
ops[SEND_STATUS_FROM_SERVER] = Struct::Status.new(
|
243
|
-
code, details, trailing_metadata)
|
244
|
-
ops[RECV_CLOSE_ON_SERVER] = nil
|
245
|
-
|
246
245
|
@call.run_batch(ops)
|
247
246
|
set_output_stream_done
|
248
247
|
end
|
@@ -262,6 +261,9 @@ module GRPC
|
|
262
261
|
@metadata_received = true
|
263
262
|
end
|
264
263
|
get_message_from_batch_result(batch_result)
|
264
|
+
rescue GRPC::Core::CallError => e
|
265
|
+
GRPC.logger.info("remote_read: #{e}")
|
266
|
+
nil
|
265
267
|
end
|
266
268
|
|
267
269
|
def get_message_from_batch_result(recv_message_batch_result)
|
@@ -328,14 +330,7 @@ module GRPC
|
|
328
330
|
def each_remote_read_then_finish
|
329
331
|
return enum_for(:each_remote_read_then_finish) unless block_given?
|
330
332
|
loop do
|
331
|
-
resp =
|
332
|
-
begin
|
333
|
-
remote_read
|
334
|
-
rescue GRPC::Core::CallError => e
|
335
|
-
GRPC.logger.warn("In each_remote_read_then_finish: #{e}")
|
336
|
-
nil
|
337
|
-
end
|
338
|
-
|
333
|
+
resp = remote_read
|
339
334
|
break if resp.nil? # the last response was received
|
340
335
|
yield resp
|
341
336
|
end
|
data/src/ruby/pb/test/client.rb
CHANGED
@@ -649,6 +649,22 @@ class NamedTests
|
|
649
649
|
|
650
650
|
end
|
651
651
|
|
652
|
+
def special_status_message
|
653
|
+
code = GRPC::Core::StatusCodes::UNKNOWN
|
654
|
+
message = "\t\ntest with whitespace\r\nand Unicode BMP ☺ and non-BMP 😈\t\n"
|
655
|
+
req = SimpleRequest.new(
|
656
|
+
response_status: EchoStatus.new(code: code, message: message))
|
657
|
+
begin
|
658
|
+
resp = @stub.unary_call(req)
|
659
|
+
fail AssertionError, "GRPC::Unknown should have been raised."
|
660
|
+
rescue GRPC::Unknown => e
|
661
|
+
if e.details.force_encoding("UTF-8") != message
|
662
|
+
fail AssertionError,
|
663
|
+
"Expected message #{message}. Received: #{e.details}"
|
664
|
+
end
|
665
|
+
end
|
666
|
+
end
|
667
|
+
|
652
668
|
def all
|
653
669
|
all_methods = NamedTests.instance_methods(false).map(&:to_s)
|
654
670
|
all_methods.each do |m|
|
@@ -668,9 +668,9 @@ describe GRPC::RpcServer do
|
|
668
668
|
def check_multi_req_view_of_finished_call(call)
|
669
669
|
common_check_of_finished_server_call(call)
|
670
670
|
|
671
|
-
|
672
|
-
|
673
|
-
|
671
|
+
l = []
|
672
|
+
call.each_remote_read.each { |r| l << r }
|
673
|
+
expect(l.size).to eq(0)
|
674
674
|
end
|
675
675
|
|
676
676
|
def common_check_of_finished_server_call(call)
|
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.58.0.pre1
|
5
5
|
platform: x86_64-linux
|
6
6
|
authors:
|
7
7
|
- gRPC Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: src/ruby/bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -182,22 +182,16 @@ dependencies:
|
|
182
182
|
name: googleauth
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- - "
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: 0.5.1
|
188
|
-
- - "<"
|
185
|
+
- - "~>"
|
189
186
|
- !ruby/object:Gem::Version
|
190
|
-
version: '0
|
187
|
+
version: '1.0'
|
191
188
|
type: :development
|
192
189
|
prerelease: false
|
193
190
|
version_requirements: !ruby/object:Gem::Requirement
|
194
191
|
requirements:
|
195
|
-
- - "
|
196
|
-
- !ruby/object:Gem::Version
|
197
|
-
version: 0.5.1
|
198
|
-
- - "<"
|
192
|
+
- - "~>"
|
199
193
|
- !ruby/object:Gem::Version
|
200
|
-
version: '0
|
194
|
+
version: '1.0'
|
201
195
|
description: Send RPCs from Ruby using GRPC
|
202
196
|
email: grpc-io@googlegroups.com
|
203
197
|
executables: []
|
@@ -355,11 +349,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
355
349
|
version: 3.3.dev
|
356
350
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
357
351
|
requirements:
|
358
|
-
- - "
|
352
|
+
- - ">"
|
359
353
|
- !ruby/object:Gem::Version
|
360
|
-
version:
|
354
|
+
version: 1.3.1
|
361
355
|
requirements: []
|
362
|
-
rubygems_version: 3.4.
|
356
|
+
rubygems_version: 3.4.19
|
363
357
|
signing_key:
|
364
358
|
specification_version: 4
|
365
359
|
summary: GRPC system in Ruby
|