grpc 1.60.0.pre1-aarch64-linux → 1.62.0.pre1-aarch64-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/ext/grpc/extconf.rb +0 -1
- data/src/ruby/ext/grpc/rb_channel.c +11 -5
- data/src/ruby/ext/grpc/rb_channel_args.c +3 -1
- data/src/ruby/ext/grpc/rb_event_thread.c +9 -3
- data/src/ruby/ext/grpc/rb_grpc.c +0 -1
- data/src/ruby/ext/grpc/rb_grpc.h +0 -2
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +4 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +6 -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/3.3/grpc_c.so +0 -0
- data/src/ruby/lib/grpc/version.rb +1 -1
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ceb08201968ac610f3d8eec5ddf883999dc843b4ab80e6edc1c45ff7ecae534
|
4
|
+
data.tar.gz: 5b595e1c0a15e525789860ac15647366e0bf785f9285803594b8023d0e844ea2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8cb17338a9454190eb9801ed81ed3f49d49067ffd94212d938b116b76d4a4f871db57e0ad492d98d966a08179fa1c8e77fdc4fcf205affebd16d69a07b0e05a
|
7
|
+
data.tar.gz: cc27b03a3738afc73a28171c1581601769be549b2b642858a0504424042c66ebaf477a7e06163dddde0eed5a8f366b1aba4e5defd05036611d26c9ae5328e238
|
@@ -117,6 +117,7 @@ static bg_watched_channel* bg_watched_channel_list_create_and_add(
|
|
117
117
|
grpc_channel* channel);
|
118
118
|
static void bg_watched_channel_list_free_and_remove(bg_watched_channel* bg);
|
119
119
|
static void run_poll_channels_loop_unblocking_func(void* arg);
|
120
|
+
static void* run_poll_channels_loop_unblocking_func_wrapper(void* arg);
|
120
121
|
|
121
122
|
// Needs to be called under global_connection_polling_mu
|
122
123
|
static void grpc_rb_channel_watch_connection_state_op_complete(
|
@@ -689,8 +690,12 @@ static void* run_poll_channels_loop_no_gil(void* arg) {
|
|
689
690
|
return NULL;
|
690
691
|
}
|
691
692
|
|
692
|
-
// Notify the channel polling loop to cleanup and shutdown.
|
693
693
|
static void run_poll_channels_loop_unblocking_func(void* arg) {
|
694
|
+
run_poll_channels_loop_unblocking_func_wrapper(arg);
|
695
|
+
}
|
696
|
+
|
697
|
+
// Notify the channel polling loop to cleanup and shutdown.
|
698
|
+
static void* run_poll_channels_loop_unblocking_func_wrapper(void* arg) {
|
694
699
|
bg_watched_channel* bg = NULL;
|
695
700
|
(void)arg;
|
696
701
|
|
@@ -701,7 +706,7 @@ static void run_poll_channels_loop_unblocking_func(void* arg) {
|
|
701
706
|
// early out after first time through
|
702
707
|
if (g_abort_channel_polling) {
|
703
708
|
gpr_mu_unlock(&global_connection_polling_mu);
|
704
|
-
return;
|
709
|
+
return NULL;
|
705
710
|
}
|
706
711
|
g_abort_channel_polling = 1;
|
707
712
|
|
@@ -723,10 +728,11 @@ static void run_poll_channels_loop_unblocking_func(void* arg) {
|
|
723
728
|
gpr_log(GPR_DEBUG,
|
724
729
|
"GRPC_RUBY: run_poll_channels_loop_unblocking_func - end aborting "
|
725
730
|
"connection polling");
|
731
|
+
return NULL;
|
726
732
|
}
|
727
733
|
|
728
734
|
// Poll channel connectivity states in background thread without the GIL.
|
729
|
-
static VALUE run_poll_channels_loop(
|
735
|
+
static VALUE run_poll_channels_loop(void* arg) {
|
730
736
|
(void)arg;
|
731
737
|
gpr_log(
|
732
738
|
GPR_DEBUG,
|
@@ -783,8 +789,8 @@ void grpc_rb_channel_polling_thread_stop() {
|
|
783
789
|
"GRPC_RUBY: channel polling thread stop: thread was not started");
|
784
790
|
return;
|
785
791
|
}
|
786
|
-
rb_thread_call_without_gvl(
|
787
|
-
NULL);
|
792
|
+
rb_thread_call_without_gvl(run_poll_channels_loop_unblocking_func_wrapper,
|
793
|
+
NULL, NULL, NULL);
|
788
794
|
rb_funcall(g_channel_polling_thread, rb_intern("join"), 0);
|
789
795
|
// state associated with the channel polling thread is destroyed, reset so
|
790
796
|
// we can start again later
|
@@ -71,7 +71,7 @@ static int grpc_rb_channel_create_in_process_add_args_hash_cb(VALUE key,
|
|
71
71
|
return ST_STOP;
|
72
72
|
}
|
73
73
|
|
74
|
-
args->args[args->num_args - 1].key = (
|
74
|
+
args->args[args->num_args - 1].key = gpr_strdup(the_key);
|
75
75
|
switch (TYPE(val)) {
|
76
76
|
case T_SYMBOL:
|
77
77
|
args->args[args->num_args - 1].type = GRPC_ARG_STRING;
|
@@ -163,6 +163,8 @@ void grpc_rb_channel_args_destroy(grpc_channel_args* args) {
|
|
163
163
|
GPR_ASSERT(args != NULL);
|
164
164
|
if (args->args == NULL) return;
|
165
165
|
for (int i = 0; i < args->num_args; i++) {
|
166
|
+
// the key was created with gpr_strdup
|
167
|
+
gpr_free(args->args[i].key);
|
166
168
|
if (args->args[i].type == GRPC_ARG_STRING) {
|
167
169
|
// we own string pointers, which were created with gpr_strdup
|
168
170
|
gpr_free(args->args[i].value.string);
|
@@ -106,17 +106,22 @@ static void* grpc_rb_wait_for_event_no_gil(void* param) {
|
|
106
106
|
return NULL;
|
107
107
|
}
|
108
108
|
|
109
|
-
static void
|
109
|
+
static void* grpc_rb_event_unblocking_func_wrapper(void* arg) {
|
110
110
|
(void)arg;
|
111
111
|
gpr_mu_lock(&event_queue.mu);
|
112
112
|
event_queue.abort = true;
|
113
113
|
gpr_cv_signal(&event_queue.cv);
|
114
114
|
gpr_mu_unlock(&event_queue.mu);
|
115
|
+
return NULL;
|
116
|
+
}
|
117
|
+
|
118
|
+
static void grpc_rb_event_unblocking_func(void* arg) {
|
119
|
+
grpc_rb_event_unblocking_func_wrapper(arg);
|
115
120
|
}
|
116
121
|
|
117
122
|
/* This is the implementation of the thread that handles auth metadata plugin
|
118
123
|
* events */
|
119
|
-
static VALUE grpc_rb_event_thread(
|
124
|
+
static VALUE grpc_rb_event_thread(void* arg) {
|
120
125
|
grpc_rb_event* event;
|
121
126
|
(void)arg;
|
122
127
|
while (true) {
|
@@ -155,7 +160,8 @@ void grpc_rb_event_queue_thread_stop() {
|
|
155
160
|
"GRPC_RUBY: call credentials thread stop: thread not running");
|
156
161
|
return;
|
157
162
|
}
|
158
|
-
rb_thread_call_without_gvl(
|
163
|
+
rb_thread_call_without_gvl(grpc_rb_event_unblocking_func_wrapper, NULL, NULL,
|
164
|
+
NULL);
|
159
165
|
rb_funcall(g_event_thread, rb_intern("join"), 0);
|
160
166
|
g_event_thread = Qnil;
|
161
167
|
}
|
data/src/ruby/ext/grpc/rb_grpc.c
CHANGED
data/src/ruby/ext/grpc/rb_grpc.h
CHANGED
@@ -180,6 +180,8 @@ grpc_tls_certificate_provider_static_data_create_type grpc_tls_certificate_provi
|
|
180
180
|
grpc_tls_certificate_provider_file_watcher_create_type grpc_tls_certificate_provider_file_watcher_create_import;
|
181
181
|
grpc_tls_certificate_provider_release_type grpc_tls_certificate_provider_release_import;
|
182
182
|
grpc_tls_credentials_options_create_type grpc_tls_credentials_options_create_import;
|
183
|
+
grpc_tls_credentials_options_set_min_tls_version_type grpc_tls_credentials_options_set_min_tls_version_import;
|
184
|
+
grpc_tls_credentials_options_set_max_tls_version_type grpc_tls_credentials_options_set_max_tls_version_import;
|
183
185
|
grpc_tls_credentials_options_copy_type grpc_tls_credentials_options_copy_import;
|
184
186
|
grpc_tls_credentials_options_destroy_type grpc_tls_credentials_options_destroy_import;
|
185
187
|
grpc_tls_credentials_options_set_certificate_provider_type grpc_tls_credentials_options_set_certificate_provider_import;
|
@@ -469,6 +471,8 @@ void grpc_rb_load_imports(HMODULE library) {
|
|
469
471
|
grpc_tls_certificate_provider_file_watcher_create_import = (grpc_tls_certificate_provider_file_watcher_create_type) GetProcAddress(library, "grpc_tls_certificate_provider_file_watcher_create");
|
470
472
|
grpc_tls_certificate_provider_release_import = (grpc_tls_certificate_provider_release_type) GetProcAddress(library, "grpc_tls_certificate_provider_release");
|
471
473
|
grpc_tls_credentials_options_create_import = (grpc_tls_credentials_options_create_type) GetProcAddress(library, "grpc_tls_credentials_options_create");
|
474
|
+
grpc_tls_credentials_options_set_min_tls_version_import = (grpc_tls_credentials_options_set_min_tls_version_type) GetProcAddress(library, "grpc_tls_credentials_options_set_min_tls_version");
|
475
|
+
grpc_tls_credentials_options_set_max_tls_version_import = (grpc_tls_credentials_options_set_max_tls_version_type) GetProcAddress(library, "grpc_tls_credentials_options_set_max_tls_version");
|
472
476
|
grpc_tls_credentials_options_copy_import = (grpc_tls_credentials_options_copy_type) GetProcAddress(library, "grpc_tls_credentials_options_copy");
|
473
477
|
grpc_tls_credentials_options_destroy_import = (grpc_tls_credentials_options_destroy_type) GetProcAddress(library, "grpc_tls_credentials_options_destroy");
|
474
478
|
grpc_tls_credentials_options_set_certificate_provider_import = (grpc_tls_credentials_options_set_certificate_provider_type) GetProcAddress(library, "grpc_tls_credentials_options_set_certificate_provider");
|
@@ -515,6 +515,12 @@ extern grpc_tls_certificate_provider_release_type grpc_tls_certificate_provider_
|
|
515
515
|
typedef grpc_tls_credentials_options*(*grpc_tls_credentials_options_create_type)(void);
|
516
516
|
extern grpc_tls_credentials_options_create_type grpc_tls_credentials_options_create_import;
|
517
517
|
#define grpc_tls_credentials_options_create grpc_tls_credentials_options_create_import
|
518
|
+
typedef void(*grpc_tls_credentials_options_set_min_tls_version_type)(grpc_tls_credentials_options* options, grpc_tls_version min_tls_version);
|
519
|
+
extern grpc_tls_credentials_options_set_min_tls_version_type grpc_tls_credentials_options_set_min_tls_version_import;
|
520
|
+
#define grpc_tls_credentials_options_set_min_tls_version grpc_tls_credentials_options_set_min_tls_version_import
|
521
|
+
typedef void(*grpc_tls_credentials_options_set_max_tls_version_type)(grpc_tls_credentials_options* options, grpc_tls_version max_tls_version);
|
522
|
+
extern grpc_tls_credentials_options_set_max_tls_version_type grpc_tls_credentials_options_set_max_tls_version_import;
|
523
|
+
#define grpc_tls_credentials_options_set_max_tls_version grpc_tls_credentials_options_set_max_tls_version_import
|
518
524
|
typedef grpc_tls_credentials_options*(*grpc_tls_credentials_options_copy_type)(grpc_tls_credentials_options* options);
|
519
525
|
extern grpc_tls_credentials_options_copy_type grpc_tls_credentials_options_copy_import;
|
520
526
|
#define grpc_tls_credentials_options_copy grpc_tls_credentials_options_copy_import
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
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.62.0.pre1
|
5
5
|
platform: aarch64-linux
|
6
6
|
authors:
|
7
7
|
- gRPC Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: src/ruby/bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '1.
|
131
|
+
version: '1.4'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '1.
|
138
|
+
version: '1.4'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rspec
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -253,6 +253,7 @@ files:
|
|
253
253
|
- src/ruby/lib/grpc/3.0/grpc_c.so
|
254
254
|
- src/ruby/lib/grpc/3.1/grpc_c.so
|
255
255
|
- src/ruby/lib/grpc/3.2/grpc_c.so
|
256
|
+
- src/ruby/lib/grpc/3.3/grpc_c.so
|
256
257
|
- src/ruby/lib/grpc/core/status_codes.rb
|
257
258
|
- src/ruby/lib/grpc/core/time_consts.rb
|
258
259
|
- src/ruby/lib/grpc/errors.rb
|
@@ -345,14 +346,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
345
346
|
version: '2.7'
|
346
347
|
- - "<"
|
347
348
|
- !ruby/object:Gem::Version
|
348
|
-
version: 3.
|
349
|
+
version: 3.4.dev
|
349
350
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
350
351
|
requirements:
|
351
|
-
- - "
|
352
|
+
- - ">="
|
352
353
|
- !ruby/object:Gem::Version
|
353
|
-
version:
|
354
|
+
version: '0'
|
354
355
|
requirements: []
|
355
|
-
rubygems_version: 3.
|
356
|
+
rubygems_version: 3.5.6
|
356
357
|
signing_key:
|
357
358
|
specification_version: 4
|
358
359
|
summary: GRPC system in Ruby
|