grpc 0.13.1.pre1-x64-mingw32 → 0.13.1-x64-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: 415d1086a00f3d49e984b195f36cfbf5480bdc9c
4
- data.tar.gz: 2f0513903f6ab6682e2538211743d64e9fa5ccc1
3
+ metadata.gz: bd3076329d9ad340080342274db0e21c87d25422
4
+ data.tar.gz: d81e2cc5f03d2b21a8a63f7bbce595a227bc35d0
5
5
  SHA512:
6
- metadata.gz: 8575b3384ab868c7815764f6130722ddf6644cf7204d5ffc82423f3f5f576d6fe6fafc5cc5e382b37e22fa6eded3f963921203841d578eca0ec6b728121c1d8a
7
- data.tar.gz: dd6fe0af52d6eb7312931d567697e6c0f81cbbb7ae862eb99f67cfe73b3b6b99702039d1b6115436d7e49326ef13cc11da4cb112a0d5e82726daf2a486c313a9
6
+ metadata.gz: c3813a56b5d0d19d9baf9ff760f02c7c8e708044cbfcb1469c7eeae44dd155e160208156dd8e15f7c496753f650e8f8af9deac0e3fc421578b6d8bd51d07bcfe
7
+ data.tar.gz: 936220598d9826d8526eba5cd0be3f36e37664759fd9423065dd849551d8476cfb55251074d8f8d5ca9093962da2a57aacf5087836653f18f19d02892f270a52
Binary file
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
@@ -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: x64-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