aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-06-17 23:19:38 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-06-17 23:19:38 +0000
commit62799a416d2b29d8058331f3d8725fb67c75d261 (patch)
treefead4d5d3d8b0167c28d2a4a2d5cbf2b2e897691
parent07dda08c5d25dca0f8e79b80998559544aa7c398 (diff)
downloadluasocket-62799a416d2b29d8058331f3d8725fb67c75d261.tar.gz
luasocket-62799a416d2b29d8058331f3d8725fb67c75d261.tar.bz2
luasocket-62799a416d2b29d8058331f3d8725fb67c75d261.zip
Seems to be working.
-rw-r--r--TODO4
-rw-r--r--etc/dict.lua1
-rw-r--r--test/httptest.lua1
3 files changed, 4 insertions, 2 deletions
diff --git a/TODO b/TODO
index 817d471..860a676 100644
--- a/TODO
+++ b/TODO
@@ -2,13 +2,14 @@
2ajeitar os README.* 2ajeitar os README.*
3ajeitar as referencias a RFCS e LTNS em todos os arquivos. 3ajeitar as referencias a RFCS e LTNS em todos os arquivos.
4 4
5smtp.o goes to mime.dll
6make sure sockets are closed when exceptions are raised 5make sure sockets are closed when exceptions are raised
7 6
8check garbage collection in test*.lua 7check garbage collection in test*.lua
9 8
10 9
11manual 10manual
11 socket.skip
12 send return convention changed.
12 * compatibility: select sets are associative 13 * compatibility: select sets are associative
13 * add socket.connect and socket.bind to the manual 14 * add socket.connect and socket.bind to the manual
14 * add shutdown 15 * add shutdown
@@ -157,3 +158,4 @@ these are done
157* use coroutines instead of fancy filters 158* use coroutines instead of fancy filters
158* add socket.TIMEOUT to be default timeout? no. 159* add socket.TIMEOUT to be default timeout? no.
159* use gethostname it in SMTP 160* use gethostname it in SMTP
161* smtp.o goes to mime.dll
diff --git a/etc/dict.lua b/etc/dict.lua
index b9247dc..dce1658 100644
--- a/etc/dict.lua
+++ b/etc/dict.lua
@@ -140,7 +140,6 @@ local function sget(u)
140 return tget(gett) 140 return tget(gett)
141end 141end
142 142
143--function socket.protect(f) return f end
144get = socket.protect(function(gett) 143get = socket.protect(function(gett)
145 if type(gett) == "string" then return sget(gett) 144 if type(gett) == "string" then return sget(gett)
146 else return tget(gett) end 145 else return tget(gett) end
diff --git a/test/httptest.lua b/test/httptest.lua
index 45d7e8d..d1f2b88 100644
--- a/test/httptest.lua
+++ b/test/httptest.lua
@@ -70,6 +70,7 @@ io.write("testing request uri correctness: ")
70local forth = cgiprefix .. "/request-uri?" .. "this+is+the+query+string" 70local forth = cgiprefix .. "/request-uri?" .. "this+is+the+query+string"
71local back, c, h = http.request("http://" .. host .. forth) 71local back, c, h = http.request("http://" .. host .. forth)
72if not back then fail(c) end 72if not back then fail(c) end
73print(back)
73back = url.parse(back) 74back = url.parse(back)
74if similar(back.query, "this+is+the+query+string") then print("ok") 75if similar(back.query, "this+is+the+query+string") then print("ok")
75else fail(back.query) end 76else fail(back.query) end