From 09ad4b299c59c3c5c6c442f0ee99f3c9e8dbe8ce Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Tue, 14 Mar 2006 09:04:15 +0000 Subject: Chose option 1) for http.lua. Need to fix everything to make sure it works with the new compat-5.1 --- src/tp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tp.lua') diff --git a/src/tp.lua b/src/tp.lua index c6d60c8..2eacdc4 100644 --- a/src/tp.lua +++ b/src/tp.lua @@ -109,8 +109,8 @@ function metat.__index:close() end -- connect with server and return c object -function connect(host, port, create, timeout) - local c, e = (create or socket.tcp()) +function connect(host, port, timeout, create) + local c, e = (create or socket.tcp)() if not c then return nil, e end c:settimeout(timeout or TIMEOUT) local r, e = c:connect(host, port) -- cgit v1.2.3-55-g6feb