Skip to content

Commit

Permalink
Fix tcp + tls degradation
Browse files Browse the repository at this point in the history
fluent#1729 introduced @buffer to
TCPCallbackSocket. TLSCallbackSocket also has to have it to be used for
in_tcp.
  • Loading branch information
Yuki Ito committed Dec 28, 2017
1 parent bcd7d1a commit ff2f5fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/fluent/plugin_helper/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,12 @@ def write(data)
class TLSCallbackSocket < CallbackSocket
ENABLED_EVENTS = [:data, :write_complete, :close]

attr_accessor :buffer

def initialize(sock)
super("tls", sock, ENABLED_EVENTS)
@peeraddr = (@sock.to_io.peeraddr rescue PEERADDR_FAILED)
@buffer = ''
end

def write(data)
Expand Down

0 comments on commit ff2f5fa

Please sign in to comment.