Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/logstash/outputs/tcp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ def register
client_socket.sysread(16384) if r.any?

# Now send the payload
client_socket.syswrite(payload) if w.any?
written = client_socket.syswrite(payload) if w.any?
while payload.length > written do
written += client_socket.syswrite(payload) if w.any?
end
rescue => e
@logger.warn("tcp output exception", :host => @host, :port => @port,
:exception => e, :backtrace => e.backtrace)
Expand Down