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

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: 287edad13098ed291c057cf494827592b646ae9b8ca58c3b80edb428f4500740
4
- data.tar.gz: 84889f89cedcfc4b030015d63295992c75534bd6efaea86e9a571780e5e85be4
3
+ metadata.gz: 4971e0a129f77a7ba290f3cfaa18e0f79e47c87f481de7760282cdf4f5c5d2b9
4
+ data.tar.gz: de0f0d192d5cd0007f4dfac63c02e19306ea4c9afd839ee9fa8b8b138f4217f4
5
5
  SHA512:
6
- metadata.gz: 32422e64ce1f4053f310bf57a4950831c8214dbd3b73c1cfd3199f93c2889da1dcbf3fcc688b9564509f95118ccf011f844ba973a07107979892a7df01b06d16
7
- data.tar.gz: 00b1e2177e78009a05f682dbd668badc6c56cdbceee73346e7de3fe3c766838fa6d1804c5a02db5ed82b84d451c72342f327cb8da6158170513ff4218ae23533
6
+ metadata.gz: 6143b96c29cf2f7af0014cb03163fedb47d3aaccf09a53b5e3b38d12cde87b6d1bb67658a2623ba034fd9fe982730b68a46d0ed4aff13a20854c3b42b24a7bfb
7
+ data.tar.gz: 948fdc78d4d0dd9c9b72a0685c738d3500747b2cb67946ece82d58edaa8fcd446c26e805a219817db398947f1955bccb43f4642e38f4a1477c666ebb8a198eb4
@@ -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.20'
23
23
  s.summary = %q{Fluent Syslog TLS output plugin}
24
24
  s.authors = ['thomas morgan']
25
25
  s.email = ['tm@iprog.com']
@@ -39,10 +39,14 @@ module SyslogTls
39
39
  @verify_cert_name = verify_cert_name
40
40
  @ssl_version = ssl_version
41
41
  @retries = max_retries
42
+ timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")
43
+ puts "[#{timestamp}] in initialize: #{idle_timeout}"
42
44
  connect
43
45
  end
44
46
 
45
47
  def connect
48
+ timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")
49
+ puts "[#{timestamp}] in connect"
46
50
  @socket = get_ssl_connection
47
51
  begin
48
52
  begin
@@ -59,6 +63,8 @@ module SyslogTls
59
63
  end
60
64
 
61
65
  def get_tcp_connection
66
+ timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")
67
+ puts "[#{timestamp}] in get_tcp_connection"
62
68
  tcp = nil
63
69
 
64
70
  family = Socket::Constants::AF_UNSPEC
@@ -72,20 +78,17 @@ module SyslogTls
72
78
  tcp.setsockopt(Socket::SOL_SOCKET, Socket::Constants::SO_REUSEADDR, true)
73
79
  tcp.setsockopt(Socket::SOL_SOCKET, Socket::Constants::SO_REUSEPORT, true)
74
80
  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}"
81
+ rescue Errno::EINPROGRESS
82
+ select_with_timeout(tcp, :connect_write)
83
+ begin
84
+ tcp.connect_nonblock(sock_addr)
85
+ rescue Errno::EISCONN
86
+ # all good
87
+ rescue SystemCallError
88
+ tcp.close rescue nil
89
+ raise
90
+ end
91
+ rescue SystemCallError
89
92
  tcp.close rescue nil
90
93
  raise
91
94
  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.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - thomas morgan