aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--samples/forward.lua5
-rw-r--r--test/httptest.lua2
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
167end 170end
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
23local t = socket.gettime() 23local t = socket.gettime()
24 24
25host = host or "diego.student.princeton.edu" 25host = host or "diego.student.princeton.edu"
26proxy = proxy or "http://dell-diego:3128" 26proxy = proxy or "http://localhost:3128"
27prefix = prefix or "/luasocket-test" 27prefix = prefix or "/luasocket-test"
28cgiprefix = cgiprefix or "/luasocket-test-cgi" 28cgiprefix = cgiprefix or "/luasocket-test-cgi"
29index_file = "test/index.html" 29index_file = "test/index.html"