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 +4 -4
- data/lib/grpc_kit/session/server_session.rb +3 -17
- data/lib/grpc_kit/thread_pool.rb +1 -1
- data/lib/grpc_kit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ec13944921db4a28acdf79ee76911adc0405b5f72132f9f96f312224861dbfb
|
4
|
+
data.tar.gz: 5b618ba9c9cf4c9fd7c12eac169f48fe80f0b11464a0a2661baf0136e2c5ae8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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
|
data/lib/grpc_kit/thread_pool.rb
CHANGED
data/lib/grpc_kit/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ds9
|