fluent-plugin-syslog-gobi-tls 2.1.32 → 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: 9fd87297c4b2f5b4ba6ccaab5efa4442257e068d493073d5e667c967d682e6be
4
- data.tar.gz: a7cd26a3634f33886a41836b6a306a5ffaf765b1420663a6327181819253fe56
3
+ metadata.gz: b0f4f0cabbf4f3247aaac152fc8091b9afe7b328df68716561e9e10c73412203
4
+ data.tar.gz: a9c8fadfc6f1eab6b41dfbda941a2cfa62a9b91d7a600c9724bdc728a6059899
5
5
  SHA512:
6
- metadata.gz: d7ac4a730b7b31ccdb937194be77852e571a705981901ddf649e3b6f21f9aff13852f3e86d1013e9c8d8d456faa1bf3f91967d0e9b4f5c709763509f02f7bb2d
7
- data.tar.gz: 076b32956c407c81455f732ccada94dd4bf0dab4f09bac062310e5fdf194ffc6330b6bc7d131ab1474f459d571d9d1491906d9864fb001501140fceabd0366f4
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.32'
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
 
@@ -179,7 +179,7 @@ module SyslogTls
179
179
  def select_with_timeout(tcp, type)
180
180
 
181
181
  host_ip_port = host + ":" + port.to_s
182
- pp "1: initialize SSLTransport.select_with_timeout :: " + host_ip_port
182
+ pp "1: initialize SSLTransport.select_with_timeout :: " + host_ip_port + " time :: " + Time.now.to_s
183
183
 
184
184
  case type
185
185
  when :connect_read
@@ -193,21 +193,24 @@ module SyslogTls
193
193
  else
194
194
  raise "Unknown select type #{type}"
195
195
  end
196
- pp "2: initialize SSLTransport.select_with_timeout :: " + host_ip_port
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
- pp "3: initialize SSLTransport.select_with_timeout :: " + host_ip_port
199
- if IO.select(*args)
200
- pp "4: initialize SSLTransport.select_with_timeout :: " + host_ip_port
198
+ pp "3: initialize SSLTransport.select_with_timeout :: " + host_ip_port + " time :: " + Time.now.to_s
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
+ pp "4: initialize SSLTransport.select_with_timeout :: " + host_ip_port + " time :: " + Time.now.to_s
201
203
  reset_tries(host_ip_port)
202
204
  else
203
205
  increase_retry(host_ip_port)
204
- pp "initialize SSLTransport.select_with_timeout :: Socket timeout"
206
+ pp "initialize SSLTransport.select_with_timeout :: Socket timeout" + " time :: " + Time.now.to_s
205
207
  raise("Socket timeout during #{type}")
206
208
  end
207
209
  else
208
- pp "initialize SSLTransport.select_with_timeout :: Failed to write"
210
+ pp "initialize SSLTransport.select_with_timeout :: Failed to write" + " time :: " + Time.now.to_s
209
211
  raise("Failed to write #{type}")
210
212
  end
213
+ ready_sockets || raise("Socket timeout during #{type}")
211
214
  end
212
215
 
213
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.32
4
+ version: 2.1.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - thomas morgan