logstash-input-unix 2.0.1 → 2.0.2
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 +3 -0
- data/lib/logstash/inputs/unix.rb +4 -0
- data/logstash-input-unix.gemspec +1 -1
- data/spec/spec_helper.rb +6 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 484bab62756214f845f86b5320418e2aa9c2c2cc
|
4
|
+
data.tar.gz: 10b4ff8af8161fb2e88952afeb4c35b0d0fd816e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0e4856a8fbc188dbfcc3da699924344001a02a814f1be6872db42d028a706fbabc7e8357497de4a678d15ee77cacc70d9c9fb282b91f76c8aa35ef30f25ac10
|
7
|
+
data.tar.gz: 223f534b0c67b44ffc353bc2c3f13a252581a91b9853abce7c502e69f8d59e5f6b8381cb8c379bd359fa073544988b1f3d650d8ddd5715d70a9369ac015ad1ed
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 2.0.2
|
2
|
+
- Make plugin and spec work when Thread.abort_on_exception is true
|
3
|
+
|
1
4
|
## 2.0.0
|
2
5
|
- Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
|
3
6
|
instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
|
data/lib/logstash/inputs/unix.rb
CHANGED
@@ -125,6 +125,10 @@ class LogStash::Inputs::Unix < LogStash::Inputs::Base
|
|
125
125
|
handle_socket(@client_socket, output_queue)
|
126
126
|
end
|
127
127
|
end
|
128
|
+
rescue IOError
|
129
|
+
# if stop is called during @server_socket.accept
|
130
|
+
# the thread running `run` will raise an IOError
|
131
|
+
# We catch IOError here and do nothing, just let the method terminate
|
128
132
|
end # def run
|
129
133
|
|
130
134
|
public
|
data/logstash-input-unix.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-input-unix'
|
4
|
-
s.version = '2.0.
|
4
|
+
s.version = '2.0.2'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Read events over a UNIX socket."
|
7
7
|
s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
|
data/spec/spec_helper.rb
CHANGED
@@ -19,8 +19,12 @@ class UnixSocketHelper
|
|
19
19
|
|
20
20
|
def loop(forever=false)
|
21
21
|
@thread = Thread.new do
|
22
|
-
|
23
|
-
|
22
|
+
begin
|
23
|
+
s = @socket.accept
|
24
|
+
s.puts "hi" while forever
|
25
|
+
rescue Errno::EPIPE
|
26
|
+
# ...
|
27
|
+
end
|
24
28
|
end
|
25
29
|
self
|
26
30
|
end
|