logstash-input-tcp 6.4.15-java → 6.4.17-java
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/logstash/inputs/tcp.rb +1 -1
- data/lib/logstash-input-tcp_jars.rb +8 -8
- data/spec/inputs/tcp_spec.rb +35 -9
- data/vendor/jar-dependencies/io/netty/netty-buffer/{4.1.137.Final/netty-buffer-4.1.137.Final.jar → 4.1.138.Final/netty-buffer-4.1.138.Final.jar} +0 -0
- data/vendor/jar-dependencies/io/netty/netty-codec/{4.1.137.Final/netty-codec-4.1.137.Final.jar → 4.1.138.Final/netty-codec-4.1.138.Final.jar} +0 -0
- data/vendor/jar-dependencies/io/netty/netty-common/{4.1.137.Final/netty-common-4.1.137.Final.jar → 4.1.138.Final/netty-common-4.1.138.Final.jar} +0 -0
- data/vendor/jar-dependencies/io/netty/netty-handler/{4.1.137.Final/netty-handler-4.1.137.Final.jar → 4.1.138.Final/netty-handler-4.1.138.Final.jar} +0 -0
- data/vendor/jar-dependencies/io/netty/netty-resolver/{4.1.137.Final/netty-resolver-4.1.137.Final.jar → 4.1.138.Final/netty-resolver-4.1.138.Final.jar} +0 -0
- data/vendor/jar-dependencies/io/netty/netty-transport/{4.1.137.Final/netty-transport-4.1.137.Final.jar → 4.1.138.Final/netty-transport-4.1.138.Final.jar} +0 -0
- data/vendor/jar-dependencies/io/netty/netty-transport-native-unix-common/{4.1.137.Final/netty-transport-native-unix-common-4.1.137.Final.jar → 4.1.138.Final/netty-transport-native-unix-common-4.1.138.Final.jar} +0 -0
- data/vendor/jar-dependencies/org/logstash/inputs/logstash-input-tcp/6.4.17/logstash-input-tcp-6.4.17.jar +0 -0
- data/version +1 -1
- metadata +10 -10
- data/vendor/jar-dependencies/org/logstash/inputs/logstash-input-tcp/6.4.15/logstash-input-tcp-6.4.15.jar +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e4b4f7a07c617f29bad1e28a5712f1c6c73f528f32fbe60961ba6b5f06db42ad
|
|
4
|
+
data.tar.gz: 0566e4a3a735468dbae2448e3dc5881769ebe8f55f1ff1988766dfc2da2d637c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a355e7c499d916fbc6761cabd5821dedae49155d5ba4458ff30454d24c6daae59ce49f3d1276833cc679ee3a86666194a163f98213aa078268f26601fa553841
|
|
7
|
+
data.tar.gz: 40d9d2ffbd6e70a14f513da9533c69150c68ea462d8e25ff05d2e96c5824e7833719bc410daca98b83737df15ba98c5dee281dc492f859cc9368e028ae0ea079
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## 6.4.17
|
|
2
|
+
- Update Netty dependency to 4.1.138.Final [#289](https://github.com/logstash-plugins/logstash-input-tcp/pull/289)
|
|
3
|
+
|
|
4
|
+
## 6.4.16
|
|
5
|
+
- Fix for processing the HA Proxy protocol, considering the line can be split in multiple buffers. [#287](https://github.com/logstash-plugins/logstash-input-tcp/pull/287)
|
|
6
|
+
|
|
1
7
|
## 6.4.15
|
|
2
8
|
- Update Netty dependency to 4.1.137.Final [#283](https://github.com/logstash-plugins/logstash-input-tcp/pull/283)
|
|
3
9
|
|
data/lib/logstash/inputs/tcp.rb
CHANGED
|
@@ -181,7 +181,7 @@ class LogStash::Inputs::Tcp < LogStash::Inputs::Base
|
|
|
181
181
|
validate_ssl_config!
|
|
182
182
|
|
|
183
183
|
if server?
|
|
184
|
-
@loop = InputLoop.new(@id, @host, @port, DecoderImpl.new(@codec, self), @tcp_keep_alive, java_ssl_context)
|
|
184
|
+
@loop = InputLoop.new(@id, @host, @port, DecoderImpl.new(@codec, self), @tcp_keep_alive, java_ssl_context, @proxy_protocol)
|
|
185
185
|
end
|
|
186
186
|
end
|
|
187
187
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# AUTOGENERATED BY THE GRADLE SCRIPT. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
require 'jar_dependencies'
|
|
4
|
-
require_jar('io.netty', 'netty-handler', '4.1.
|
|
4
|
+
require_jar('io.netty', 'netty-handler', '4.1.138.Final')
|
|
5
5
|
require_jar('commons-io', 'commons-io', '2.17.0')
|
|
6
|
-
require_jar('io.netty', 'netty-transport-native-unix-common', '4.1.
|
|
7
|
-
require_jar('io.netty', 'netty-codec', '4.1.
|
|
8
|
-
require_jar('io.netty', 'netty-transport', '4.1.
|
|
9
|
-
require_jar('io.netty', 'netty-resolver', '4.1.
|
|
10
|
-
require_jar('io.netty', 'netty-buffer', '4.1.
|
|
11
|
-
require_jar('io.netty', 'netty-common', '4.1.
|
|
12
|
-
require_jar('org.logstash.inputs', 'logstash-input-tcp', '6.4.
|
|
6
|
+
require_jar('io.netty', 'netty-transport-native-unix-common', '4.1.138.Final')
|
|
7
|
+
require_jar('io.netty', 'netty-codec', '4.1.138.Final')
|
|
8
|
+
require_jar('io.netty', 'netty-transport', '4.1.138.Final')
|
|
9
|
+
require_jar('io.netty', 'netty-resolver', '4.1.138.Final')
|
|
10
|
+
require_jar('io.netty', 'netty-buffer', '4.1.138.Final')
|
|
11
|
+
require_jar('io.netty', 'netty-common', '4.1.138.Final')
|
|
12
|
+
require_jar('org.logstash.inputs', 'logstash-input-tcp', '6.4.17')
|
data/spec/inputs/tcp_spec.rb
CHANGED
|
@@ -35,6 +35,23 @@ describe LogStash::Inputs::Tcp, :ecs_compatibility_support do
|
|
|
35
35
|
|
|
36
36
|
let(:port) { get_port }
|
|
37
37
|
|
|
38
|
+
def queue_pop_with_timeout(seconds, queue)
|
|
39
|
+
start = Time.now
|
|
40
|
+
deadline = start + seconds
|
|
41
|
+
item = nil
|
|
42
|
+
until item || Time.now >= deadline
|
|
43
|
+
begin
|
|
44
|
+
item = queue.pop(true) # raises ThreadError if empty
|
|
45
|
+
rescue ThreadError
|
|
46
|
+
sleep 0.1
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
if item == nil
|
|
50
|
+
raise "Elapsed #{Time.now - start} seconds before pop a value"
|
|
51
|
+
end
|
|
52
|
+
return item
|
|
53
|
+
end
|
|
54
|
+
|
|
38
55
|
context "codec (PR #1372)" do
|
|
39
56
|
it "switches from plain to line" do
|
|
40
57
|
require "logstash/codecs/plain"
|
|
@@ -108,18 +125,27 @@ describe LogStash::Inputs::Tcp, :ecs_compatibility_support do
|
|
|
108
125
|
}
|
|
109
126
|
CONFIG
|
|
110
127
|
|
|
111
|
-
events = input(conf) do |
|
|
128
|
+
events = input(conf) do |_, queue|
|
|
112
129
|
socket = Stud::try(5.times) { TCPSocket.new("127.0.0.1", port) }
|
|
113
|
-
socket.
|
|
130
|
+
socket.write("PROXY TCP4 1.2.3.4 5.6.7.8 1234 5678\r")
|
|
114
131
|
socket.flush
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
132
|
+
# proceed with the rest of data writing in a separate thread
|
|
133
|
+
# so that crates some interleaving in the buffers seen on network layer
|
|
134
|
+
Thread.new do
|
|
135
|
+
sleep(1)
|
|
136
|
+
begin
|
|
137
|
+
socket.write("\n")
|
|
138
|
+
event_count.times do |i|
|
|
139
|
+
# unicode smiley for testing unicode support!
|
|
140
|
+
socket.puts("#{i} ☹")
|
|
141
|
+
socket.flush
|
|
142
|
+
end
|
|
143
|
+
socket.close
|
|
144
|
+
rescue => e
|
|
145
|
+
puts "Error while writing to the socket #{e.backtrace}"
|
|
146
|
+
end
|
|
119
147
|
end
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
event_count.times.collect {queue.pop}
|
|
148
|
+
event_count.times.collect { queue_pop_with_timeout(5, queue) }
|
|
123
149
|
end
|
|
124
150
|
|
|
125
151
|
expect(events.length).to eq(event_count)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.4.
|
|
1
|
+
6.4.17
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: logstash-input-tcp
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.4.
|
|
4
|
+
version: 6.4.17
|
|
5
5
|
platform: java
|
|
6
6
|
authors:
|
|
7
7
|
- Elastic
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-
|
|
10
|
+
date: 2026-09-15 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: logstash-core-plugin-api
|
|
@@ -245,14 +245,14 @@ files:
|
|
|
245
245
|
- spec/inputs/tcp_spec.rb
|
|
246
246
|
- spec/spec_helper.rb
|
|
247
247
|
- vendor/jar-dependencies/commons-io/commons-io/2.17.0/commons-io-2.17.0.jar
|
|
248
|
-
- vendor/jar-dependencies/io/netty/netty-buffer/4.1.
|
|
249
|
-
- vendor/jar-dependencies/io/netty/netty-codec/4.1.
|
|
250
|
-
- vendor/jar-dependencies/io/netty/netty-common/4.1.
|
|
251
|
-
- vendor/jar-dependencies/io/netty/netty-handler/4.1.
|
|
252
|
-
- vendor/jar-dependencies/io/netty/netty-resolver/4.1.
|
|
253
|
-
- vendor/jar-dependencies/io/netty/netty-transport-native-unix-common/4.1.
|
|
254
|
-
- vendor/jar-dependencies/io/netty/netty-transport/4.1.
|
|
255
|
-
- vendor/jar-dependencies/org/logstash/inputs/logstash-input-tcp/6.4.
|
|
248
|
+
- vendor/jar-dependencies/io/netty/netty-buffer/4.1.138.Final/netty-buffer-4.1.138.Final.jar
|
|
249
|
+
- vendor/jar-dependencies/io/netty/netty-codec/4.1.138.Final/netty-codec-4.1.138.Final.jar
|
|
250
|
+
- vendor/jar-dependencies/io/netty/netty-common/4.1.138.Final/netty-common-4.1.138.Final.jar
|
|
251
|
+
- vendor/jar-dependencies/io/netty/netty-handler/4.1.138.Final/netty-handler-4.1.138.Final.jar
|
|
252
|
+
- vendor/jar-dependencies/io/netty/netty-resolver/4.1.138.Final/netty-resolver-4.1.138.Final.jar
|
|
253
|
+
- vendor/jar-dependencies/io/netty/netty-transport-native-unix-common/4.1.138.Final/netty-transport-native-unix-common-4.1.138.Final.jar
|
|
254
|
+
- vendor/jar-dependencies/io/netty/netty-transport/4.1.138.Final/netty-transport-4.1.138.Final.jar
|
|
255
|
+
- vendor/jar-dependencies/org/logstash/inputs/logstash-input-tcp/6.4.17/logstash-input-tcp-6.4.17.jar
|
|
256
256
|
- version
|
|
257
257
|
homepage: https://elastic.co/logstash
|
|
258
258
|
licenses:
|