Created
May 26, 2016 13:44
-
-
Save dougneal/e0f131750c6ae4a4e1078d6106cb0d17 to your computer and use it in GitHub Desktop.
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' | |
count=1 | |
while true | |
puts "Opening #{count}" | |
s = TCPSocket.open('localhost', 35453) | |
puts "Closing #{count}" | |
s.close() | |
count += 1 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment