Chose option 1) for http.lua.

Need to fix everything to make sure it works with the new compat-5.1
This commit is contained in:
Diego Nehab 2006-03-14 09:04:15 +00:00
parent 6248b915cb
commit 09ad4b299c
4 changed files with 25 additions and 52 deletions

View file

@ -36,7 +36,7 @@ PASSWORD = "anonymous@anonymous.org"
local metat = { __index = {} }
function open(server, port, create)
local tp = socket.try(tp.connect(server, port or PORT, create, TIMEOUT))
local tp = socket.try(tp.connect(server, port or PORT, TIMEOUT, create))
local f = base.setmetatable({ tp = tp }, metat)
-- make sure everything gets closed in an exception
f.try = socket.newtry(function() f:close() end)