logstash/lib/net/server.rb
Jordan Sissel f55513ba12 * In client ack mode, StompServer will only send one message at a time, waiting
for an ack for that message before sending another. Work around this:
  - batch up messages to sendmsg() and flush when there are more than 10 in the
    queue or there has been more than 1 second since flushing and the queue is
    non-empty

This increases the indexing rate by a factor of 6.
2009-09-06 23:38:04 +00:00

14 lines
283 B
Ruby

require 'rubygems'
require 'lib/net/socket'
require 'socket'
require 'stomp'
require 'uuid'
module LogStash; module Net
class MessageServer < MessageSocket
#def run
#subscribe("logstash")
#super
#end
end # class MessageServer
end; end # module LogStash::Net