trisulrp 3.1.11 → 3.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/trisulrp/protocol.rb +8 -1
- data/trisulrp.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 073e6e7a3bbcfbcd1378e95921f773c079b21c26
|
4
|
+
data.tar.gz: 49fa0a8aa363ba680d0504a716243952dfc11cf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2790205853082d81c3888722588b39e16860fe8c4650587f513c7edfbae0e6c2f22e3e6d582b615aa89c8c560eb5bd7508d584301532966449b72474947d07cb
|
7
|
+
data.tar.gz: 9d2160356999347750884ac2f31031f473de3a6721384f58f58b4090cd9773f2020b02a460a1c08c99b363525b2bb2f2d537a435012677eec416da0012ebc6e1
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.12
|
data/lib/trisulrp/protocol.rb
CHANGED
@@ -250,14 +250,21 @@ module TrisulRP::Protocol
|
|
250
250
|
trp_resp_command_id = resp.instance_variable_get("@trp_resp_command_id")
|
251
251
|
|
252
252
|
while trp_resp_command_id == TRP::Message::Command::ASYNC_RESPONSE do
|
253
|
+
@sleep = @sleep || 1
|
254
|
+
if @sleep >=4
|
255
|
+
@sleep = 5
|
256
|
+
else
|
257
|
+
@sleep = @sleep *2
|
258
|
+
end
|
253
259
|
async_req = TrisulRP::Protocol.mk_request(
|
254
260
|
TRP::Message::Command::ASYNC_REQUEST,
|
255
261
|
{
|
256
262
|
token:resp.token,
|
257
263
|
destination_node:trp_request.destination_node,
|
258
|
-
sleep:2
|
259
264
|
}
|
260
265
|
)
|
266
|
+
#sleep before send async request
|
267
|
+
sleep(@sleep)
|
261
268
|
resp=get_response_zmq(endpoint,async_req, timeout_seconds)
|
262
269
|
trp_resp_command_id = resp.instance_variable_get("@trp_resp_command_id")
|
263
270
|
end
|
data/trisulrp.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: trisulrp 3.1.
|
5
|
+
# stub: trisulrp 3.1.12 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "trisulrp"
|
9
|
-
s.version = "3.1.
|
9
|
+
s.version = "3.1.12"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|