Skip to content

Commit

Permalink
make plugin work with new concurrency model
Browse files Browse the repository at this point in the history
Fixes #21
  • Loading branch information
jsvd committed Sep 13, 2016
1 parent 59a1f06 commit b2d00ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/logstash/outputs/tcp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
class LogStash::Outputs::Tcp < LogStash::Outputs::Base

config_name "tcp"
concurrency :single

default :codec, "json"

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b2d00ad

Please sign in to comment.