fluent-plugin-syslog-gobi-tls 2.1.23 → 2.1.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-syslog-tls.gemspec +1 -1
- data/lib/syslog_tls/ssl_transport.rb +12 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13cfba435bb198250616b3451f75660db0ce649205e2fd71c58a0fad3b5520a9
|
4
|
+
data.tar.gz: 03bb6315c0815655e8cb73f576ac6d4211842297e7b739ccd2c227eae8a7fd7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b57575568f429e727363f707d10a9732466ffad5a81c6c4f1e89b441b48dff7c41710d428a1b9434d7aed26f2e0a10dd7859b2696f193c7022233546cf89d93
|
7
|
+
data.tar.gz: 521a476a370f006c3e09ebb19113a2971353d5fda8fd8e20916fabfb7baac888e45f5366db89f7f29bb1c07bf0a17c07af6377119744df2b8aa229db83d264b7
|
@@ -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.25'
|
23
23
|
s.summary = %q{Fluent Syslog TLS output plugin}
|
24
24
|
s.authors = ['thomas morgan']
|
25
25
|
s.email = ['tm@iprog.com']
|
@@ -84,7 +84,7 @@ module SyslogTls
|
|
84
84
|
tcp.setsockopt(Socket::SOL_SOCKET, Socket::Constants::SO_REUSEADDR, true)
|
85
85
|
tcp.setsockopt(Socket::SOL_SOCKET, Socket::Constants::SO_REUSEPORT, true)
|
86
86
|
tcp.connect_nonblock(sock_addr)
|
87
|
-
rescue Errno::EINPROGRESS
|
87
|
+
rescue Errno::EINPROGRESS => e
|
88
88
|
timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")
|
89
89
|
puts "[#{timestamp}] in get_tcp_connection EINPROGRESS exception during TCP connection:"
|
90
90
|
puts "[#{timestamp}] Message: #{e.message}"
|
@@ -97,14 +97,14 @@ module SyslogTls
|
|
97
97
|
timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")
|
98
98
|
puts "[#{timestamp}] in get_tcp_connection in EISCONN"
|
99
99
|
# all good
|
100
|
-
rescue SystemCallError
|
100
|
+
rescue SystemCallError => e
|
101
101
|
timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")
|
102
102
|
puts "[#{timestamp}] in get_tcp_connection SystemCallError exception during TCP connection:"
|
103
103
|
puts "[#{timestamp}] Message: #{e.message}"
|
104
104
|
tcp.close rescue nil
|
105
105
|
raise
|
106
106
|
end
|
107
|
-
rescue SystemCallError
|
107
|
+
rescue SystemCallError => e
|
108
108
|
timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")
|
109
109
|
puts "[#{timestamp}] in get_tcp_connection SystemCallError outer exception during TCP connection:"
|
110
110
|
puts "[#{timestamp}] Message: #{e.message}"
|
@@ -205,7 +205,15 @@ module SyslogTls
|
|
205
205
|
else
|
206
206
|
raise "Unknown select type #{type}"
|
207
207
|
end
|
208
|
-
IO.select(*args) || raise("Socket timeout during #{type}")
|
208
|
+
# IO.select(*args) || raise("Socket timeout during #{type}")
|
209
|
+
begin
|
210
|
+
timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")
|
211
|
+
select1 = IO.select(*args)
|
212
|
+
puts "[#{timestamp}] in select_with_timeout: #{select1}"
|
213
|
+
rescue IOError => e
|
214
|
+
timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")
|
215
|
+
puts "[#{timestamp}] Error in select_with_timeout: #{e.message}"
|
216
|
+
end
|
209
217
|
end
|
210
218
|
|
211
219
|
# Forward any methods directly to SSLSocket
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.
|
4
|
+
version: 2.1.25
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thomas morgan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|