logstash-input-udp 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/logstash/inputs/udp.rb +10 -4
- data/logstash-input-udp.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c05b3b89727781f2dc3a39344df02cde73b1d1fb
|
4
|
+
data.tar.gz: 32f8ef6bcd31b8c0a25f3eb441aa0fbfe00d5ec1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56ed4d6f9acaaae3f20fa17c13fa76e5e2759eacb5112f8e63f9aebe1ea7e5d4cbed6dfa04668debb9c61b0cfe33806ad0f087eac4fd33650298c86a94208303
|
7
|
+
data.tar.gz: 4578ae550b9944b837ce2c7a6c03045604365277ab2eabbb248535e8029b3de9eda4009eebc069ae10bbcd1035e7e5958c62721c7e02822372fb708f94484702
|
data/CHANGELOG.md
CHANGED
data/lib/logstash/inputs/udp.rb
CHANGED
@@ -75,10 +75,16 @@ class LogStash::Inputs::Udp < LogStash::Inputs::Base
|
|
75
75
|
|
76
76
|
while !stop?
|
77
77
|
next if IO.select([@udp], [], [], 0.5).nil?
|
78
|
-
#collect datagram
|
79
|
-
|
80
|
-
|
81
|
-
|
78
|
+
# collect datagram messages and add to inputworker queue
|
79
|
+
@queue_size.times {
|
80
|
+
begin
|
81
|
+
payload, client = @udp.recvfrom_nonblock(@buffer_size)
|
82
|
+
break if payload.empty?
|
83
|
+
@input_to_worker.push([payload, client])
|
84
|
+
rescue IO::EAGAINWaitReadable
|
85
|
+
break
|
86
|
+
end
|
87
|
+
}
|
82
88
|
end
|
83
89
|
ensure
|
84
90
|
if @udp
|
data/logstash-input-udp.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-input-udp'
|
4
|
-
s.version = '3.0.
|
4
|
+
s.version = '3.0.3'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Read messages as events over the network via udp."
|
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/logstash-plugin install gemname. This gem is not a stand-alone program"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-udp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
version: '0'
|
112
112
|
requirements: []
|
113
113
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.
|
114
|
+
rubygems_version: 2.4.8
|
115
115
|
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: Read messages as events over the network via udp.
|