logstash-input-unix 2.0.1 → 2.0.2

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
  SHA1:
3
- metadata.gz: 3cf4b92d3c5e0b2f705e1e317b87b38a854873d1
4
- data.tar.gz: 1ae25a7a705b8eaf759bc1d33fead4e592824cc3
3
+ metadata.gz: 484bab62756214f845f86b5320418e2aa9c2c2cc
4
+ data.tar.gz: 10b4ff8af8161fb2e88952afeb4c35b0d0fd816e
5
5
  SHA512:
6
- metadata.gz: fec5d969538d16411af2beed56c84abaf182229f9db2bcddf778fcaa7c7f5bfb7e4ae3c3e3529615ac9570ed50ebe74d244c532cb88dee6b6be86a5e5e91062e
7
- data.tar.gz: 379991f5925d912afdef9b5ba4c30e156ff6a1562a3e79a033a6bb4584fc5dc645b1efd589ada22990a9c6e2abda83014197d670668f6015d9c9be00201f5160
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
@@ -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
@@ -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.1'
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
- s = @socket.accept
23
- s.puts "hi" while forever
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-unix
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic