grpc 0.13.1.pre1-x86-mingw32 → 0.13.1-x86-mingw32

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
  SHA1:
3
- metadata.gz: 59c4bc936716711533bf667fcae613e54ed05121
4
- data.tar.gz: 9144188c44d161d981422711110a4e07c1608d7f
3
+ metadata.gz: 7a2c73da4a20dcca8d4aa150e54ea987c46a0379
4
+ data.tar.gz: 3a057752c0d5d650a9be4f379efb06277282b477
5
5
  SHA512:
6
- metadata.gz: 2413534d4a675949a39419dcf593bb2974648344461c5b2ef068cf8a3f12e5e8a418e091e1d7445c530c27959747a1eae7c24e5862539d3a0eba7a35039eae0a
7
- data.tar.gz: 4304beab0f6cbd59a531097916d1f9349ca51a4629ee9c5af1e1d17dcd2cc55b9b371c2e9bdf28d0cf0e82eba483366cee9bfdccd9b5fa762479135f28a13afe
6
+ metadata.gz: d6d5b119f9d3fe445d6bbacd99a9c5466bb29b6f392c26e939d051c4055ffa8911ef3784d269cf05f9743a5af11b74e66d410694e5d6edf7e5555e95839bbeca
7
+ data.tar.gz: 6282c0df6ff48ffbc6cdb0132c11d5a9f54441c56929dcc2090b9b520961f0e2df4d29ba91e7e62509cb44442ae8f8e919a6b2548569aaf3906b34020480b37e
data/grpc_c.32.ruby CHANGED
Binary file
data/grpc_c.64.ruby CHANGED
Binary file
@@ -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
- size_t length = 0;
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
- length = grpc_byte_buffer_length(buffer);
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
- memcpy(string + offset, GPR_SLICE_START_PTR(next), GPR_SLICE_LENGTH(next));
67
- offset += GPR_SLICE_LENGTH(next);
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 rb_str_new(string, length);
66
+ return rb_string;
70
67
  }
@@ -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);
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -29,5 +29,5 @@
29
29
 
30
30
  # GRPC contains the General RPC module.
31
31
  module GRPC
32
- VERSION = '0.13.1.pre1'
32
+ VERSION = '0.13.1'
33
33
  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: 0.13.1.pre1
4
+ version: 0.13.1
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - gRPC Authors
8
8
  autorequire:
9
9
  bindir: src/ruby/bin
10
10
  cert_chain: []
11
- date: 2016-03-25 00:00:00.000000000 Z
11
+ date: 2016-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -287,9 +287,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
287
287
  version: 2.0.0
288
288
  required_rubygems_version: !ruby/object:Gem::Requirement
289
289
  requirements:
290
- - - ">"
290
+ - - ">="
291
291
  - !ruby/object:Gem::Version
292
- version: 1.3.1
292
+ version: '0'
293
293
  requirements: []
294
294
  rubyforge_project:
295
295
  rubygems_version: 2.5.1