fluent-plugin-syslog-gobi-tls 2.1.24 → 2.1.26

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: b325bd5542950ceeb1cd9ee31a67198d1c268451c8657941bfee70951ea1ffda
4
- data.tar.gz: d17370cfd8e1c2ce3d470d875dc1b926d6313f639797fefd3d60172ef897f018
3
+ metadata.gz: 3b21a2944e0cf5c885b37f52dc57327dafdde5b035f602ee5ead03d9f7a7cc20
4
+ data.tar.gz: b77c65891c59e00b798b7c63fab5603997b27a81f1c8e70423fa0257ea91a104
5
5
  SHA512:
6
- metadata.gz: 3b9eed5633bddc000a834618ea8335325101151c47bb5ca4646f71aeaf9edf4726a62f080fd065b90e00d3cc233d897e957e3c6626667b0a7b4cc096860418f1
7
- data.tar.gz: e940d6e37f835e579ce87432c0c031c4e757884cf33dced897d345386531f3d65fbe1793ee19c345b1131c6d2f1c9496f7b18a76ea04168d05da378e0a778917
6
+ metadata.gz: 9894a89cd0c93da9fcacc09f1eaf363e5a24bb4fd9c8d13eaff84a54995a3e4b5652a341b5ee734e76be4910df7ba4cec5425f028e08b0dde7e3a67162b4db90
7
+ data.tar.gz: c3514c96293b2e76bd74e12d011421f6b1ef87042fdaa63fcf015f3c0d02b4d266b5069ead0a00272db0e89bcc4c0a54aafd78742a99f3d89a728857b9dcbf8d
@@ -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.24'
22
+ s.version = '2.1.26'
23
23
  s.summary = %q{Fluent Syslog TLS output plugin}
24
24
  s.authors = ['thomas morgan']
25
25
  s.email = ['tm@iprog.com']
@@ -76,11 +76,15 @@ module SyslogTls
76
76
  family = Socket::Constants::AF_UNSPEC
77
77
  sock_type = Socket::Constants::SOCK_STREAM
78
78
  addr_info = Socket.getaddrinfo(host, port, family, sock_type, nil, nil, false).first
79
+ timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")
80
+ puts "[#{timestamp}] in get_tcp_connection addr_info: #{addr_info}"
79
81
  _, port, _, address, family, sock_type = addr_info
80
82
 
81
83
  begin
82
84
  sock_addr = Socket.sockaddr_in(port, address)
83
85
  tcp = Socket.new(family, sock_type, 0)
86
+ timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")
87
+ puts "[#{timestamp}] in get_tcp_connection tcp: #{tcp}"
84
88
  tcp.setsockopt(Socket::SOL_SOCKET, Socket::Constants::SO_REUSEADDR, true)
85
89
  tcp.setsockopt(Socket::SOL_SOCKET, Socket::Constants::SO_REUSEPORT, true)
86
90
  tcp.connect_nonblock(sock_addr)
@@ -205,7 +209,15 @@ module SyslogTls
205
209
  else
206
210
  raise "Unknown select type #{type}"
207
211
  end
208
- IO.select(*args) || raise("Socket timeout during #{type}")
212
+ # IO.select(*args) || raise("Socket timeout during #{type}")
213
+ begin
214
+ timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")
215
+ select1 = IO.select(*args)
216
+ puts "[#{timestamp}] in select_with_timeout: #{select1}"
217
+ rescue IOError => e
218
+ timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S")
219
+ puts "[#{timestamp}] Error in select_with_timeout: #{e.message}"
220
+ end
209
221
  end
210
222
 
211
223
  # 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.24
4
+ version: 2.1.26
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-10 00:00:00.000000000 Z
11
+ date: 2024-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd