mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-11-08 14:28:21 +01:00
1e5e8b5ce5
Adjusted client modules. Fixed proxy bug in http.
18 lines
310 B
Lua
18 lines
310 B
Lua
function load(s)
|
|
collectgarbage()
|
|
local a = gcinfo()
|
|
_G[s] = require(s)
|
|
collectgarbage()
|
|
local b = gcinfo()
|
|
print(s .. ":\t " .. (b-a) .. "k")
|
|
end
|
|
|
|
load("socket")
|
|
load("socket.url")
|
|
load("ltn12")
|
|
load("mime")
|
|
load("socket.tp")
|
|
load("socket.smtp")
|
|
load("socket.http")
|
|
load("socket.ftp")
|