grpc 1.57.0.pre1 → 1.57.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08fb6122fd3a0cedeeeef0d9e249b31a35957422c6944c061337a6bbc54cfa48'
4
- data.tar.gz: 647ab8f344deb4c96097d1346ea4cf4c69d1e03f37438ffaee1eea0e54c46d87
3
+ metadata.gz: 65a034a326fa6a2d00c800b12bd3c2fefb4fcdaccc5a3b43d220ccea0686b119
4
+ data.tar.gz: 81c1d2e529371c8514de28c514d5558740a14c6f255b6199344955d0a5f437d2
5
5
  SHA512:
6
- metadata.gz: 88ff16fc87008c4d121060821589bc61bb13a00d9d42a5b9c8a5193c9b4f5e6b5732040b763c6d561bdc473886ec95b4be4a960765fdca35d721469ae7e6ba74
7
- data.tar.gz: 512f24969af0ad0bf2d9e5c65eacc5ea512e9e798a022b00d61437cafb93208db05994ee9bc619c23d5503d2a7f913e9c1c8a47ba2f9ca90f923e6569caaebf3
6
+ metadata.gz: 91fe2739a7dd9ba7e27384a06d896237af5250ad297c25e9479a54dd54e13d166726df2c4da09fd3573bd0f9efc1cf6d053b56dfb9e76f505f219ca46351a4dd
7
+ data.tar.gz: 9efc608e15f990286ddbfa7c0fd0e8cf0c786494a7daff254987b0c36adb42d90ae76b80e50e1ee22c7e8e4cde76bc1f46c7444e4d1125e05eddfdb4ba68146c
data/Makefile CHANGED
@@ -411,8 +411,8 @@ Q = @
411
411
  endif
412
412
 
413
413
  CORE_VERSION = 34.0.0
414
- CPP_VERSION = 1.57.0-pre1
415
- CSHARP_VERSION = 2.57.0-pre1
414
+ CPP_VERSION = 1.57.0
415
+ CSHARP_VERSION = 2.57.0
416
416
 
417
417
  CPPFLAGS_NO_ARCH += $(addprefix -I, $(INCLUDES)) $(addprefix -D, $(DEFINES))
418
418
  CPPFLAGS += $(CPPFLAGS_NO_ARCH) $(ARCH_FLAGS)
@@ -97,8 +97,6 @@ static bg_watched_channel* bg_watched_channel_list_head = NULL;
97
97
 
98
98
  static void grpc_rb_channel_try_register_connection_polling(
99
99
  bg_watched_channel* bg);
100
- static void* wait_until_channel_polling_thread_started_no_gil(void*);
101
- static void wait_until_channel_polling_thread_started_unblocking_func(void*);
102
100
  static void* channel_init_try_register_connection_polling_without_gil(
103
101
  void* arg);
104
102
 
@@ -111,7 +109,6 @@ static grpc_completion_queue* g_channel_polling_cq;
111
109
  static gpr_mu global_connection_polling_mu;
112
110
  static gpr_cv global_connection_polling_cv;
113
111
  static int g_abort_channel_polling = 0;
114
- static int g_channel_polling_thread_started = 0;
115
112
  static gpr_once g_once_init = GPR_ONCE_INIT;
116
113
  static VALUE g_channel_polling_thread = Qnil;
117
114
 
@@ -224,12 +221,6 @@ static VALUE grpc_rb_channel_init(int argc, VALUE* argv, VALUE self) {
224
221
  channel_init_try_register_stack stack;
225
222
 
226
223
  grpc_ruby_fork_guard();
227
- int stop_waiting_for_thread_start = 0;
228
- rb_thread_call_without_gvl(
229
- wait_until_channel_polling_thread_started_no_gil,
230
- &stop_waiting_for_thread_start,
231
- wait_until_channel_polling_thread_started_unblocking_func,
232
- &stop_waiting_for_thread_start);
233
224
  /* "3" == 3 mandatory args */
234
225
  rb_scan_args(argc, argv, "3", &target, &channel_args, &credentials);
235
226
 
@@ -286,7 +277,6 @@ static void* get_state_without_gil(void* arg) {
286
277
  get_state_stack* stack = (get_state_stack*)arg;
287
278
 
288
279
  gpr_mu_lock(&global_connection_polling_mu);
289
- GPR_ASSERT(g_abort_channel_polling || g_channel_polling_thread_started);
290
280
  if (stack->bg->channel_destroyed) {
291
281
  stack->out = GRPC_CHANNEL_SHUTDOWN;
292
282
  } else {
@@ -423,15 +413,8 @@ static void grpc_rb_channel_maybe_recreate_channel_after_fork(
423
413
  bg_watched_channel* bg = wrapper->bg_wrapped;
424
414
  if (bg->channel_destroyed) {
425
415
  // There must be one ref at this point, held by the ruby-level channel
426
- // object.
416
+ // object, drop this one here.
427
417
  GPR_ASSERT(bg->refcount == 1);
428
- // Wait for channel polling thread to re-initialize
429
- int stop_waiting_for_thread_start = 0;
430
- rb_thread_call_without_gvl(
431
- wait_until_channel_polling_thread_started_no_gil,
432
- &stop_waiting_for_thread_start,
433
- wait_until_channel_polling_thread_started_unblocking_func,
434
- &stop_waiting_for_thread_start);
435
418
  rb_thread_call_without_gvl(channel_safe_destroy_without_gil, bg, NULL,
436
419
  NULL);
437
420
  // re-create C-core channel
@@ -635,9 +618,6 @@ static void grpc_rb_channel_try_register_connection_polling(
635
618
  bg_watched_channel* bg) {
636
619
  grpc_connectivity_state conn_state;
637
620
  watch_state_op* op = NULL;
638
-
639
- GPR_ASSERT(g_channel_polling_thread_started || g_abort_channel_polling);
640
-
641
621
  if (bg->refcount == 0) {
642
622
  GPR_ASSERT(bg->channel_destroyed);
643
623
  bg_watched_channel_list_free_and_remove(bg);
@@ -647,7 +627,6 @@ static void grpc_rb_channel_try_register_connection_polling(
647
627
  if (bg->channel_destroyed || g_abort_channel_polling) {
648
628
  return;
649
629
  }
650
-
651
630
  conn_state = grpc_channel_check_connectivity_state(bg->channel, 0);
652
631
  if (conn_state == GRPC_CHANNEL_SHUTDOWN) {
653
632
  return;
@@ -655,7 +634,6 @@ static void grpc_rb_channel_try_register_connection_polling(
655
634
  GPR_ASSERT(bg_watched_channel_list_lookup(bg));
656
635
  // prevent bg from being free'd by GC while background thread is watching it
657
636
  bg->refcount++;
658
-
659
637
  op = gpr_zalloc(sizeof(watch_state_op));
660
638
  op->op_type = CONTINUOUS_WATCH;
661
639
  op->op.continuous_watch_callback_args.bg = bg;
@@ -678,9 +656,6 @@ static void* run_poll_channels_loop_no_gil(void* arg) {
678
656
  gpr_log(GPR_DEBUG, "GRPC_RUBY: run_poll_channels_loop_no_gil - begin");
679
657
 
680
658
  gpr_mu_lock(&global_connection_polling_mu);
681
- GPR_ASSERT(!g_abort_channel_polling);
682
- GPR_ASSERT(!g_channel_polling_thread_started);
683
- g_channel_polling_thread_started = 1;
684
659
  gpr_cv_broadcast(&global_connection_polling_cv);
685
660
  gpr_mu_unlock(&global_connection_polling_mu);
686
661
 
@@ -761,31 +736,6 @@ static VALUE run_poll_channels_loop(VALUE arg) {
761
736
  return Qnil;
762
737
  }
763
738
 
764
- static void* wait_until_channel_polling_thread_started_no_gil(void* arg) {
765
- int* stop_waiting = (int*)arg;
766
- gpr_log(GPR_DEBUG, "GRPC_RUBY: wait for channel polling thread to start");
767
- gpr_mu_lock(&global_connection_polling_mu);
768
- while (!g_channel_polling_thread_started && !g_abort_channel_polling &&
769
- !*stop_waiting) {
770
- gpr_cv_wait(&global_connection_polling_cv, &global_connection_polling_mu,
771
- gpr_inf_future(GPR_CLOCK_REALTIME));
772
- }
773
- gpr_mu_unlock(&global_connection_polling_mu);
774
-
775
- return NULL;
776
- }
777
-
778
- static void wait_until_channel_polling_thread_started_unblocking_func(
779
- void* arg) {
780
- int* stop_waiting = (int*)arg;
781
- gpr_mu_lock(&global_connection_polling_mu);
782
- gpr_log(GPR_DEBUG,
783
- "GRPC_RUBY: interrupt wait for channel polling thread to start");
784
- *stop_waiting = 1;
785
- gpr_cv_broadcast(&global_connection_polling_cv);
786
- gpr_mu_unlock(&global_connection_polling_mu);
787
- }
788
-
789
739
  static void* set_abort_channel_polling_without_gil(void* arg) {
790
740
  (void)arg;
791
741
  gpr_mu_lock(&global_connection_polling_mu);
@@ -814,7 +764,6 @@ void grpc_rb_channel_polling_thread_start() {
814
764
  gpr_once_init(&g_once_init, do_basic_init);
815
765
  GPR_ASSERT(!RTEST(g_channel_polling_thread));
816
766
  GPR_ASSERT(!g_abort_channel_polling);
817
- GPR_ASSERT(!g_channel_polling_thread_started);
818
767
  GPR_ASSERT(g_channel_polling_cq == NULL);
819
768
 
820
769
  g_channel_polling_cq = grpc_completion_queue_create_for_next(NULL);
@@ -841,7 +790,6 @@ void grpc_rb_channel_polling_thread_stop() {
841
790
  // we can start again later
842
791
  g_channel_polling_thread = Qnil;
843
792
  g_abort_channel_polling = false;
844
- g_channel_polling_thread_started = false;
845
793
  g_channel_polling_cq = NULL;
846
794
  }
847
795
 
@@ -14,5 +14,5 @@
14
14
 
15
15
  # GRPC contains the General RPC module.
16
16
  module GRPC
17
- VERSION = '1.57.0.pre1'
17
+ VERSION = '1.57.0'
18
18
  end
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.57.0.pre1
4
+ version: 1.57.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: 2023-07-24 00:00:00.000000000 Z
11
+ date: 2023-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -3257,11 +3257,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
3257
3257
  version: 2.5.0
3258
3258
  required_rubygems_version: !ruby/object:Gem::Requirement
3259
3259
  requirements:
3260
- - - ">"
3260
+ - - ">="
3261
3261
  - !ruby/object:Gem::Version
3262
- version: 1.3.1
3262
+ version: '0'
3263
3263
  requirements: []
3264
- rubygems_version: 3.4.17
3264
+ rubygems_version: 3.4.18
3265
3265
  signing_key:
3266
3266
  specification_version: 4
3267
3267
  summary: GRPC system in Ruby