mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-07-12 22:03:31 +02:00
Bug feioso no UDP e possivelmente no TCP também.
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
require "luasocket"
|
||||
require "ltn12"
|
||||
require "mime"
|
||||
|
||||
dofile("testsupport.lua")
|
||||
|
||||
local qptest = "qptest.bin"
|
||||
@ -92,7 +96,7 @@ local function transform(input, output, filter)
|
||||
source = ltn12.source.chain(source, filter)
|
||||
end
|
||||
--what = not what
|
||||
ltn12.pump(source, sink)
|
||||
ltn12.pump.all(source, sink)
|
||||
end
|
||||
|
||||
local function encode_qptest(mode)
|
||||
|
@ -1,3 +1,5 @@
|
||||
require "luasocket"
|
||||
|
||||
host = host or "localhost"
|
||||
port = port or "8080"
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
require "luasocket"
|
||||
|
||||
host = host or "localhost"
|
||||
port = port or "8080"
|
||||
|
||||
@ -22,8 +24,6 @@ while 1 do
|
||||
print("server: closing connection...")
|
||||
break
|
||||
end
|
||||
print(command);
|
||||
|
||||
(loadstring(command))()
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user