aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-05-28 07:24:43 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-05-28 07:24:43 +0000
commitc98dc991998c724a3f6a1fdd90b5d1d8a80e3af3 (patch)
tree8d8b8aa856d8a3e822121d0915a63b8244f471bb /test
parent9297b074d53a00e1149250e0bbfa0871dcc5558f (diff)
downloadluasocket-c98dc991998c724a3f6a1fdd90b5d1d8a80e3af3.tar.gz
luasocket-c98dc991998c724a3f6a1fdd90b5d1d8a80e3af3.tar.bz2
luasocket-c98dc991998c724a3f6a1fdd90b5d1d8a80e3af3.zip
Bug feioso no UDP e possivelmente no TCP também.
Diffstat (limited to 'test')
-rw-r--r--test/mimetest.lua6
-rw-r--r--test/testclnt.lua2
-rw-r--r--test/testsrvr.lua4
3 files changed, 9 insertions, 3 deletions
diff --git a/test/mimetest.lua b/test/mimetest.lua
index 3e57557..dea43d6 100644
--- a/test/mimetest.lua
+++ b/test/mimetest.lua
@@ -1,3 +1,7 @@
1require "luasocket"
2require "ltn12"
3require "mime"
4
1dofile("testsupport.lua") 5dofile("testsupport.lua")
2 6
3local qptest = "qptest.bin" 7local qptest = "qptest.bin"
@@ -92,7 +96,7 @@ local function transform(input, output, filter)
92 source = ltn12.source.chain(source, filter) 96 source = ltn12.source.chain(source, filter)
93 end 97 end
94 --what = not what 98 --what = not what
95 ltn12.pump(source, sink) 99 ltn12.pump.all(source, sink)
96end 100end
97 101
98local function encode_qptest(mode) 102local function encode_qptest(mode)
diff --git a/test/testclnt.lua b/test/testclnt.lua
index ecf419b..556e54d 100644
--- a/test/testclnt.lua
+++ b/test/testclnt.lua
@@ -1,3 +1,5 @@
1require "luasocket"
2
1host = host or "localhost" 3host = host or "localhost"
2port = port or "8080" 4port = port or "8080"
3 5
diff --git a/test/testsrvr.lua b/test/testsrvr.lua
index 5c05239..d172a9e 100644
--- a/test/testsrvr.lua
+++ b/test/testsrvr.lua
@@ -1,3 +1,5 @@
1require "luasocket"
2
1host = host or "localhost" 3host = host or "localhost"
2port = port or "8080" 4port = port or "8080"
3 5
@@ -22,8 +24,6 @@ while 1 do
22 print("server: closing connection...") 24 print("server: closing connection...")
23 break 25 break
24 end 26 end
25print(command);
26
27 (loadstring(command))() 27 (loadstring(command))()
28 end 28 end
29end 29end