sub_zero 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sub_zero/socket/sender.rb +8 -6
- data/lib/sub_zero/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f235400fae55213787d858e89073d09e21cd8cc2
|
4
|
+
data.tar.gz: 34a50e151d4e919762a5cd640569b42711ad6036
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3e0adadfae7721a97c9c0e609072b8d3ac4618892355fca1c4c3bfe7573db03153bc74d48770591a7777d238fac00570cbe2558b0b41a8df32bbfd471a9addd
|
7
|
+
data.tar.gz: 497b83c7d5adad849231be2875f18379f7c3adbddb34d21afff09f9a992e742d0d01f6dd6f78ee0af51dd4478c21b71f3d89f977e740f9326c30ac7ed2d8f0e6
|
@@ -6,18 +6,20 @@ module SubZero
|
|
6
6
|
response = nil
|
7
7
|
t = request.options.fetch(:timeout, 1000) / 1000.0
|
8
8
|
|
9
|
-
::Timeout.timeout t do
|
10
9
|
context do |c|
|
11
10
|
socket c do |s|
|
12
|
-
|
13
|
-
|
11
|
+
begin
|
12
|
+
::Timeout.timeout t do
|
13
|
+
send_message s, request
|
14
|
+
response = receive_message(s, request)
|
15
|
+
end
|
16
|
+
rescue ::Timeout::Error
|
17
|
+
raise SubZero::Socket::TimeoutError, "call timeout after #{t}ms"
|
18
|
+
end
|
14
19
|
end
|
15
20
|
end
|
16
|
-
end
|
17
21
|
|
18
22
|
response
|
19
|
-
rescue ::Timeout::Error
|
20
|
-
raise SubZero::Socket::TimeoutError, "call timeout after #{t}ms"
|
21
23
|
end
|
22
24
|
|
23
25
|
end
|
data/lib/sub_zero/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sub_zero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Rodrigues
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
232
|
version: '0'
|
233
233
|
requirements: []
|
234
234
|
rubyforge_project:
|
235
|
-
rubygems_version: 2.0.
|
235
|
+
rubygems_version: 2.0.7
|
236
236
|
signing_key:
|
237
237
|
specification_version: 4
|
238
238
|
summary: ZeroMQ GREAT SOA solution
|