diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-03-11 02:27:59 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-03-11 02:27:59 +0000 |
commit | e7b7c36aea4ead89f1f9d0774b12d7ef869545aa (patch) | |
tree | f8514ca4ef4bdba238a0886be3d0901fa67fa2a5 | |
parent | 6dc9c1096a664fe3642e774aadcb5af9f511176e (diff) | |
download | luasocket-e7b7c36aea4ead89f1f9d0774b12d7ef869545aa.tar.gz luasocket-e7b7c36aea4ead89f1f9d0774b12d7ef869545aa.tar.bz2 luasocket-e7b7c36aea4ead89f1f9d0774b12d7ef869545aa.zip |
Tiny bug in forward.lua
-rw-r--r-- | samples/forward.lua | 5 | ||||
-rw-r--r-- | test/httptest.lua | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/samples/forward.lua b/samples/forward.lua index fe0d20a..0f79ee2 100644 --- a/samples/forward.lua +++ b/samples/forward.lua | |||
@@ -162,7 +162,10 @@ print("starting to foward", who) | |||
162 | elseif snd_err ~= "timeout" then return kick(who) end | 162 | elseif snd_err ~= "timeout" then return kick(who) end |
163 | end | 163 | end |
164 | -- if we are done receiving, we are done | 164 | -- if we are done receiving, we are done |
165 | if not rec_err then return kick(who) end | 165 | if not rec_err then |
166 | kick(who) | ||
167 | kick(peer) | ||
168 | end | ||
166 | end | 169 | end |
167 | end | 170 | end |
168 | 171 | ||
diff --git a/test/httptest.lua b/test/httptest.lua index 8862ceb..2335fcb 100644 --- a/test/httptest.lua +++ b/test/httptest.lua | |||
@@ -23,7 +23,7 @@ http.TIMEOUT = 10 | |||
23 | local t = socket.gettime() | 23 | local t = socket.gettime() |
24 | 24 | ||
25 | host = host or "diego.student.princeton.edu" | 25 | host = host or "diego.student.princeton.edu" |
26 | proxy = proxy or "http://dell-diego:3128" | 26 | proxy = proxy or "http://localhost:3128" |
27 | prefix = prefix or "/luasocket-test" | 27 | prefix = prefix or "/luasocket-test" |
28 | cgiprefix = cgiprefix or "/luasocket-test-cgi" | 28 | cgiprefix = cgiprefix or "/luasocket-test-cgi" |
29 | index_file = "test/index.html" | 29 | index_file = "test/index.html" |