fluent-plugin-syslog-gobi-tls 2.1.18 → 2.1.19

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 287edad13098ed291c057cf494827592b646ae9b8ca58c3b80edb428f4500740
4
- data.tar.gz: 84889f89cedcfc4b030015d63295992c75534bd6efaea86e9a571780e5e85be4
3
+ metadata.gz: 0bda2811fafdce903eeac4e53e1599a70a0dd5375fc19ee7b4f502b9c1cd6da4
4
+ data.tar.gz: ea2ac79dd3ca500d87c1d7291792325b29d76ba893ec9470169e60dc7bc1886a
5
5
  SHA512:
6
- metadata.gz: 32422e64ce1f4053f310bf57a4950831c8214dbd3b73c1cfd3199f93c2889da1dcbf3fcc688b9564509f95118ccf011f844ba973a07107979892a7df01b06d16
7
- data.tar.gz: 00b1e2177e78009a05f682dbd668badc6c56cdbceee73346e7de3fe3c766838fa6d1804c5a02db5ed82b84d451c72342f327cb8da6158170513ff4218ae23533
6
+ metadata.gz: 8ca33e20d225e859ad49b15ee160092b2af4fc83259b7117699a9e59ff8fb3a2e755f499844fff8b4344f3ea969b6375ad935bd516fed05141a809724c7656c3
7
+ data.tar.gz: 2ae02d4cb3dc87a3815a0efe5e59c54bc8a9c91c3ee24a6daf6d7014c7b1abf5a1cbc5a04d2c340d1d982d143966698832026841166659f148882b80db132e1c
@@ -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.18'
22
+ s.version = '2.1.19'
23
23
  s.summary = %q{Fluent Syslog TLS output plugin}
24
24
  s.authors = ['thomas morgan']
25
25
  s.email = ['tm@iprog.com']
@@ -72,20 +72,17 @@ module SyslogTls
72
72
  tcp.setsockopt(Socket::SOL_SOCKET, Socket::Constants::SO_REUSEADDR, true)
73
73
  tcp.setsockopt(Socket::SOL_SOCKET, Socket::Constants::SO_REUSEPORT, true)
74
74
  tcp.connect_nonblock(sock_addr)
75
- # rescue Errno::EINPROGRESS
76
- # tcp.close rescue nil
77
- # raise
78
- # select_with_timeout(tcp, :connect_write)
79
- # begin
80
- # tcp.connect_nonblock(sock_addr)
81
- # rescue Errno::EISCONN
82
- # # all good
83
- # rescue SystemCallError
84
- # tcp.close rescue nil
85
- # raise
86
- rescue Exception => e
87
- # Log the exception
88
- puts "Exception during TCP connection: #{e.message}"
75
+ rescue Errno::EINPROGRESS
76
+ select_with_timeout(tcp, :connect_write)
77
+ begin
78
+ tcp.connect_nonblock(sock_addr)
79
+ rescue Errno::EISCONN
80
+ # all good
81
+ rescue SystemCallError
82
+ tcp.close rescue nil
83
+ raise
84
+ end
85
+ rescue SystemCallError
89
86
  tcp.close rescue nil
90
87
  raise
91
88
  end
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.18
4
+ version: 2.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - thomas morgan