fluent-plugin-syslog-gobi-tls 2.1.33 → 2.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/fluent-plugin-syslog-tls.gemspec +1 -1
- data/lib/fluent/plugin/out_syslog_tls.rb +9 -3
- data/lib/syslog_tls/ssl_transport.rb +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0f4f0cabbf4f3247aaac152fc8091b9afe7b328df68716561e9e10c73412203
|
4
|
+
data.tar.gz: a9c8fadfc6f1eab6b41dfbda941a2cfa62a9b91d7a600c9724bdc728a6059899
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
48
|
-
|
49
|
-
|
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
|
-
|
200
|
-
pp "
|
201
|
-
if
|
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
|