Skip to content

Instantly share code, notes, and snippets.

@soumith
Last active January 1, 2016 15:19
Show Gist options
  • Save soumith/8163788 to your computer and use it in GitHub Desktop.
Save soumith/8163788 to your computer and use it in GitHub Desktop.
tcp-memleaks.lua
local tcp = require 'socket'
require 'sys'
function start()
while true do
print(os.date())
local conn = tcp.connect('localhost',8483)
conn:send('ealasjdiasldjeladj')
conn:close()
sys.sleep(0.01)
end
end
start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment