fluent-plugin-syslog-gobi-tls 2.1.21 → 2.1.23

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: 88988fa5a366b262eaf47ca30b2ac0d9cf0e6ff058c97bb0ab8b5d1252bab789
4
- data.tar.gz: 2d8642ac3bfb8fd70e74ebb2b53fb11eec7ce8b8bac5b1174972128adf0b67a7
3
+ metadata.gz: e555261450c80ef498e8ed6ff392fb8f1851402ef70efddc454b6bf27d4bf152
4
+ data.tar.gz: 0bd6d64f840b0c04de78ffb0af28c28f3f61904ee77b9ebd25836a1948ed5690
5
5
  SHA512:
6
- metadata.gz: 3e4f1da8dcdeabcfe6a92bfca26db8d73393ae2c0de4b6a3ff080f2c7ee8a7ffdcf0dacb3cfe7daac9197f3ded5bbe8eca5bfe864beae450226aaf2a484d1b85
7
- data.tar.gz: 02aa4071e2eadf4692461799336fd6da2a31ec77aa47f4f84bcf1a155d9bd3de6b546fc7f5bdf97075f55353aa6380fe7064a39e8cbd4378a496c6b882912a16
6
+ metadata.gz: c27b36e72be47500ed698f6d1709d71d4578610a927ccde3d6516de12893d9f807e1978a0f58e17c0f8519f68973e16be584bf75e9a8f735dbbe886baa76a9fd
7
+ data.tar.gz: f175f03aeddf9bf654769bfecddcbb92d20c4c1aa4bf4f92ce4aacabcd15cbe7178fd4fba10cfa7c6ce61d92abd76e632277bc110f8ed21a1b497f14941585ef
@@ -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.21'
22
+ s.version = '2.1.23'
23
23
  s.summary = %q{Fluent Syslog TLS output plugin}
24
24
  s.authors = ['thomas morgan']
25
25
  s.email = ['tm@iprog.com']
@@ -57,7 +57,9 @@ module SyslogTls
57
57
  timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")
58
58
  puts "[#{timestamp}] in connect EAGAIN rescue: #{e.class} exception #{e.message} "
59
59
  select_with_timeout(@socket, :connect_read) && retry
60
- rescue IO::WaitWritable
60
+ rescue IO::WaitWritable => e
61
+ timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")
62
+ puts "[#{timestamp}] in connect WaitWritable rescue: #{e.class} exception #{e.message} "
61
63
  select_with_timeout(@socket, :connect_write) && retry
62
64
  end
63
65
  rescue Errno::ETIMEDOUT
@@ -83,16 +85,29 @@ module SyslogTls
83
85
  tcp.setsockopt(Socket::SOL_SOCKET, Socket::Constants::SO_REUSEPORT, true)
84
86
  tcp.connect_nonblock(sock_addr)
85
87
  rescue Errno::EINPROGRESS
88
+ timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")
89
+ puts "[#{timestamp}] in get_tcp_connection EINPROGRESS exception during TCP connection:"
90
+ puts "[#{timestamp}] Message: #{e.message}"
86
91
  select_with_timeout(tcp, :connect_write)
87
92
  begin
93
+ timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")
94
+ puts "[#{timestamp}] in get_tcp_connection after select_with_timeout"
88
95
  tcp.connect_nonblock(sock_addr)
89
96
  rescue Errno::EISCONN
97
+ timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")
98
+ puts "[#{timestamp}] in get_tcp_connection in EISCONN"
90
99
  # all good
91
100
  rescue SystemCallError
101
+ timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")
102
+ puts "[#{timestamp}] in get_tcp_connection SystemCallError exception during TCP connection:"
103
+ puts "[#{timestamp}] Message: #{e.message}"
92
104
  tcp.close rescue nil
93
105
  raise
94
106
  end
95
107
  rescue SystemCallError
108
+ timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")
109
+ puts "[#{timestamp}] in get_tcp_connection SystemCallError outer exception during TCP connection:"
110
+ puts "[#{timestamp}] Message: #{e.message}"
96
111
  tcp.close rescue nil
97
112
  raise
98
113
  end
@@ -102,6 +117,8 @@ module SyslogTls
102
117
  end
103
118
 
104
119
  def get_ssl_connection
120
+ timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")
121
+ puts "[#{timestamp}] in get_ssl_connection"
105
122
  tcp = get_tcp_connection
106
123
 
107
124
  ctx = OpenSSL::SSL::SSLContext.new
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.21
4
+ version: 2.1.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - thomas morgan