Few adjustments for windows.
This commit is contained in:
parent
71f6bb60bf
commit
bd54cd42d4
3 changed files with 6 additions and 6 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("nodelay", true)
|
||||
]]
|
||||
data, err = socket.connect(host, port)
|
||||
if not data then fail(err)
|
||||
else pass("connected!") end
|
||||
data:setoption("nodelay", true)
|
||||
-- data:setoption("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("nodelay", true)
|
||||
|
||||
------------------------------------------------------------------------
|
||||
test("method registration")
|
||||
|
|
|
@ -7,7 +7,7 @@ ack = "\n"
|
|||
while 1 do
|
||||
print("server: waiting for client connection...");
|
||||
control = server:accept()
|
||||
control:setoption("nodelay", true)
|
||||
-- control:setoption("nodelay", true)
|
||||
while 1 do
|
||||
command, error = control:receive()
|
||||
if error then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue