fluent-plugin-syslog-tls-with-backoff-test 2.1.8 → 2.1.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad3d56500427677430a1dacb0fe2b2dd63f0299b053f9661e592f5580b6df27c
|
4
|
+
data.tar.gz: da6195eba8d7c1b076db40e23435f6ca2fe52f43ccd5ee4355781a959c81a7ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60eb85f3205726d8b41d3cf7ba76b0a924954e26d463017562228133a0c7c4a2a373f693351877a56d2094503a4e4009287b533b6fc0dac5b606d0398f7539a5
|
7
|
+
data.tar.gz: 1a937c6fa35916f2a6ecc9805d5f41475b3d4fde552eabeacf72213394f359b32e8e5ffb5b595fab4f05191975d526b0d10d4cb89193cacf805efe1f0ce429f3
|
@@ -40,7 +40,6 @@ def can_write(host_ip_port)
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
rescue => e
|
43
|
-
pp "Error in can_write: #{e.message}"
|
44
43
|
return 0
|
45
44
|
end
|
46
45
|
return 1
|
@@ -57,7 +56,6 @@ def increase_retry(host_ip_port)
|
|
57
56
|
end
|
58
57
|
end
|
59
58
|
rescue => e
|
60
|
-
pp "Error in increase_retry: #{e.message}"
|
61
59
|
end
|
62
60
|
end
|
63
61
|
|
@@ -14,7 +14,6 @@ module SyslogTls
|
|
14
14
|
def canwrite
|
15
15
|
time_passed_since_failure = -1
|
16
16
|
if @failTime != nil
|
17
|
-
pp "canwrite :: @failTime != nil :: retriesToDo :: " + @retriesToDo.to_s + " failTime :: " + @failTime.to_s
|
18
17
|
time_passed_since_failure = Time.now - @failTime
|
19
18
|
time_passed_since_failure = time_passed_since_failure.round(2)
|
20
19
|
end
|
@@ -52,7 +52,6 @@ module SyslogTls
|
|
52
52
|
rescue Errno::EAGAIN, Errno::EWOULDBLOCK, IO::WaitReadable
|
53
53
|
select_with_timeout(@socket, :connect_read) && retry
|
54
54
|
rescue IO::WaitWritable
|
55
|
-
pp "connect :: select_with_timeout(@socket, :connect_write) && retry time :: " + Time.now.to_s
|
56
55
|
select_with_timeout(@socket, :connect_write) && retry
|
57
56
|
end
|
58
57
|
rescue Errno::ETIMEDOUT
|
@@ -76,7 +75,6 @@ module SyslogTls
|
|
76
75
|
tcp.setsockopt(Socket::SOL_SOCKET, Socket::Constants::SO_REUSEPORT, true)
|
77
76
|
tcp.connect_nonblock(sock_addr)
|
78
77
|
rescue Errno::EINPROGRESS
|
79
|
-
pp "get_tcp_connection :: select_with_timeout(tcp, :connect_write) time :: " + Time.now.to_s
|
80
78
|
select_with_timeout(tcp, :connect_write)
|
81
79
|
begin
|
82
80
|
tcp.connect_nonblock(sock_addr)
|
@@ -160,7 +158,6 @@ module SyslogTls
|
|
160
158
|
if e.is_a?(OpenSSL::SSL::SSLError) && e.message !~ /write would block/
|
161
159
|
raise e
|
162
160
|
else
|
163
|
-
pp "do_write :: select_with_timeout(@socket, :write) time :: " + Time.now.to_s
|
164
161
|
select_with_timeout(@socket, :write) && retry
|
165
162
|
end
|
166
163
|
end
|
@@ -172,8 +169,6 @@ module SyslogTls
|
|
172
169
|
|
173
170
|
def select_with_timeout(tcp, type)
|
174
171
|
host_ip_port = host + ":" + port.to_s
|
175
|
-
pp "select_with_timeout :: time :: " + Time.now.to_s + " :: host_ip_port :: " + host_ip_port
|
176
|
-
pp "select_with_timeout :: type :: " + type.to_s
|
177
172
|
case type
|
178
173
|
when :connect_read
|
179
174
|
args = [[tcp], nil, nil, CONNECT_TIMEOUT]
|
@@ -187,7 +182,6 @@ module SyslogTls
|
|
187
182
|
raise "Unknown select type #{type}"
|
188
183
|
end
|
189
184
|
if type.to_s == "connect_write"
|
190
|
-
pp "select_with_timeout :: if :: time :: " + Time.now.to_s + " :: host_ip_port :: " + host_ip_port
|
191
185
|
if can_write(host_ip_port) == 1
|
192
186
|
io_select_return = IO.select(*args)
|
193
187
|
ready_sockets, _, _ = io_select_return
|
@@ -202,8 +196,6 @@ module SyslogTls
|
|
202
196
|
# raise("Failed to write #{type}")
|
203
197
|
end
|
204
198
|
else
|
205
|
-
reset_tries(host_ip_port)
|
206
|
-
pp "select_with_timeout :: else :: time :: " + Time.now.to_s + " :: host_ip_port :: " + host_ip_port
|
207
199
|
IO.select(*args) || raise("Socket timeout during #{type}")
|
208
200
|
end
|
209
201
|
end
|
data/lib/syslog_tls/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-syslog-tls-with-backoff-test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thomas morgan
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-05-
|
12
|
+
date: 2024-05-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|