fluent-plugin-syslog-tls-with-backoff-test 2.1.8 → 2.1.10
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccbbeafeeac8a5366bf9339b446e7a7791f13f92f4d48a4c8e75092feee1f269
|
4
|
+
data.tar.gz: e3c384c13d3f73dd1a26fc015de73140983d3ef629d75066abb624e3da206b21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf1c18d5afaaf2c95c46746458aa10a75a5bbc6407802d4066da6a116c3543c7166f7859a2d01147a810dbb3e6fdd4d0e33a632c348897a041e01bcbb5e90231
|
7
|
+
data.tar.gz: c0619408a2321ce6b2727fa1830d4c44c85c87f230054e2492d6dfc22fa3bcb44dfa10455160979e99babb24882097a97124dc0c65647dfb67a847eb002294d6
|
@@ -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
|
@@ -203,7 +197,6 @@ module SyslogTls
|
|
203
197
|
end
|
204
198
|
else
|
205
199
|
reset_tries(host_ip_port)
|
206
|
-
pp "select_with_timeout :: else :: time :: " + Time.now.to_s + " :: host_ip_port :: " + host_ip_port
|
207
200
|
IO.select(*args) || raise("Socket timeout during #{type}")
|
208
201
|
end
|
209
202
|
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.10
|
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
|