aboutsummaryrefslogtreecommitdiff
path: root/test/testclnt.lua
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2003-06-26 21:14:17 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2003-06-26 21:14:17 +0000
commitbd54cd42d4c8a7d6bb9550d8aa0eac243cda63c0 (patch)
treee182ffe6061141df20fa2003b6671af8a4ea3c40 /test/testclnt.lua
parent71f6bb60bf2b7457091c7106190f92ab7e51f7c6 (diff)
downloadluasocket-bd54cd42d4c8a7d6bb9550d8aa0eac243cda63c0.tar.gz
luasocket-bd54cd42d4c8a7d6bb9550d8aa0eac243cda63c0.tar.bz2
luasocket-bd54cd42d4c8a7d6bb9550d8aa0eac243cda63c0.zip
Few adjustments for windows.
Diffstat (limited to 'test/testclnt.lua')
-rw-r--r--test/testclnt.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/testclnt.lua b/test/testclnt.lua
index e38c248..20ef0b6 100644
--- a/test/testclnt.lua
+++ b/test/testclnt.lua
@@ -84,19 +84,19 @@ function reconnect()
84 remote [[ 84 remote [[
85 if data then data:close() data = nil end 85 if data then data:close() data = nil end
86 data = server:accept() 86 data = server:accept()
87 data:setoption("nodelay", true) 87 -- data:setoption("nodelay", true)
88 ]] 88 ]]
89 data, err = socket.connect(host, port) 89 data, err = socket.connect(host, port)
90 if not data then fail(err) 90 if not data then fail(err)
91 else pass("connected!") end 91 else pass("connected!") end
92 data:setoption("nodelay", true) 92 -- data:setoption("nodelay", true)
93end 93end
94 94
95pass("attempting control connection...") 95pass("attempting control connection...")
96control, err = socket.connect(host, port) 96control, err = socket.connect(host, port)
97if err then fail(err) 97if err then fail(err)
98else pass("connected!") end 98else pass("connected!") end
99control:setoption("nodelay", true) 99-- control:setoption("nodelay", true)
100 100
101------------------------------------------------------------------------ 101------------------------------------------------------------------------
102test("method registration") 102test("method registration")