From e1e17a442d521701d488f6a7873f0755878cea03 Mon Sep 17 00:00:00 2001 From: Joao Duarte Date: Mon, 12 Sep 2016 21:53:41 +0100 Subject: [PATCH 1/2] make plugin work with new concurrency model --- lib/logstash/outputs/tcp.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/logstash/outputs/tcp.rb b/lib/logstash/outputs/tcp.rb index bbdf387..0f793d2 100644 --- a/lib/logstash/outputs/tcp.rb +++ b/lib/logstash/outputs/tcp.rb @@ -13,6 +13,7 @@ class LogStash::Outputs::Tcp < LogStash::Outputs::Base config_name "tcp" + concurrency :single default :codec, "json" @@ -115,8 +116,6 @@ def register end # @ssl_enable if server? - workers_not_supported - @logger.info("Starting tcp output listener", :address => "#{@host}:#{@port}") begin @server_socket = TCPServer.new(@host, @port) From 53067fa1aaad69775df8c0215604dffa85ea4b5b Mon Sep 17 00:00:00 2001 From: Joao Duarte Date: Mon, 12 Sep 2016 21:55:54 +0100 Subject: [PATCH 2/2] bump to 4.0.0 --- CHANGELOG.md | 5 +++-- logstash-output-tcp.gemspec | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 562f209..871280b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ -## 3.2.0 - - Added SSL support to this plugin (@michaelweiser) +## 4.0.0 + - Remove deprecated `workers_not_supported` call + - Use concurrency :single ## 3.1.1 - Relax constraint on logstash-core-plugin-api to >= 1.60 <= 2.99 diff --git a/logstash-output-tcp.gemspec b/logstash-output-tcp.gemspec index 0b93be2..ea6eb6f 100644 --- a/logstash-output-tcp.gemspec +++ b/logstash-output-tcp.gemspec @@ -1,7 +1,7 @@ Gem::Specification.new do |s| s.name = 'logstash-output-tcp' - s.version = '3.2.0' + s.version = '4.0.0' s.licenses = ['Apache License (2.0)'] s.summary = "Write events over a TCP socket." 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"