grpc 1.14.0 → 1.14.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 +4 -4
- data/Makefile +2 -2
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +3 -14
- data/src/core/ext/transport/chttp2/transport/internal.h +3 -10
- data/src/core/ext/transport/chttp2/transport/stream_lists.cc +0 -17
- data/src/ruby/lib/grpc/version.rb +1 -1
- metadata +24 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 065de09079ae423e3dcd9712c95d3d34da1b8e1cd4354d9d3420ef76f5449a5e
|
4
|
+
data.tar.gz: e887a242689cab6897316679676e83e2fe7a54787304192cc6fc56c2b114f5aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b5d84d7e395f3e1866f4c7f1a1d5a02c6c3e4497855e1edbac3e056743066805cf1d74c0f2511dab846030d3acfbd68400c6fd7b79a2843da19f13abb6e7c0a
|
7
|
+
data.tar.gz: a0b7664624f5df00c51980f4cba7eff332d63212f04d4f2e749413e0c3abb1f882f32d69ba9c22e1c7cafe7be6f627578ab7e9b419e2a4261734d458b747d34b
|
data/Makefile
CHANGED
@@ -437,8 +437,8 @@ Q = @
|
|
437
437
|
endif
|
438
438
|
|
439
439
|
CORE_VERSION = 6.0.0
|
440
|
-
CPP_VERSION = 1.14.
|
441
|
-
CSHARP_VERSION = 1.14.
|
440
|
+
CPP_VERSION = 1.14.1
|
441
|
+
CSHARP_VERSION = 1.14.1
|
442
442
|
|
443
443
|
CPPFLAGS_NO_ARCH += $(addprefix -I, $(INCLUDES)) $(addprefix -D, $(DEFINES))
|
444
444
|
CPPFLAGS += $(CPPFLAGS_NO_ARCH) $(ARCH_FLAGS)
|
@@ -813,11 +813,7 @@ static void set_write_state(grpc_chttp2_transport* t,
|
|
813
813
|
write_state_name(st), reason));
|
814
814
|
t->write_state = st;
|
815
815
|
if (st == GRPC_CHTTP2_WRITE_STATE_IDLE) {
|
816
|
-
|
817
|
-
while (grpc_chttp2_list_pop_waiting_for_write_stream(t, &s)) {
|
818
|
-
GRPC_CLOSURE_LIST_SCHED(&s->run_after_write);
|
819
|
-
GRPC_CHTTP2_STREAM_UNREF(s, "chttp2:write_closure_sched");
|
820
|
-
}
|
816
|
+
GRPC_CLOSURE_LIST_SCHED(&t->run_after_write);
|
821
817
|
if (t->close_transport_on_writes_finished != nullptr) {
|
822
818
|
grpc_error* err = t->close_transport_on_writes_finished;
|
823
819
|
t->close_transport_on_writes_finished = nullptr;
|
@@ -1208,14 +1204,11 @@ void grpc_chttp2_complete_closure_step(grpc_chttp2_transport* t,
|
|
1208
1204
|
grpc_error_add_child(closure->error_data.error, error);
|
1209
1205
|
}
|
1210
1206
|
if (closure->next_data.scratch < CLOSURE_BARRIER_FIRST_REF_BIT) {
|
1211
|
-
if (
|
1207
|
+
if ((t->write_state == GRPC_CHTTP2_WRITE_STATE_IDLE) ||
|
1212
1208
|
!(closure->next_data.scratch & CLOSURE_BARRIER_MAY_COVER_WRITE)) {
|
1213
1209
|
GRPC_CLOSURE_RUN(closure, closure->error_data.error);
|
1214
1210
|
} else {
|
1215
|
-
|
1216
|
-
GRPC_CHTTP2_STREAM_REF(s, "chttp2:pending_write_closure");
|
1217
|
-
}
|
1218
|
-
grpc_closure_list_append(&s->run_after_write, closure,
|
1211
|
+
grpc_closure_list_append(&t->run_after_write, closure,
|
1219
1212
|
closure->error_data.error);
|
1220
1213
|
}
|
1221
1214
|
}
|
@@ -2016,10 +2009,6 @@ static void remove_stream(grpc_chttp2_transport* t, uint32_t id,
|
|
2016
2009
|
|
2017
2010
|
void grpc_chttp2_cancel_stream(grpc_chttp2_transport* t, grpc_chttp2_stream* s,
|
2018
2011
|
grpc_error* due_to_error) {
|
2019
|
-
GRPC_CLOSURE_LIST_SCHED(&s->run_after_write);
|
2020
|
-
if (grpc_chttp2_list_remove_waiting_for_write_stream(t, s)) {
|
2021
|
-
GRPC_CHTTP2_STREAM_UNREF(s, "chttp2:pending_write_closure");
|
2022
|
-
}
|
2023
2012
|
if (!t->is_client && !s->sent_trailing_metadata &&
|
2024
2013
|
grpc_error_has_clear_grpc_status(due_to_error)) {
|
2025
2014
|
close_from_api(t, s, due_to_error);
|
@@ -54,8 +54,6 @@ typedef enum {
|
|
54
54
|
/** streams that are waiting to start because there are too many concurrent
|
55
55
|
streams on the connection */
|
56
56
|
GRPC_CHTTP2_LIST_WAITING_FOR_CONCURRENCY,
|
57
|
-
/** streams with closures waiting to be run on a write **/
|
58
|
-
GRPC_CHTTP2_LIST_WAITING_FOR_WRITE,
|
59
57
|
STREAM_LIST_COUNT /* must be last */
|
60
58
|
} grpc_chttp2_stream_list_id;
|
61
59
|
|
@@ -433,6 +431,9 @@ struct grpc_chttp2_transport {
|
|
433
431
|
*/
|
434
432
|
grpc_error* close_transport_on_writes_finished;
|
435
433
|
|
434
|
+
/* a list of closures to run after writes are finished */
|
435
|
+
grpc_closure_list run_after_write;
|
436
|
+
|
436
437
|
/* buffer pool state */
|
437
438
|
/** have we scheduled a benign cleanup? */
|
438
439
|
bool benign_reclaimer_registered;
|
@@ -583,7 +584,6 @@ struct grpc_chttp2_stream {
|
|
583
584
|
|
584
585
|
grpc_slice_buffer flow_controlled_buffer;
|
585
586
|
|
586
|
-
grpc_closure_list run_after_write;
|
587
587
|
grpc_chttp2_write_cb* on_flow_controlled_cbs;
|
588
588
|
grpc_chttp2_write_cb* on_write_finished_cbs;
|
589
589
|
grpc_chttp2_write_cb* finish_after_write;
|
@@ -686,13 +686,6 @@ bool grpc_chttp2_list_pop_stalled_by_stream(grpc_chttp2_transport* t,
|
|
686
686
|
bool grpc_chttp2_list_remove_stalled_by_stream(grpc_chttp2_transport* t,
|
687
687
|
grpc_chttp2_stream* s);
|
688
688
|
|
689
|
-
bool grpc_chttp2_list_add_waiting_for_write_stream(grpc_chttp2_transport* t,
|
690
|
-
grpc_chttp2_stream* s);
|
691
|
-
bool grpc_chttp2_list_pop_waiting_for_write_stream(grpc_chttp2_transport* t,
|
692
|
-
grpc_chttp2_stream** s);
|
693
|
-
bool grpc_chttp2_list_remove_waiting_for_write_stream(grpc_chttp2_transport* t,
|
694
|
-
grpc_chttp2_stream* s);
|
695
|
-
|
696
689
|
/********* Flow Control ***************/
|
697
690
|
|
698
691
|
// Takes in a flow control action and performs all the needed operations.
|
@@ -35,8 +35,6 @@ static const char* stream_list_id_string(grpc_chttp2_stream_list_id id) {
|
|
35
35
|
return "stalled_by_stream";
|
36
36
|
case GRPC_CHTTP2_LIST_WAITING_FOR_CONCURRENCY:
|
37
37
|
return "waiting_for_concurrency";
|
38
|
-
case GRPC_CHTTP2_LIST_WAITING_FOR_WRITE:
|
39
|
-
return "waiting_for_write";
|
40
38
|
case STREAM_LIST_COUNT:
|
41
39
|
GPR_UNREACHABLE_CODE(return "unknown");
|
42
40
|
}
|
@@ -216,18 +214,3 @@ bool grpc_chttp2_list_remove_stalled_by_stream(grpc_chttp2_transport* t,
|
|
216
214
|
grpc_chttp2_stream* s) {
|
217
215
|
return stream_list_maybe_remove(t, s, GRPC_CHTTP2_LIST_STALLED_BY_STREAM);
|
218
216
|
}
|
219
|
-
|
220
|
-
bool grpc_chttp2_list_add_waiting_for_write_stream(grpc_chttp2_transport* t,
|
221
|
-
grpc_chttp2_stream* s) {
|
222
|
-
return stream_list_add(t, s, GRPC_CHTTP2_LIST_WAITING_FOR_WRITE);
|
223
|
-
}
|
224
|
-
|
225
|
-
bool grpc_chttp2_list_pop_waiting_for_write_stream(grpc_chttp2_transport* t,
|
226
|
-
grpc_chttp2_stream** s) {
|
227
|
-
return stream_list_pop(t, s, GRPC_CHTTP2_LIST_WAITING_FOR_WRITE);
|
228
|
-
}
|
229
|
-
|
230
|
-
bool grpc_chttp2_list_remove_waiting_for_write_stream(grpc_chttp2_transport* t,
|
231
|
-
grpc_chttp2_stream* s) {
|
232
|
-
return stream_list_maybe_remove(t, s, GRPC_CHTTP2_LIST_WAITING_FOR_WRITE);
|
233
|
-
}
|
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.14.
|
4
|
+
version: 1.14.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: 2018-08-
|
11
|
+
date: 2018-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -1557,36 +1557,36 @@ signing_key:
|
|
1557
1557
|
specification_version: 4
|
1558
1558
|
summary: GRPC system in Ruby
|
1559
1559
|
test_files:
|
1560
|
-
- src/ruby/spec/
|
1561
|
-
- src/ruby/spec/
|
1562
|
-
- src/ruby/spec/
|
1560
|
+
- src/ruby/spec/call_credentials_spec.rb
|
1561
|
+
- src/ruby/spec/channel_connection_spec.rb
|
1562
|
+
- src/ruby/spec/google_rpc_status_utils_spec.rb
|
1563
|
+
- src/ruby/spec/time_consts_spec.rb
|
1564
|
+
- src/ruby/spec/server_credentials_spec.rb
|
1565
|
+
- src/ruby/spec/server_spec.rb
|
1566
|
+
- src/ruby/spec/support/helpers.rb
|
1567
|
+
- src/ruby/spec/support/services.rb
|
1563
1568
|
- src/ruby/spec/channel_spec.rb
|
1564
|
-
- src/ruby/spec/
|
1565
|
-
- src/ruby/spec/
|
1569
|
+
- src/ruby/spec/call_spec.rb
|
1570
|
+
- src/ruby/spec/client_server_spec.rb
|
1571
|
+
- src/ruby/spec/generic/interceptor_registry_spec.rb
|
1572
|
+
- src/ruby/spec/generic/server_interceptors_spec.rb
|
1566
1573
|
- src/ruby/spec/generic/rpc_server_pool_spec.rb
|
1574
|
+
- src/ruby/spec/generic/client_stub_spec.rb
|
1567
1575
|
- src/ruby/spec/generic/rpc_desc_spec.rb
|
1568
1576
|
- src/ruby/spec/generic/service_spec.rb
|
1569
|
-
- src/ruby/spec/generic/active_call_spec.rb
|
1570
1577
|
- src/ruby/spec/generic/rpc_server_spec.rb
|
1571
|
-
- src/ruby/spec/generic/
|
1578
|
+
- src/ruby/spec/generic/active_call_spec.rb
|
1572
1579
|
- src/ruby/spec/generic/client_interceptors_spec.rb
|
1573
|
-
- src/ruby/spec/generic/client_stub_spec.rb
|
1574
|
-
- src/ruby/spec/generic/interceptor_registry_spec.rb
|
1575
|
-
- src/ruby/spec/time_consts_spec.rb
|
1576
|
-
- src/ruby/spec/client_server_spec.rb
|
1577
|
-
- src/ruby/spec/google_rpc_status_utils_spec.rb
|
1578
|
-
- src/ruby/spec/spec_helper.rb
|
1579
1580
|
- src/ruby/spec/compression_options_spec.rb
|
1580
|
-
- src/ruby/spec/
|
1581
|
-
- src/ruby/spec/support/services.rb
|
1582
|
-
- src/ruby/spec/server_spec.rb
|
1583
|
-
- src/ruby/spec/server_credentials_spec.rb
|
1584
|
-
- src/ruby/spec/call_spec.rb
|
1585
|
-
- src/ruby/spec/channel_connection_spec.rb
|
1586
|
-
- src/ruby/spec/call_credentials_spec.rb
|
1587
|
-
- src/ruby/spec/testdata/ca.pem
|
1581
|
+
- src/ruby/spec/channel_credentials_spec.rb
|
1588
1582
|
- src/ruby/spec/testdata/server1.key
|
1589
1583
|
- src/ruby/spec/testdata/README
|
1590
|
-
- src/ruby/spec/testdata/server1.pem
|
1591
1584
|
- src/ruby/spec/testdata/client.pem
|
1585
|
+
- src/ruby/spec/testdata/server1.pem
|
1586
|
+
- src/ruby/spec/testdata/ca.pem
|
1592
1587
|
- src/ruby/spec/testdata/client.key
|
1588
|
+
- src/ruby/spec/client_auth_spec.rb
|
1589
|
+
- src/ruby/spec/error_sanity_spec.rb
|
1590
|
+
- src/ruby/spec/spec_helper.rb
|
1591
|
+
- src/ruby/spec/pb/duplicate/codegen_spec.rb
|
1592
|
+
- src/ruby/spec/pb/health/checker_spec.rb
|