Skip to content

Commit

Permalink
Fix tcp + ssl degradation
Browse files Browse the repository at this point in the history
fluent#1729 introduced @buffer to
TCPCallbackSocket. TLSCallbackSocket has to have it to be used for
in_tcp.
  • Loading branch information
Yuki Ito committed Dec 28, 2017
1 parent 7c54760 commit 6dfd56d
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 6dfd56d

Please sign in to comment.