grpc_kit 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c229b35fd09c414d3fc19aeaa1c46dd1e4c99b5046dbbaf33fbe8e418c5a34b
4
- data.tar.gz: 613b394508932720c519ebc41abaab965e7b8cfb4ba6fcf864729bb027f8ebd8
3
+ metadata.gz: 2ec13944921db4a28acdf79ee76911adc0405b5f72132f9f96f312224861dbfb
4
+ data.tar.gz: 5b618ba9c9cf4c9fd7c12eac169f48fe80f0b11464a0a2661baf0136e2c5ae8d
5
5
  SHA512:
6
- metadata.gz: 49874a742c974ba015526b8649bb1667b65478e2b533a7cde9020e906e425f47d523d4868ad0c64d944e4f249c9c08ef88c6e592fb3dab774a987f07b54e5a2e
7
- data.tar.gz: b147ff2d8aa48c6b1cf537b9809939a4344432a265d96543537dd9bd8aa8731681e31ea9989e7f6844a5d60adef173058942dd33120b75bf77088bf22604c28a
6
+ metadata.gz: 451d192c39a47c52647bfe105f5fcaa573731ea234856036e2873cefbfb247b68e3bef1efe5d6d170e277195ac370cc56a6151303a9f55470f6f94ba4f415e15
7
+ data.tar.gz: c8537aab5d64860f5c24012fbffeebb1522729ad40fb77caef726d1982ef03bf0f83c266f09cdf732ec44c120845a4a49a0137f5147ef6f37a37cf09f983eb09
@@ -58,15 +58,6 @@ module GrpcKit
58
58
  return false
59
59
  end
60
60
 
61
- if @drain_controller.start_draining?
62
- if @streams.empty?
63
- shutdown
64
- return false
65
- end
66
-
67
- @drain_controller.next(self)
68
- end
69
-
70
61
  rs, ws = @io.select
71
62
 
72
63
  if !rs.empty? && want_read?
@@ -79,7 +70,7 @@ module GrpcKit
79
70
 
80
71
  true
81
72
  rescue Errno::ECONNRESET, IOError => e
82
- GrpcKit.logger.debug(e.message)
73
+ GrpcKit.logger.error(e.message)
83
74
  shutdown
84
75
  false
85
76
  end
@@ -93,8 +84,9 @@ module GrpcKit
93
84
  def shutdown
94
85
  stop
95
86
  @io.close
87
+ # @pool.shutdown
96
88
  rescue StandardError => e
97
- GrpcKit.logger.debug(e)
89
+ GrpcKit.logger.error(e)
98
90
  end
99
91
 
100
92
  private
@@ -255,12 +247,6 @@ module GrpcKit
255
247
 
256
248
  stream = @streams.delete(stream_id)
257
249
  stream.close if stream
258
-
259
- if @drain
260
- if @streams.empty?
261
- shutdown
262
- end
263
- end
264
250
  end
265
251
  end
266
252
  end
@@ -48,7 +48,7 @@ module GrpcKit
48
48
  def shutdown
49
49
  @shutdown = true
50
50
  @auto_trimmer.stop if @auto_trimmer
51
- @waiting.times { @tasks.push(nil) }
51
+ @max_pool_size.times { @tasks.push(nil) }
52
52
  end
53
53
 
54
54
  def trim(force = false)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GrpcKit
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grpc_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuta Iwama
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-28 00:00:00.000000000 Z
11
+ date: 2019-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ds9