fluent-plugin-syslog-tls-with-backoff-test 2.1.9 → 2.1.11

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: ad3d56500427677430a1dacb0fe2b2dd63f0299b053f9661e592f5580b6df27c
4
- data.tar.gz: da6195eba8d7c1b076db40e23435f6ca2fe52f43ccd5ee4355781a959c81a7ab
3
+ metadata.gz: 40cb298faea48e56b9849aa15f74631a79bda38b7ba2e98fc253b4b45db65c10
4
+ data.tar.gz: e626943215a39fa84b3990d091d3aaec1ab57afb89f1c8f3140d0a44d81f13fe
5
5
  SHA512:
6
- metadata.gz: 60eb85f3205726d8b41d3cf7ba76b0a924954e26d463017562228133a0c7c4a2a373f693351877a56d2094503a4e4009287b533b6fc0dac5b606d0398f7539a5
7
- data.tar.gz: 1a937c6fa35916f2a6ecc9805d5f41475b3d4fde552eabeacf72213394f359b32e8e5ffb5b595fab4f05191975d526b0d10d4cb89193cacf805efe1f0ce429f3
6
+ metadata.gz: 6db0abf7eb78eba839227b1f00bd1f5985a4f5c10355ae51d3e1ec8109f00f5d3762400d76692f0d704213504f4b4535b259f62571e95e4cd13d59cbef06c074
7
+ data.tar.gz: 07ee1536bfb1814a0779e3836738422c59dbd12432b8b698601241aa78f252b9be5714d267fb08c5317d980ab81041dac836ae5d5e6fac11accc9d94a2d0f732
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ #### 2.1.2
2
+
3
+ * Exponential backoff added for failing host.
4
+
1
5
  #### 2.1.0
2
6
 
3
7
  * Require Ruby 2.5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fluent-plugin-syslog-tls-with-backoff (2.1.0)
4
+ fluent-plugin-syslog-tls-with-backoff (2.1.2)
5
5
  fluentd (>= 0.14.0, < 2)
6
6
 
7
7
  GEM
@@ -56,6 +56,7 @@ def increase_retry(host_ip_port)
56
56
  end
57
57
  end
58
58
  rescue => e
59
+ pp "Error in increase_retry: #{e.message}"
59
60
  end
60
61
  end
61
62
 
@@ -185,7 +185,7 @@ module SyslogTls
185
185
  if can_write(host_ip_port) == 1
186
186
  io_select_return = IO.select(*args)
187
187
  ready_sockets, _, _ = io_select_return
188
- if !ready_sockets.empty?
188
+ if ready_sockets && !ready_sockets.empty?
189
189
  reset_tries(host_ip_port)
190
190
  io_select_return
191
191
  else
@@ -196,6 +196,7 @@ module SyslogTls
196
196
  # raise("Failed to write #{type}")
197
197
  end
198
198
  else
199
+ reset_tries(host_ip_port)
199
200
  IO.select(*args) || raise("Socket timeout during #{type}")
200
201
  end
201
202
  end
@@ -14,5 +14,5 @@
14
14
  # limitations under the License.
15
15
 
16
16
  module SyslogTls
17
- VERSION = '2.1.9'
17
+ VERSION = '2.1.11'
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-syslog-tls-with-backoff-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.9
4
+ version: 2.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - thomas morgan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-05-28 00:00:00.000000000 Z
12
+ date: 2024-07-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd