diff options
| author | ame <[email protected]> | 2024-02-08 13:03:13 -0600 |
|---|---|---|
| committer | ame <[email protected]> | 2024-02-08 13:03:13 -0600 |
| commit | 6df5a49d612737784e824e91cac645447a3d3080 (patch) | |
| tree | ce915237c42ddd79014b668f11713d2ae2b1a677 /tests | |
| parent | 6c6146a89f5d4f2e615c8e97f26c896d50ff6d08 (diff) | |
globals mostly working
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/net.lua | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tests/net.lua b/tests/net.lua index 34943db..9a7b49c 100644 --- a/tests/net.lua +++ b/tests/net.lua @@ -7,10 +7,13 @@ sleep = function(a) end
end
aea = 5
-_G.ww = llib
+--_G.wo = llib
+--_G.ww = llib
--llib.io.pprint(_G)
llib.io.pprint(llib.net.listen(
function(server)
+ --llib = nil
+ llib.io.pprint(_G)
print("wowa")
server:all("/*", function(res, req)
--llib.io.pprint(res)
@@ -20,17 +23,19 @@ llib.io.pprint(llib.net.listen( --res.Code = 201
--wwo.sleep(1)
--wwo.llib.io.pprint(wwo.sleep)
- require "llib"
- llib.io.pprint(_G)
- llib.config.set({max_depth=4})
- llib.io.pprint(_G.ww)
+ --require "llib"
+ --llib.io.pprint(_G)
+
+ --_G.llib.io.pprint(_G.ww)
+ --llib.io.pprint(_G.wo)
--print("hi from first")
--llib.io.pprint(llib.crypto.md5("hewwo"))
+ --_G.sleep(1)
end)
server:GET("/aa", function(res, req)
res.header["Content-Type"] = "text/plain"
- server:lock()
+ --_G.server:lock()
res:write("hi\n")
res:write("next")
res:close()
|
