grpc 1.37.0 → 1.37.1

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: 9a942cb97d159406568fd5e37a5201e123e05807c9cca464741871366560ab59
4
- data.tar.gz: 6d24ea95797e7127ebf7e519603dc13090ebaafc76978d4dc352b9ee461bf6b7
3
+ metadata.gz: 3b627752ca7c7657c61fef89ab9751073ff1a496bf33598ae91f6d12c9f73284
4
+ data.tar.gz: 5f1ed79aaec29a0957859f6fd9192bb6736c88890bc82596a2d6e2339aa7b0ad
5
5
  SHA512:
6
- metadata.gz: 436f889dd37933080a66095ef593575d9d85d8b33789e75efe1a72ea89af23777709464b2afa281e701efa72533ff98a2c8c8e9f6c72971b7d8a929b75b1403a
7
- data.tar.gz: 9f65d3f929a3c7846e502a431de171378c0d9bfb130bc623169641ede207476c653b44f2fc1be350f7c32606bcbcca57bbe0394b745eed0222e0ff4e553b0804
6
+ metadata.gz: 3eefaee5b14ecbb4b132e15c769ca54f7367a61a4dbb9fce29014a6f7e9f56c9b4a3d5e1fb792db04034772ee0e7be1bf8eb130bf2024e929ce02a5ffab50090
7
+ data.tar.gz: 5acadb28b8ec1b6742c4e48e75a87e10053ea87454662a846f0c588d1102b695098fcbc0add3c6ceac0f743198d9ffaace8684e78d9630a6bb3a4638f5de54f7
data/Makefile CHANGED
@@ -455,8 +455,8 @@ Q = @
455
455
  endif
456
456
 
457
457
  CORE_VERSION = 15.0.0
458
- CPP_VERSION = 1.37.0
459
- CSHARP_VERSION = 2.37.0
458
+ CPP_VERSION = 1.37.1
459
+ CSHARP_VERSION = 2.37.1
460
460
 
461
461
  CPPFLAGS_NO_ARCH += $(addprefix -I, $(INCLUDES)) $(addprefix -D, $(DEFINES))
462
462
  CPPFLAGS += $(CPPFLAGS_NO_ARCH) $(ARCH_FLAGS)
@@ -208,21 +208,24 @@ class CallData::ResumeBatchCanceller {
208
208
  auto* self = static_cast<ResumeBatchCanceller*>(arg);
209
209
  auto* chand = static_cast<ChannelData*>(self->elem_->channel_data);
210
210
  auto* calld = static_cast<CallData*>(self->elem_->call_data);
211
- MutexLock lock(&calld->delay_mu_);
212
- if (GRPC_TRACE_FLAG_ENABLED(grpc_fault_injection_filter_trace)) {
213
- gpr_log(GPR_INFO,
214
- "chand=%p calld=%p: cancelling schdueled pick: "
215
- "error=%s self=%p calld->resume_batch_canceller_=%p",
216
- chand, calld, grpc_error_string(error), self,
217
- calld->resume_batch_canceller_);
218
- }
219
- if (error != GRPC_ERROR_NONE && calld->resume_batch_canceller_ == self) {
220
- // Cancel the delayed pick.
221
- calld->CancelDelayTimer();
222
- calld->FaultInjectionFinished();
223
- // Fail pending batches on the call.
224
- grpc_transport_stream_op_batch_finish_with_failure(
225
- calld->delayed_batch_, GRPC_ERROR_REF(error), calld->call_combiner_);
211
+ {
212
+ MutexLock lock(&calld->delay_mu_);
213
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_fault_injection_filter_trace)) {
214
+ gpr_log(GPR_INFO,
215
+ "chand=%p calld=%p: cancelling schdueled pick: "
216
+ "error=%s self=%p calld->resume_batch_canceller_=%p",
217
+ chand, calld, grpc_error_string(error), self,
218
+ calld->resume_batch_canceller_);
219
+ }
220
+ if (error != GRPC_ERROR_NONE && calld->resume_batch_canceller_ == self) {
221
+ // Cancel the delayed pick.
222
+ calld->CancelDelayTimer();
223
+ calld->FaultInjectionFinished();
224
+ // Fail pending batches on the call.
225
+ grpc_transport_stream_op_batch_finish_with_failure(
226
+ calld->delayed_batch_, GRPC_ERROR_REF(error),
227
+ calld->call_combiner_);
228
+ }
226
229
  }
227
230
  GRPC_CALL_STACK_UNREF(calld->owning_call_, "ResumeBatchCanceller");
228
231
  delete self;
@@ -465,9 +468,11 @@ void CallData::HijackedRecvTrailingMetadataReady(void* arg, grpc_error* error) {
465
468
  if (calld->abort_error_ != GRPC_ERROR_NONE) {
466
469
  error = grpc_error_add_child(GRPC_ERROR_REF(error),
467
470
  GRPC_ERROR_REF(calld->abort_error_));
468
- Closure::Run(DEBUG_LOCATION, calld->original_recv_trailing_metadata_ready_,
469
- error);
471
+ } else {
472
+ error = GRPC_ERROR_REF(error);
470
473
  }
474
+ Closure::Run(DEBUG_LOCATION, calld->original_recv_trailing_metadata_ready_,
475
+ error);
471
476
  }
472
477
 
473
478
  } // namespace
@@ -300,6 +300,13 @@ static grpc_error* server_auth_init_channel_elem(
300
300
  GPR_ASSERT(!args->is_last);
301
301
  grpc_auth_context* auth_context =
302
302
  grpc_find_auth_context_in_args(args->channel_args);
303
+ if (auth_context == nullptr) {
304
+ grpc_error* error = GRPC_ERROR_CREATE_FROM_STATIC_STRING(
305
+ "No authorization context found. This might be a TRANSIENT failure due "
306
+ "to certificates not having been loaded yet.");
307
+ gpr_log(GPR_DEBUG, "%s", grpc_error_string(error));
308
+ return error;
309
+ }
303
310
  GPR_ASSERT(auth_context != nullptr);
304
311
  grpc_server_credentials* creds =
305
312
  grpc_find_server_credentials_in_args(args->channel_args);
@@ -14,5 +14,5 @@
14
14
 
15
15
  # GRPC contains the General RPC module.
16
16
  module GRPC
17
- VERSION = '1.37.0'
17
+ VERSION = '1.37.1'
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.37.0
4
+ version: 1.37.1
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: 2021-04-07 00:00:00.000000000 Z
11
+ date: 2021-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -2429,51 +2429,51 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2429
2429
  - !ruby/object:Gem::Version
2430
2430
  version: '0'
2431
2431
  requirements: []
2432
- rubygems_version: 3.2.15
2432
+ rubygems_version: 3.2.16
2433
2433
  signing_key:
2434
2434
  specification_version: 4
2435
2435
  summary: GRPC system in Ruby
2436
2436
  test_files:
2437
- - src/ruby/spec/generic/client_stub_spec.rb
2438
- - src/ruby/spec/generic/client_interceptors_spec.rb
2439
- - src/ruby/spec/generic/rpc_server_spec.rb
2440
- - src/ruby/spec/generic/server_interceptors_spec.rb
2441
- - src/ruby/spec/generic/rpc_desc_spec.rb
2442
- - src/ruby/spec/generic/rpc_server_pool_spec.rb
2443
- - src/ruby/spec/generic/interceptor_registry_spec.rb
2444
- - src/ruby/spec/generic/service_spec.rb
2445
- - src/ruby/spec/generic/active_call_spec.rb
2446
- - src/ruby/spec/spec_helper.rb
2437
+ - src/ruby/spec/call_spec.rb
2447
2438
  - src/ruby/spec/channel_credentials_spec.rb
2448
- - src/ruby/spec/call_credentials_spec.rb
2449
- - src/ruby/spec/testdata/client.pem
2439
+ - src/ruby/spec/time_consts_spec.rb
2440
+ - src/ruby/spec/support/services.rb
2441
+ - src/ruby/spec/support/helpers.rb
2442
+ - src/ruby/spec/testdata/README
2443
+ - src/ruby/spec/testdata/server1.pem
2450
2444
  - src/ruby/spec/testdata/ca.pem
2451
2445
  - src/ruby/spec/testdata/server1.key
2446
+ - src/ruby/spec/testdata/client.pem
2452
2447
  - src/ruby/spec/testdata/client.key
2453
- - src/ruby/spec/testdata/server1.pem
2454
- - src/ruby/spec/testdata/README
2448
+ - src/ruby/spec/google_rpc_status_utils_spec.rb
2455
2449
  - src/ruby/spec/channel_spec.rb
2456
- - src/ruby/spec/server_credentials_spec.rb
2457
- - src/ruby/spec/error_sanity_spec.rb
2458
- - src/ruby/spec/pb/codegen/grpc/testing/same_ruby_package_service_name.proto
2450
+ - src/ruby/spec/debug_message_spec.rb
2451
+ - src/ruby/spec/channel_connection_spec.rb
2452
+ - src/ruby/spec/errors_spec.rb
2453
+ - src/ruby/spec/pb/health/checker_spec.rb
2454
+ - src/ruby/spec/pb/duplicate/codegen_spec.rb
2455
+ - src/ruby/spec/pb/codegen/package_option_spec.rb
2456
+ - src/ruby/spec/pb/codegen/grpc/testing/package_options.proto
2459
2457
  - src/ruby/spec/pb/codegen/grpc/testing/package_options_import2.proto
2458
+ - src/ruby/spec/pb/codegen/grpc/testing/same_package_service_name.proto
2459
+ - src/ruby/spec/pb/codegen/grpc/testing/same_ruby_package_service_name.proto
2460
2460
  - src/ruby/spec/pb/codegen/grpc/testing/package_options_import.proto
2461
2461
  - src/ruby/spec/pb/codegen/grpc/testing/package_options_ruby_style.proto
2462
- - src/ruby/spec/pb/codegen/grpc/testing/same_package_service_name.proto
2463
- - src/ruby/spec/pb/codegen/grpc/testing/package_options.proto
2464
- - src/ruby/spec/pb/codegen/package_option_spec.rb
2465
- - src/ruby/spec/pb/duplicate/codegen_spec.rb
2466
- - src/ruby/spec/pb/health/checker_spec.rb
2467
- - src/ruby/spec/channel_connection_spec.rb
2468
2462
  - src/ruby/spec/client_auth_spec.rb
2469
- - src/ruby/spec/time_consts_spec.rb
2470
- - src/ruby/spec/debug_message_spec.rb
2471
- - src/ruby/spec/call_spec.rb
2472
- - src/ruby/spec/user_agent_spec.rb
2473
- - src/ruby/spec/support/helpers.rb
2474
- - src/ruby/spec/support/services.rb
2463
+ - src/ruby/spec/generic/service_spec.rb
2464
+ - src/ruby/spec/generic/client_interceptors_spec.rb
2465
+ - src/ruby/spec/generic/server_interceptors_spec.rb
2466
+ - src/ruby/spec/generic/rpc_desc_spec.rb
2467
+ - src/ruby/spec/generic/rpc_server_spec.rb
2468
+ - src/ruby/spec/generic/client_stub_spec.rb
2469
+ - src/ruby/spec/generic/rpc_server_pool_spec.rb
2470
+ - src/ruby/spec/generic/interceptor_registry_spec.rb
2471
+ - src/ruby/spec/generic/active_call_spec.rb
2472
+ - src/ruby/spec/server_spec.rb
2473
+ - src/ruby/spec/call_credentials_spec.rb
2474
+ - src/ruby/spec/error_sanity_spec.rb
2475
+ - src/ruby/spec/server_credentials_spec.rb
2476
+ - src/ruby/spec/spec_helper.rb
2475
2477
  - src/ruby/spec/compression_options_spec.rb
2476
- - src/ruby/spec/google_rpc_status_utils_spec.rb
2478
+ - src/ruby/spec/user_agent_spec.rb
2477
2479
  - src/ruby/spec/client_server_spec.rb
2478
- - src/ruby/spec/server_spec.rb
2479
- - src/ruby/spec/errors_spec.rb