diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-05-28 07:24:43 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-05-28 07:24:43 +0000 |
commit | c98dc991998c724a3f6a1fdd90b5d1d8a80e3af3 (patch) | |
tree | 8d8b8aa856d8a3e822121d0915a63b8244f471bb /test | |
parent | 9297b074d53a00e1149250e0bbfa0871dcc5558f (diff) | |
download | luasocket-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.lua | 6 | ||||
-rw-r--r-- | test/testclnt.lua | 2 | ||||
-rw-r--r-- | test/testsrvr.lua | 4 |
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 @@ | |||
1 | require "luasocket" | ||
2 | require "ltn12" | ||
3 | require "mime" | ||
4 | |||
1 | dofile("testsupport.lua") | 5 | dofile("testsupport.lua") |
2 | 6 | ||
3 | local qptest = "qptest.bin" | 7 | local 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) |
96 | end | 100 | end |
97 | 101 | ||
98 | local function encode_qptest(mode) | 102 | local 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 @@ | |||
1 | require "luasocket" | ||
2 | |||
1 | host = host or "localhost" | 3 | host = host or "localhost" |
2 | port = port or "8080" | 4 | port = 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 @@ | |||
1 | require "luasocket" | ||
2 | |||
1 | host = host or "localhost" | 3 | host = host or "localhost" |
2 | port = port or "8080" | 4 | port = 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 |
25 | print(command); | ||
26 | |||
27 | (loadstring(command))() | 27 | (loadstring(command))() |
28 | end | 28 | end |
29 | end | 29 | end |