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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82b048e234fd7b1f492bc31cd33ace899272ff65
4
- data.tar.gz: c922fd049b1d997d2d85676e0dd5c08aa5acfa11
3
+ metadata.gz: c05b3b89727781f2dc3a39344df02cde73b1d1fb
4
+ data.tar.gz: 32f8ef6bcd31b8c0a25f3eb441aa0fbfe00d5ec1
5
5
  SHA512:
6
- metadata.gz: 972029cb16b8302bdc01d7fae050ecc4b303205fbe992162007f79eda2a0226fbc9c5e2ffbe076d3d2b623e85f1cddcacf6a6b65b968cb53749ed77d285e4fbc
7
- data.tar.gz: 2ce8a9013f61d1b6b42e2c74594de8ae4f2ff38010d94267dc7fd6c44039bf8d37ff164f61a9205bad8cffe44cd518a4e9629cc4ad1086ddfb1e76847f191910
6
+ metadata.gz: 56ed4d6f9acaaae3f20fa17c13fa76e5e2759eacb5112f8e63f9aebe1ea7e5d4cbed6dfa04668debb9c61b0cfe33806ad0f087eac4fd33650298c86a94208303
7
+ data.tar.gz: 4578ae550b9944b837ce2c7a6c03045604365277ab2eabbb248535e8029b3de9eda4009eebc069ae10bbcd1035e7e5958c62721c7e02822372fb708f94484702
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 3.0.3
2
+ - fix performance regression calling IO.select for every packet #21
3
+
1
4
  ## 3.0.2
2
5
  - Relax constraint on logstash-core-plugin-api to >= 1.60 <= 2.99
3
6
 
@@ -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 message and add to queue
79
- payload, client = @udp.recvfrom_nonblock(@buffer_size)
80
- next if payload.empty?
81
- @input_to_worker.push([payload, client])
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
@@ -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.2'
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.2
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-07-14 00:00:00.000000000 Z
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.6.3
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.