grpc 0.13.1.pre1 → 0.13.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 +1 -1
- data/src/core/surface/version.c +1 -1
- data/src/ruby/ext/grpc/rb_byte_buffer.c +6 -9
- data/src/ruby/ext/grpc/rb_call.c +13 -1
- data/src/ruby/lib/grpc/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 087ed900e34c402941807c96d9788ffb7f132f62
|
4
|
+
data.tar.gz: 4418107836023ce6aa4825b0b895841d3bb81328
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6cd53649a6174f0a3afc71bfec57cc7ec296c23de63845b1be2c0e47eb0c64a721e7b89a1da69b7e6a482e8876d87fc6ecaf5288b56bb34213a4f2f8fe26156
|
7
|
+
data.tar.gz: ab670ce1f4cfa4c47a13ac1582322f521131c6e2cf0391e5888f369b4510bd1f417b3edde0c640a60b6853892960b1a355d8ed9ececfddeeb563f91d37cbe133
|
data/Makefile
CHANGED
data/src/core/surface/version.c
CHANGED
@@ -50,21 +50,18 @@ grpc_byte_buffer* grpc_rb_s_to_byte_buffer(char *string, size_t length) {
|
|
50
50
|
}
|
51
51
|
|
52
52
|
VALUE grpc_rb_byte_buffer_to_s(grpc_byte_buffer *buffer) {
|
53
|
-
|
54
|
-
char *string = NULL;
|
55
|
-
size_t offset = 0;
|
53
|
+
VALUE rb_string;
|
56
54
|
grpc_byte_buffer_reader reader;
|
57
55
|
gpr_slice next;
|
58
56
|
if (buffer == NULL) {
|
59
57
|
return Qnil;
|
60
|
-
|
61
58
|
}
|
62
|
-
|
63
|
-
string = xmalloc(length + 1);
|
59
|
+
rb_string = rb_str_buf_new(grpc_byte_buffer_length(buffer));
|
64
60
|
grpc_byte_buffer_reader_init(&reader, buffer);
|
65
61
|
while (grpc_byte_buffer_reader_next(&reader, &next) != 0) {
|
66
|
-
|
67
|
-
|
62
|
+
rb_str_cat(rb_string, (const char *) GPR_SLICE_START_PTR(next),
|
63
|
+
GPR_SLICE_LENGTH(next));
|
64
|
+
gpr_slice_unref(next);
|
68
65
|
}
|
69
|
-
return
|
66
|
+
return rb_string;
|
70
67
|
}
|
data/src/ruby/ext/grpc/rb_call.c
CHANGED
@@ -551,13 +551,26 @@ static void grpc_run_batch_stack_init(run_batch_stack *st,
|
|
551
551
|
/* grpc_run_batch_stack_cleanup ensures the run_batch_stack is properly
|
552
552
|
* cleaned up */
|
553
553
|
static void grpc_run_batch_stack_cleanup(run_batch_stack *st) {
|
554
|
+
size_t i = 0;
|
555
|
+
|
554
556
|
grpc_metadata_array_destroy(&st->send_metadata);
|
555
557
|
grpc_metadata_array_destroy(&st->send_trailing_metadata);
|
556
558
|
grpc_metadata_array_destroy(&st->recv_metadata);
|
557
559
|
grpc_metadata_array_destroy(&st->recv_trailing_metadata);
|
560
|
+
|
558
561
|
if (st->recv_status_details != NULL) {
|
559
562
|
gpr_free(st->recv_status_details);
|
560
563
|
}
|
564
|
+
|
565
|
+
if (st->recv_message != NULL) {
|
566
|
+
grpc_byte_buffer_destroy(st->recv_message);
|
567
|
+
}
|
568
|
+
|
569
|
+
for (i = 0; i < st->op_num; i++) {
|
570
|
+
if (st->ops[i].op == GRPC_OP_SEND_MESSAGE) {
|
571
|
+
grpc_byte_buffer_destroy(st->ops[i].data.send_message);
|
572
|
+
}
|
573
|
+
}
|
561
574
|
}
|
562
575
|
|
563
576
|
/* grpc_run_batch_stack_fill_ops fills the run_batch_stack ops array from
|
@@ -643,7 +656,6 @@ static VALUE grpc_run_batch_stack_build_result(run_batch_stack *st) {
|
|
643
656
|
break;
|
644
657
|
case GRPC_OP_SEND_MESSAGE:
|
645
658
|
rb_struct_aset(result, sym_send_message, Qtrue);
|
646
|
-
grpc_byte_buffer_destroy(st->ops[i].data.send_message);
|
647
659
|
break;
|
648
660
|
case GRPC_OP_SEND_CLOSE_FROM_CLIENT:
|
649
661
|
rb_struct_aset(result, sym_send_close, Qtrue);
|
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: 0.13.1
|
4
|
+
version: 0.13.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: 2016-03-
|
11
|
+
date: 2016-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -1116,9 +1116,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1116
1116
|
version: 2.0.0
|
1117
1117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1118
1118
|
requirements:
|
1119
|
-
- - "
|
1119
|
+
- - ">="
|
1120
1120
|
- !ruby/object:Gem::Version
|
1121
|
-
version:
|
1121
|
+
version: '0'
|
1122
1122
|
requirements: []
|
1123
1123
|
rubyforge_project:
|
1124
1124
|
rubygems_version: 2.5.1
|