Tiny bug in forward.lua

This commit is contained in:
Diego Nehab 2005-03-11 02:27:59 +00:00
parent 6dc9c1096a
commit e7b7c36aea
2 changed files with 5 additions and 2 deletions

View File

@ -162,7 +162,10 @@ print("starting to foward", who)
elseif snd_err ~= "timeout" then return kick(who) end
end
-- if we are done receiving, we are done
if not rec_err then return kick(who) end
if not rec_err then
kick(who)
kick(peer)
end
end
end

View File

@ -23,7 +23,7 @@ http.TIMEOUT = 10
local t = socket.gettime()
host = host or "diego.student.princeton.edu"
proxy = proxy or "http://dell-diego:3128"
proxy = proxy or "http://localhost:3128"
prefix = prefix or "/luasocket-test"
cgiprefix = cgiprefix or "/luasocket-test-cgi"
index_file = "test/index.html"