Bug feioso no UDP e possivelmente no TCP também.

This commit is contained in:
Diego Nehab 2004-05-28 07:24:43 +00:00
parent 9297b074d5
commit c98dc99199
14 changed files with 59 additions and 50 deletions

View file

@ -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)

View file

@ -1,3 +1,5 @@
require "luasocket"
host = host or "localhost"
port = port or "8080"

View file

@ -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