You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can use gigs of memory in a few seconds with this example program:
local dgram = require('dgram')
local one = dgram.createSocket('udp4')
one:bind(2000,"127.0.0.1")
local two = dgram.createSocket('udp4')
two:bind(2001,"127.0.0.1")
local echo = function(sock)
return function(msg, rinfo)
collectgarbage()
sock:send("ping", rinfo.port, rinfo.address, function(err)
if err then
p('udp send errored',err)
end
end)
end
end
one:on('message',echo(one))
two:on('message',echo(two))
one:send("ping", 2001, "127.0.0.1", function(err)
if err then
p('udp send errored',err)
end
end)
The text was updated successfully, but these errors were encountered:
received udp packet seem to never be freed.
I can use gigs of memory in a few seconds with this example program:
The text was updated successfully, but these errors were encountered: