fluent-plugin-syslog-gobi-tls 2.1.33 → 2.1.34

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: abb506339ae5cc58a1b2c98ef35d3a682bf83f9cbc594915c6def38a2c795d93
4
- data.tar.gz: cb27d4b42cd2f7717a30a526819c18bfa7bf6497ccabf15bc5128cdefe293292
3
+ metadata.gz: b0f4f0cabbf4f3247aaac152fc8091b9afe7b328df68716561e9e10c73412203
4
+ data.tar.gz: a9c8fadfc6f1eab6b41dfbda941a2cfa62a9b91d7a600c9724bdc728a6059899
5
5
  SHA512:
6
- metadata.gz: 1c41a3f0e43241520a937842dfa14128628eaeda89c2cd7815b6bc12ac5b7c8b6b4fb387a675553dad5a788bbd668687af8996e8a5deaf4b306a237e6981e26c
7
- data.tar.gz: f846220819f5b0f5813d77a9e1da62beab745ffd0c61eead1545fd722d1699f2e3275a505b9a3e482a36cb27229404f3c6f29030b39d579635d74f6332296c7d
6
+ metadata.gz: dc4af9190bba0089b1cfa4efcad20439a3d4b746cd781b5ce94aa594f6d76812d370914c87255c4b883909cf1126ed813d9caef2238f2e3bbde5fcda6bc0bf65
7
+ data.tar.gz: 3015b504cf2d4eee31b4afd452e8ff189fb79704947c6ff0eaa8e55de69b81503fc16bcac27195a67c58ec13346b6d0be490ff04e2516ee8410faae6f00bb9c0
@@ -19,7 +19,7 @@ require 'syslog_tls/version'
19
19
 
20
20
  Gem::Specification.new do |s|
21
21
  s.name = 'fluent-plugin-syslog-gobi-tls'
22
- s.version = '2.1.33'
22
+ s.version = '2.1.34'
23
23
  s.authors = ['thomas morgan']
24
24
  s.email = ['tm@iprog.com']
25
25
  s.summary = %q{Fluent Syslog TLS output plugin}
@@ -44,10 +44,16 @@ def can_write(host_ip_port)
44
44
  end
45
45
 
46
46
  def increase_retry(host_ip_port)
47
- $host_backoff_specs_list.each do |backoff_specs|
48
- if backoff_specs.hostIPport == host_ip_port
49
- backoff_specs.failtowrite
47
+ pp "1 :: increase_retry :: " + host_ip_port + " time :: " + Time.now.to_s
48
+ begin
49
+ $host_backoff_specs_list.each do |backoff_specs|
50
+ pp "1 :: increase_retry :: backoff_specs.hostIPport " + backoff_specs.hostIPport + " time :: " + Time.now.to_s
51
+ if backoff_specs.hostIPport == host_ip_port
52
+ backoff_specs.failtowrite
53
+ end
50
54
  end
55
+ rescue => e
56
+ pp "Error in increase_retry: #{e.message}"
51
57
  end
52
58
  end
53
59
 
@@ -196,9 +196,9 @@ module SyslogTls
196
196
  pp "2: initialize SSLTransport.select_with_timeout :: " + host_ip_port + " time :: " + Time.now.to_s
197
197
  if can_write(host_ip_port) == 1
198
198
  pp "3: initialize SSLTransport.select_with_timeout :: " + host_ip_port + " time :: " + Time.now.to_s
199
- select_with_timeout_var = IO.select(*args)
200
- pp "select_with_timeout_var :: " + select_with_timeout_var.to_s + " :: " + host_ip_port + " time :: " + Time.now.to_s
201
- if select_with_timeout_var
199
+ ready_sockets, _, _ = IO.select(*args)
200
+ pp "ready_sockets :: " + ready_sockets.to_s + " :: " + host_ip_port + " time :: " + Time.now.to_s
201
+ if ready_sockets
202
202
  pp "4: initialize SSLTransport.select_with_timeout :: " + host_ip_port + " time :: " + Time.now.to_s
203
203
  reset_tries(host_ip_port)
204
204
  else
@@ -210,6 +210,7 @@ module SyslogTls
210
210
  pp "initialize SSLTransport.select_with_timeout :: Failed to write" + " time :: " + Time.now.to_s
211
211
  raise("Failed to write #{type}")
212
212
  end
213
+ ready_sockets || raise("Socket timeout during #{type}")
213
214
  end
214
215
 
215
216
  # Forward any methods directly to SSLSocket
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-syslog-gobi-tls
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.33
4
+ version: 2.1.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - thomas morgan