hyperdex 1.4.5.2.g33c29ba → 1.4.5.3.g9d31c19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/hyperdex/client/client.rb +8 -6
- metadata +3 -3
@@ -14,18 +14,20 @@ class HyperDex::Client::Client
|
|
14
14
|
|
15
15
|
def loop(timeout = -1)
|
16
16
|
rc = ::FFI::MemoryPointer.new(HyperDex::FFI::Client.enum_type(:hyperdex_client_returncode).native_type)
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
17
|
+
while (ret = HyperDex::FFI::Client.hyperdex_client_loop(@client, timeout, rc)) < 0
|
18
|
+
if rc.read_int32 != HyperDex::Client::INTERRUPTED
|
19
|
+
raise HyperDex::Client::HyperDexClientException.new(
|
20
|
+
rc.read_int32,
|
21
|
+
self.error_message
|
22
|
+
)
|
23
|
+
end
|
22
24
|
end
|
23
25
|
|
24
26
|
@ops[ret].tap { |op| op.callback }
|
25
27
|
end
|
26
28
|
|
27
29
|
def poll_fd
|
28
|
-
if fd = HyperDex::FFI::Client.hyperdex_client_poll(@client) < 0
|
30
|
+
if (fd = HyperDex::FFI::Client.hyperdex_client_poll(@client)) < 0
|
29
31
|
raise HyperDex::Client::HyperDexClientException.new(
|
30
32
|
HyperDex::Client::EXCEPTION,
|
31
33
|
"CAN'T HAPPEN: hyperdex_client_poll failed!"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hyperdex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.5.
|
4
|
+
version: 1.4.5.3.g9d31c19
|
5
5
|
prerelease: 8
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-11-
|
12
|
+
date: 2014-11-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi-enum-generator
|
@@ -264,7 +264,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
264
264
|
version: '0'
|
265
265
|
segments:
|
266
266
|
- 0
|
267
|
-
hash:
|
267
|
+
hash: -1553449030944828785
|
268
268
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
269
269
|
none: false
|
270
270
|
requirements:
|