grpc 1.72.0-x86_64-darwin → 1.74.0.pre2-x86_64-darwin
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/src/ruby/ext/grpc/extconf.rb +3 -1
- data/src/ruby/ext/grpc/rb_call.c +1 -8
- data/src/ruby/ext/grpc/rb_channel.c +72 -568
- data/src/ruby/ext/grpc/rb_channel.h +0 -3
- data/src/ruby/ext/grpc/rb_completion_queue.c +26 -14
- data/src/ruby/ext/grpc/rb_completion_queue.h +1 -7
- data/src/ruby/ext/grpc/rb_grpc.c +9 -5
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +1 -1
- data/src/ruby/ext/grpc/rb_loader.c +0 -4
- data/src/ruby/ext/grpc/rb_server.c +31 -50
- data/src/ruby/lib/grpc/3.1/grpc_c.bundle +0 -0
- data/src/ruby/lib/grpc/3.2/grpc_c.bundle +0 -0
- data/src/ruby/lib/grpc/3.3/grpc_c.bundle +0 -0
- data/src/ruby/lib/grpc/3.4/grpc_c.bundle +0 -0
- data/src/ruby/lib/grpc/generic/client_stub.rb +4 -4
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/spec/core_spec.rb +22 -0
- data/src/ruby/spec/generic/active_call_spec.rb +1 -1
- data/src/ruby/spec/generic/client_stub_spec.rb +2 -6
- data/src/ruby/spec/generic/rpc_server_spec.rb +1 -1
- metadata +5 -5
- data/grpc_c.64-msvcrt.ruby +0 -0
- data/src/ruby/lib/grpc/3.0/grpc_c.bundle +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 560e82a2f81e0906f78b10d286512307764b23bd350e45ba304fd0ff1f71a7de
|
4
|
+
data.tar.gz: c31d490c9a3ababb70ec232140c92eade4d7be3adb6a98af2da9c1483b94788d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 537825f8099968d1e9e74066248c7b2a37236daef02897344f2d358b82cd11c0f71c2ef5b498dc00207af9ec44e6506a5db61042257a9480fda19a231d38b853
|
7
|
+
data.tar.gz: 95c90e115db1c785a5a0f3513d626b5bee90b59fb5485a6535b2bdd1a5f80f500fdf892aaa6a12bf744a847feb56b2524a6637a88698258f8e1e2383b7262173
|
@@ -114,6 +114,8 @@ env_append 'CPPFLAGS', '-DGRPC_XDS_USER_AGENT_NAME_SUFFIX="\"RUBY\""'
|
|
114
114
|
require_relative '../../lib/grpc/version'
|
115
115
|
env_append 'CPPFLAGS', '-DGRPC_XDS_USER_AGENT_VERSION_SUFFIX="\"' + GRPC::VERSION + '\""'
|
116
116
|
env_append 'CPPFLAGS', '-DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1'
|
117
|
+
env_append 'CPPFLAGS', '-DGRPC_ENABLE_FORK_SUPPORT=1'
|
118
|
+
env_append 'CPPFLAGS', '-DGRPC_ENABLE_FORK_SUPPORT_DEFAULT=false'
|
117
119
|
|
118
120
|
output_dir = File.expand_path(RbConfig::CONFIG['topdir'])
|
119
121
|
grpc_lib_dir = File.join(output_dir, 'libs', grpc_config)
|
@@ -231,7 +233,7 @@ File.rename('Makefile.new', 'Makefile')
|
|
231
233
|
|
232
234
|
if grpc_config == 'opt'
|
233
235
|
File.open('Makefile.new', 'w') do |o|
|
234
|
-
o.puts 'hijack: all strip'
|
236
|
+
o.puts 'hijack: all strip remove_unused_artifacts'
|
235
237
|
o.puts
|
236
238
|
o.write(File.read('Makefile'))
|
237
239
|
o.puts
|
data/src/ruby/ext/grpc/rb_call.c
CHANGED
@@ -808,12 +808,6 @@ struct call_run_batch_args {
|
|
808
808
|
run_batch_stack* st;
|
809
809
|
};
|
810
810
|
|
811
|
-
static void cancel_call_unblock_func(void* arg) {
|
812
|
-
grpc_absl_log(GPR_DEBUG, "GRPC_RUBY: cancel_call_unblock_func");
|
813
|
-
grpc_call* call = (grpc_call*)arg;
|
814
|
-
grpc_call_cancel(call, NULL);
|
815
|
-
}
|
816
|
-
|
817
811
|
static VALUE grpc_rb_call_run_batch_try(VALUE value_args) {
|
818
812
|
grpc_rb_fork_unsafe_begin();
|
819
813
|
struct call_run_batch_args* args = (struct call_run_batch_args*)value_args;
|
@@ -836,8 +830,7 @@ static VALUE grpc_rb_call_run_batch_try(VALUE value_args) {
|
|
836
830
|
grpc_call_error_detail_of(err), err);
|
837
831
|
}
|
838
832
|
ev = rb_completion_queue_pluck(args->call->queue, tag,
|
839
|
-
gpr_inf_future(GPR_CLOCK_REALTIME),
|
840
|
-
cancel_call_unblock_func, args->call->wrapped);
|
833
|
+
gpr_inf_future(GPR_CLOCK_REALTIME), "call op");
|
841
834
|
if (!ev.success) {
|
842
835
|
rb_raise(grpc_rb_eCallError, "call#run_batch failed somehow");
|
843
836
|
}
|