http.lua updated. still needs proxy support.
code.lua updated. looks neat.
This commit is contained in:
parent
3febb302ad
commit
89f3ecf782
10 changed files with 445 additions and 358 deletions
|
@ -84,19 +84,19 @@ function reconnect()
|
|||
remote [[
|
||||
if data then data:close() data = nil end
|
||||
data = server:accept()
|
||||
-- data:setoption("nodelay", true)
|
||||
data:setoption("tcp-nodelay", true)
|
||||
]]
|
||||
data, err = socket.connect(host, port)
|
||||
if not data then fail(err)
|
||||
else pass("connected!") end
|
||||
-- data:setoption("nodelay", true)
|
||||
data:setoption("tcp-nodelay", true)
|
||||
end
|
||||
|
||||
pass("attempting control connection...")
|
||||
control, err = socket.connect(host, port)
|
||||
if err then fail(err)
|
||||
else pass("connected!") end
|
||||
-- control:setoption("nodelay", true)
|
||||
control:setoption("tcp-nodelay", true)
|
||||
|
||||
------------------------------------------------------------------------
|
||||
test("method registration")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue