logstash-output-http 5.1.1 → 5.1.2
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/LICENSE +1 -1
- data/lib/logstash/outputs/http.rb +2 -2
- data/logstash-output-http.gemspec +1 -1
- data/spec/outputs/http_spec.rb +6 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0def77507d3ea7b9d83ede431e0853c8f16e77f6249b11b62328e40cd3a0c403
|
4
|
+
data.tar.gz: 85108445896c3ea59793b997e2b73f28dbe7d4fa05cb028af09b3727a8df6e9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee4d0f5fc3152eed88be134bc5c72d99d6f2dccce346fd5bf45bcb3d4ebef72fba9b8b57c2f34dd5053f6b6550fd6a458837edc2bfd0c17d8ff3881f736a4be9
|
7
|
+
data.tar.gz: eaec797c6f1d257c0c4b8ad99d4e8fc329508ec088536f5a204dd169cbeb84efbf2649a753a8684924211be6b51eedd26acef822d8c38dea077dc9399bd634c1
|
data/CHANGELOG.md
CHANGED
data/LICENSE
CHANGED
@@ -113,7 +113,7 @@ class LogStash::Outputs::Http < LogStash::Outputs::Base
|
|
113
113
|
end # def register
|
114
114
|
|
115
115
|
def multi_receive(events)
|
116
|
-
send_events(events)
|
116
|
+
send_events(events) unless events.empty?
|
117
117
|
end
|
118
118
|
|
119
119
|
class RetryTimerTask < java.util.TimerTask
|
@@ -136,7 +136,7 @@ class LogStash::Outputs::Http < LogStash::Outputs::Base
|
|
136
136
|
|
137
137
|
pending = Queue.new
|
138
138
|
events.each {|e| pending << [e, 0]}
|
139
|
-
|
139
|
+
|
140
140
|
while popped = pending.pop
|
141
141
|
break if popped == :done
|
142
142
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-http'
|
3
|
-
s.version = '5.1.
|
3
|
+
s.version = '5.1.2'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "Sends events to a generic HTTP or HTTPS endpoint"
|
6
6
|
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"
|
data/spec/outputs/http_spec.rb
CHANGED
@@ -128,6 +128,12 @@ describe LogStash::Outputs::Http do
|
|
128
128
|
allow(subject).to receive(:log_failure).with(any_args)
|
129
129
|
end
|
130
130
|
|
131
|
+
context 'sending no events' do
|
132
|
+
it 'should not block the pipeline' do
|
133
|
+
subject.multi_receive([])
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
131
137
|
context "performing a get" do
|
132
138
|
describe "invoking the request" do
|
133
139
|
before do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.1.
|
4
|
+
version: 5.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
133
|
version: '0'
|
134
134
|
requirements: []
|
135
135
|
rubyforge_project:
|
136
|
-
rubygems_version: 2.6.
|
136
|
+
rubygems_version: 2.6.13
|
137
137
|
signing_key:
|
138
138
|
specification_version: 4
|
139
139
|
summary: Sends events to a generic HTTP or HTTPS endpoint
|