mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 04:28:20 +01:00
Tiny bug in forward.lua
This commit is contained in:
parent
6dc9c1096a
commit
e7b7c36aea
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user