Toujours de gros problème de fuite mémoire avec le serveur web ;-(

This commit is contained in:
Christian Zufferey
2019-01-26 20:59:05 +01:00
parent 604267dbff
commit 1c003a13b6
4 changed files with 71 additions and 10 deletions

View File

@@ -0,0 +1,24 @@
-- petit script de serveur WEB pour tester les fuite mémoire
print("\n web_srv_test2.lua zf190126.2051 \n")
function receiver(sck, data)
print(data)
sck:close()
end
sv = net.createServer()
sv:listen(80, function(conn)
conn:on("receive", function(client, request)
print(request)
-- client:close()
conn:send("<h1> ESP8266<BR>Server is working!</h1>"..tmr.now().."\n\n")
conn:on("sent", function(c) c:close() end)
end)
-- conn:on("sent", function(c) c:close() end)
end)