network_resiliency 0.8.0 → 0.8.1

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
  SHA256:
3
- metadata.gz: a2a0b6dd58bb024a582f951fd5aa8105506a8c2ffee8dddac284128a09fc844a
4
- data.tar.gz: 7b978707f7788382cca10421190942c7395423d363eb222ddb0e5d1f5f1d734d
3
+ metadata.gz: 251e42c1b03eaa4cb6322a74da1f2b62ee0f08bc48112bd3c5858d1a9c888992
4
+ data.tar.gz: 87fbd7883d8c3d1ae55287253c88a9f3375b3b8225e44e53ca9443cd27acde46
5
5
  SHA512:
6
- metadata.gz: ae2e38bf103409e575f31245634fca438992e9a50415b5c1d0bfa16e75016513a378ad2f0a9c2adef3c22a6392ef2ed1d9da67c26fff745b799bad2c83806e74
7
- data.tar.gz: aad0e97f32f64ecb254ee5095375119bf0ff307ab578a7566280e93994c6a59ea3eb3d135a2e1a89bef4ae3f90d4ab94af149dd274594c9f1bcda76f777c2b0e
6
+ metadata.gz: 73a6fe0b5c7c3a97b9d8780c8bed84a8c4b18709dd569d11e13d3aa73a9356a86f0876d40b98e0a544bd8e2866c56062d2351035403e88a84e0ada602d6e2db1
7
+ data.tar.gz: b7b7229f80aed636d7ac8fda9fe19a8ed415918f323822f0e42ee2c9be23b1594598005b23afaf87c1757745483ac5a9b20063773a99fd5471e7180b15e4481b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### v0.8.1 (2024-03-12)
2
+ - lower secondary timeout
3
+
1
4
  ### v0.8.0 (2024-03-12)
2
5
  - secondary timeout
3
6
  - cover http socket error
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- network_resiliency (0.8.0)
4
+ network_resiliency (0.8.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module NetworkResiliency
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
@@ -361,14 +361,9 @@ module NetworkResiliency
361
361
 
362
362
  # make a second, more lenient attempt
363
363
 
364
- if p99 * 100 < max
365
- # max is excessively high
366
- timeouts << p99 * 100
367
- elsif p99 * 10 < max
368
- # use remaining time for second attempt
369
- timeouts << max - p99
364
+ if p99 * 10 < max
365
+ timeouts << p99 * 10
370
366
  else
371
- # max is smallish
372
367
  timeouts << max
373
368
 
374
369
  NetworkResiliency.statsd&.increment(
@@ -391,7 +386,7 @@ module NetworkResiliency
391
386
  timeouts << p99
392
387
 
393
388
  # second attempt
394
- timeouts << p99 * 100
389
+ timeouts << p99 * 10
395
390
 
396
391
  NetworkResiliency.statsd&.increment(
397
392
  "network_resiliency.timeout.missing",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: network_resiliency
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Pepper