lib/fluent/plugin/output_node.rb in fluent-plugin-secure-forward-0.1.3 vs lib/fluent/plugin/output_node.rb in fluent-plugin-secure-forward-0.1.4
- old
+ new
@@ -42,14 +42,16 @@
@state = :helo
@thread = nil
end
def dup
- self.class.new(
+ renewed = self.class.new(
@sender,
@shared_key,
{'host' => @host, 'port' => @port, 'hostlabel' => @hostlabel, 'username' => @username, 'password' => @password}
)
+ renewed.keepalive = @keepalive if @keepalive
+ renewed
end
def start
@thread = Thread.new(&method(:connect))
end