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:
parent
6248b915cb
commit
09ad4b299c
4 changed files with 25 additions and 52 deletions
|
@ -113,7 +113,7 @@ end
|
|||
|
||||
function open(server, port, create)
|
||||
local tp = socket.try(tp.connect(server or SERVER, port or PORT,
|
||||
create, TIMEOUT))
|
||||
TIMEOUT, create))
|
||||
local s = base.setmetatable({tp = tp}, metat)
|
||||
-- make sure tp is closed if we get an exception
|
||||
s.try = socket.newtry(function()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue