Last active
December 12, 2015 00:09
-
-
Save kazjote/4682164 to your computer and use it in GitHub Desktop.
armon/bloomd will crash after a few runs of these
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'socket' | |
ADDRESS = '127.0.0.1' | |
PORT = 8673 | |
FILTER_NAME = 'filter_crasher' | |
20.times do |i| | |
socket = TCPSocket.new ADDRESS, PORT | |
if i % 2 == 0 | |
socket.puts "create #{FILTER_NAME}" | |
else | |
socket.puts "drop #{FILTER_NAME}" | |
end | |
socket.close | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment