Skip to content

Instantly share code, notes, and snippets.

@dougneal
Created May 26, 2016 13:44
Show Gist options
  • Save dougneal/e0f131750c6ae4a4e1078d6106cb0d17 to your computer and use it in GitHub Desktop.
Save dougneal/e0f131750c6ae4a4e1078d6106cb0d17 to your computer and use it in GitHub Desktop.
#!/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