cloudi 1.7.1 → 1.7.2
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.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/cloudi.rb +6 -70
- metadata +42 -53
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 916554780735fd65981d4280ba0c3cfddfa36324
|
4
|
+
data.tar.gz: 69d7a32a85c80fc720618db3f4913191c0950dd4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7a31931154e385f0f018d25bdf44a09e911fa52db3f34cbcb6e19539188ab704f4a337e124f8fb51c4378523c709d3f1846ff116cef82251a115c079c91ab1e0
|
7
|
+
data.tar.gz: 9ec7578b5581a491c7e930aa64c4c8fae3703d781acaf64c79574f759acd67b24deac2cf9084fac2b027ba84edc4573f30beda3a5f39f8223a607d9febb45719
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/cloudi.rb
CHANGED
@@ -176,17 +176,6 @@ module CloudI
|
|
176
176
|
|
177
177
|
def forward_async(name, request_info, request,
|
178
178
|
timeout, priority, trans_id, pid)
|
179
|
-
if @request_timeout_adjustment
|
180
|
-
if timeout == @request_timeout
|
181
|
-
elapsed = [0,
|
182
|
-
((Time.now - @request_timer) * 1000.0).floor].max
|
183
|
-
if elapsed > timeout
|
184
|
-
timeout = 0
|
185
|
-
else
|
186
|
-
timeout -= elapsed
|
187
|
-
end
|
188
|
-
end
|
189
|
-
end
|
190
179
|
send(Erlang.term_to_binary([:forward_async, name,
|
191
180
|
OtpErlangBinary.new(request_info),
|
192
181
|
OtpErlangBinary.new(request),
|
@@ -197,17 +186,6 @@ module CloudI
|
|
197
186
|
|
198
187
|
def forward_sync(name, request_info, request,
|
199
188
|
timeout, priority, trans_id, pid)
|
200
|
-
if @request_timeout_adjustment
|
201
|
-
if timeout == @request_timeout
|
202
|
-
elapsed = [0,
|
203
|
-
((Time.now - @request_timer) * 1000.0).floor].max
|
204
|
-
if elapsed > timeout
|
205
|
-
timeout = 0
|
206
|
-
else
|
207
|
-
timeout -= elapsed
|
208
|
-
end
|
209
|
-
end
|
210
|
-
end
|
211
189
|
send(Erlang.term_to_binary([:forward_sync, name,
|
212
190
|
OtpErlangBinary.new(request_info),
|
213
191
|
OtpErlangBinary.new(request),
|
@@ -230,19 +208,6 @@ module CloudI
|
|
230
208
|
|
231
209
|
def return_async(name, pattern, response_info, response,
|
232
210
|
timeout, trans_id, pid)
|
233
|
-
if @request_timeout_adjustment
|
234
|
-
if timeout == @request_timeout
|
235
|
-
elapsed = [0,
|
236
|
-
((Time.now - @request_timer) * 1000.0).floor].max
|
237
|
-
if elapsed > timeout
|
238
|
-
response_info = ''
|
239
|
-
response = ''
|
240
|
-
timeout = 0
|
241
|
-
else
|
242
|
-
timeout -= elapsed
|
243
|
-
end
|
244
|
-
end
|
245
|
-
end
|
246
211
|
send(Erlang.term_to_binary([:return_async, name, pattern,
|
247
212
|
OtpErlangBinary.new(response_info),
|
248
213
|
OtpErlangBinary.new(response),
|
@@ -253,19 +218,6 @@ module CloudI
|
|
253
218
|
|
254
219
|
def return_sync(name, pattern, response_info, response,
|
255
220
|
timeout, trans_id, pid)
|
256
|
-
if @request_timeout_adjustment
|
257
|
-
if timeout == @request_timeout
|
258
|
-
elapsed = [0,
|
259
|
-
((Time.now - @request_timer) * 1000.0).floor].max
|
260
|
-
if elapsed > timeout
|
261
|
-
response_info = ''
|
262
|
-
response = ''
|
263
|
-
timeout = 0
|
264
|
-
else
|
265
|
-
timeout -= elapsed
|
266
|
-
end
|
267
|
-
end
|
268
|
-
end
|
269
221
|
send(Erlang.term_to_binary([:return_sync, name, pattern,
|
270
222
|
OtpErlangBinary.new(response_info),
|
271
223
|
OtpErlangBinary.new(response),
|
@@ -294,11 +246,6 @@ module CloudI
|
|
294
246
|
|
295
247
|
def callback(command, name, pattern, request_info, request,
|
296
248
|
timeout, priority, trans_id, pid)
|
297
|
-
request_time_start = nil
|
298
|
-
if @request_timeout_adjustment
|
299
|
-
@request_timer = Time.now
|
300
|
-
@request_timeout = timeout
|
301
|
-
end
|
302
249
|
function_queue = @callbacks.fetch(pattern, nil)
|
303
250
|
if function_queue.nil?
|
304
251
|
function = method(:null_response)
|
@@ -430,17 +377,12 @@ module CloudI
|
|
430
377
|
raise TerminateException.new(@timeout_terminate)
|
431
378
|
end
|
432
379
|
when MESSAGE_REINIT
|
433
|
-
i += j; j = 4 + 4 + 4 + 1
|
434
|
-
tmp = data[i, j].unpack("
|
380
|
+
i += j; j = 4 + 4 + 4 + 1
|
381
|
+
tmp = data[i, j].unpack("LLLc")
|
435
382
|
@process_count = tmp[0]
|
436
383
|
@timeout_async = tmp[1]
|
437
384
|
@timeout_sync = tmp[2]
|
438
385
|
@priority_default = tmp[3]
|
439
|
-
@request_timeout_adjustment = (tmp[4] != 0)
|
440
|
-
if @request_timeout_adjustment
|
441
|
-
@request_timer = Time.now
|
442
|
-
@request_timeout = 0
|
443
|
-
end
|
444
386
|
i += j
|
445
387
|
when MESSAGE_KEEPALIVE
|
446
388
|
send(Erlang.term_to_binary(:keepalive))
|
@@ -501,15 +443,14 @@ module CloudI
|
|
501
443
|
@process_count_max = tmp[2]
|
502
444
|
@process_count_min = tmp[3]
|
503
445
|
prefix_size = tmp[4]
|
504
|
-
i += j; j = prefix_size + 4 + 4 + 4 + 4 + 1
|
505
|
-
tmp = data[i, j].unpack("Z#{prefix_size}
|
446
|
+
i += j; j = prefix_size + 4 + 4 + 4 + 4 + 1
|
447
|
+
tmp = data[i, j].unpack("Z#{prefix_size}LLLLc")
|
506
448
|
@prefix = tmp[0]
|
507
449
|
@timeout_initialize = tmp[1]
|
508
450
|
@timeout_async = tmp[2]
|
509
451
|
@timeout_sync = tmp[3]
|
510
452
|
@timeout_terminate = tmp[4]
|
511
453
|
@priority_default = tmp[5]
|
512
|
-
@request_timeout_adjustment = (tmp[6] != 0)
|
513
454
|
i += j
|
514
455
|
if i != data_size
|
515
456
|
API.assert{external == false}
|
@@ -603,17 +544,12 @@ module CloudI
|
|
603
544
|
end
|
604
545
|
API.assert{false}
|
605
546
|
when MESSAGE_REINIT
|
606
|
-
i += j; j = 4 + 4 + 4 + 1
|
607
|
-
tmp = data[i, j].unpack("
|
547
|
+
i += j; j = 4 + 4 + 4 + 1
|
548
|
+
tmp = data[i, j].unpack("LLLc")
|
608
549
|
@process_count = tmp[0]
|
609
550
|
@timeout_async = tmp[1]
|
610
551
|
@timeout_sync = tmp[2]
|
611
552
|
@priority_default = tmp[3]
|
612
|
-
@request_timeout_adjustment = (tmp[4] != 0)
|
613
|
-
if @request_timeout_adjustment
|
614
|
-
@request_timer = Time.now
|
615
|
-
@request_timeout = 0
|
616
|
-
end
|
617
553
|
i += j; j = 4
|
618
554
|
if i == data_size
|
619
555
|
data.clear()
|
metadata
CHANGED
@@ -1,87 +1,77 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
5
|
-
prerelease:
|
4
|
+
version: 1.7.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Michael Truog
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain:
|
12
|
-
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
eCtZa05BYmxSYTJ3Cms5QStuQ1p6WkVDY1I1WlpZU2VhSzZNQ3VnR21YVWhB
|
36
|
-
a0RidVd1bUN6dS9SQWdobFZDOVJ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E89b0x4Kq7W1UH82QODAcBgNVHREEFTATgRFtanRydW9nQGdtYWlsLmNvbTAc
|
25
|
+
BgNVHRIEFTATgRFtanRydW9nQGdtYWlsLmNvbTANBgkqhkiG9w0BAQUFAAOCAQEA
|
26
|
+
YO8ZXcsUY/3m6/JFCTqL9qL2wR4zfcYwo/uYDo2S7FR/EGsy1M+qLJB8V13AR2Li
|
27
|
+
d/2mLm+SnhAgR32fMOaM58pbyFhlGaaEIs11xYywwbEbVe3eRxunsaJBcJxYeRZ+
|
28
|
+
V+c3ebJejEGUNJ4dRSB6WvWr9zl7FozsWBNSYJoWDMfkC2B2zHo08va5DRSActEn
|
29
|
+
27W/V+TnP3ONYvcoDcOr7sNOhNISlpgB5kDcl7stP85hm99IVK7vZi8t2jX/8GTT
|
30
|
+
+H4JAL4xk2aIYYf48338kxyZ8y9BNgp8cGbMEDtRSCgJnYk820Yt/fhM2DZtCbBL
|
31
|
+
tOEdFrZvpA23/sCoGvunHw==
|
32
|
+
-----END CERTIFICATE-----
|
33
|
+
date: 2017-09-12 00:00:00.000000000 Z
|
40
34
|
dependencies:
|
41
35
|
- !ruby/object:Gem::Dependency
|
42
36
|
name: erlang_rb
|
43
37
|
requirement: !ruby/object:Gem::Requirement
|
44
|
-
none: false
|
45
38
|
requirements:
|
46
|
-
- - ~>
|
39
|
+
- - "~>"
|
47
40
|
- !ruby/object:Gem::Version
|
48
41
|
version: '1.7'
|
49
|
-
- -
|
42
|
+
- - ">="
|
50
43
|
- !ruby/object:Gem::Version
|
51
|
-
version: 1.7.
|
44
|
+
version: 1.7.2
|
52
45
|
type: :runtime
|
53
46
|
prerelease: false
|
54
47
|
version_requirements: !ruby/object:Gem::Requirement
|
55
|
-
none: false
|
56
48
|
requirements:
|
57
|
-
- - ~>
|
49
|
+
- - "~>"
|
58
50
|
- !ruby/object:Gem::Version
|
59
51
|
version: '1.7'
|
60
|
-
- -
|
52
|
+
- - ">="
|
61
53
|
- !ruby/object:Gem::Version
|
62
|
-
version: 1.7.
|
54
|
+
version: 1.7.2
|
63
55
|
- !ruby/object:Gem::Dependency
|
64
56
|
name: erlang_rb
|
65
57
|
requirement: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
58
|
requirements:
|
68
|
-
- - ~>
|
59
|
+
- - "~>"
|
69
60
|
- !ruby/object:Gem::Version
|
70
61
|
version: '1.7'
|
71
|
-
- -
|
62
|
+
- - ">="
|
72
63
|
- !ruby/object:Gem::Version
|
73
|
-
version: 1.7.
|
64
|
+
version: 1.7.2
|
74
65
|
type: :development
|
75
66
|
prerelease: false
|
76
67
|
version_requirements: !ruby/object:Gem::Requirement
|
77
|
-
none: false
|
78
68
|
requirements:
|
79
|
-
- - ~>
|
69
|
+
- - "~>"
|
80
70
|
- !ruby/object:Gem::Version
|
81
71
|
version: '1.7'
|
82
|
-
- -
|
72
|
+
- - ">="
|
83
73
|
- !ruby/object:Gem::Version
|
84
|
-
version: 1.7.
|
74
|
+
version: 1.7.2
|
85
75
|
description: Ruby CloudI API
|
86
76
|
email: mjtruog@gmail.com
|
87
77
|
executables: []
|
@@ -89,31 +79,30 @@ extensions: []
|
|
89
79
|
extra_rdoc_files:
|
90
80
|
- README.markdown
|
91
81
|
files:
|
92
|
-
- lib/cloudi.rb
|
93
82
|
- README.markdown
|
83
|
+
- lib/cloudi.rb
|
94
84
|
homepage: http://cloudi.org
|
95
85
|
licenses:
|
96
86
|
- MIT
|
87
|
+
metadata: {}
|
97
88
|
post_install_message:
|
98
89
|
rdoc_options: []
|
99
90
|
require_paths:
|
100
91
|
- lib
|
101
92
|
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
-
none: false
|
103
93
|
requirements:
|
104
|
-
- -
|
94
|
+
- - ">="
|
105
95
|
- !ruby/object:Gem::Version
|
106
96
|
version: '0'
|
107
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
|
-
none: false
|
109
98
|
requirements:
|
110
|
-
- -
|
99
|
+
- - ">="
|
111
100
|
- !ruby/object:Gem::Version
|
112
101
|
version: '0'
|
113
102
|
requirements: []
|
114
103
|
rubyforge_project:
|
115
|
-
rubygems_version:
|
104
|
+
rubygems_version: 2.6.11
|
116
105
|
signing_key:
|
117
|
-
specification_version:
|
106
|
+
specification_version: 4
|
118
107
|
summary: CloudI API
|
119
108
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|