fluent-plugin-syslog-tls-with-backoff-test 2.1.8 → 2.1.9

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: 80c2a2dd311df96a2fb4b48ed694317e454c63f2740afc8de003b2eeb233fe18
4
- data.tar.gz: adcb959b2f4cd51cf7e9c4178f216a5539e898108a69f43fed1785ed2c565dbe
3
+ metadata.gz: ad3d56500427677430a1dacb0fe2b2dd63f0299b053f9661e592f5580b6df27c
4
+ data.tar.gz: da6195eba8d7c1b076db40e23435f6ca2fe52f43ccd5ee4355781a959c81a7ab
5
5
  SHA512:
6
- metadata.gz: 0a1efc9bbb39d84a55e3c56c9294b709a09c2a9a8d50b8ee9208a631688cf35c545a4bea0d107b7ab3fe92a1530d757116486cee80f497db6798510f6ac937d8
7
- data.tar.gz: e08b727eea43b2366c697fa8997441badf73f07c10379d91b09bb398a578e41dd56fbe888773898c272d297173eeb063cac384f6400b352c9b55f43b7345b252
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
@@ -14,5 +14,5 @@
14
14
  # limitations under the License.
15
15
 
16
16
  module SyslogTls
17
- VERSION = '2.1.8'
17
+ VERSION = '2.1.9'
18
18
  end
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.8
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-21 00:00:00.000000000 Z
12
+ date: 2024-05-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd