Bug feioso no UDP e possivelmente no TCP também.
This commit is contained in:
parent
9297b074d5
commit
c98dc99199
14 changed files with 59 additions and 50 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue