Last active
January 1, 2016 15:19
-
-
Save soumith/8163788 to your computer and use it in GitHub Desktop.
tcp-memleaks.lua
This file contains hidden or 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
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