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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a80ac5c8d010546f72f43d0ca8fe943fab65efc
4
- data.tar.gz: b2eb01d960d26429a6c335beeaa6c6ccf5099d26
3
+ metadata.gz: 073e6e7a3bbcfbcd1378e95921f773c079b21c26
4
+ data.tar.gz: 49fa0a8aa363ba680d0504a716243952dfc11cf0
5
5
  SHA512:
6
- metadata.gz: 7cbffac3de814341c645c485f0eef0d3c3bc70780b0da80c3300ce8e9b12e24754681786ec7cea54c16e55a217e9e35874970f3224496e07036dc0c4e99365b6
7
- data.tar.gz: e822fac8f5a674ab084928f34aad57b7fdffb139e5c510bda678c050a2dfe00a44168abf985220f854c10df13548c75e320662c8a3b28dbd8aaaf3d12a70d166
6
+ metadata.gz: 2790205853082d81c3888722588b39e16860fe8c4650587f513c7edfbae0e6c2f22e3e6d582b615aa89c8c560eb5bd7508d584301532966449b72474947d07cb
7
+ data.tar.gz: 9d2160356999347750884ac2f31031f473de3a6721384f58f58b4090cd9773f2020b02a460a1c08c99b363525b2bb2f2d537a435012677eec416da0012ebc6e1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.11
1
+ 3.1.12
@@ -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.11 ruby lib
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.11"
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"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trisulrp
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.11
4
+ version: 3.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek