aboutsummaryrefslogtreecommitdiff
path: root/test/testclnt.lua
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-01-16 07:06:31 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-01-16 07:06:31 +0000
commit89f3ecf7820857f91c4039536d2bbe3cf12d5f95 (patch)
tree76e6cc9ff403a8c5ee52448d7ae9311bdf499039 /test/testclnt.lua
parent3febb302ad28fd25de51cbc686739469b92d8921 (diff)
downloadluasocket-89f3ecf7820857f91c4039536d2bbe3cf12d5f95.tar.gz
luasocket-89f3ecf7820857f91c4039536d2bbe3cf12d5f95.tar.bz2
luasocket-89f3ecf7820857f91c4039536d2bbe3cf12d5f95.zip
http.lua updated. still needs proxy support.
code.lua updated. looks neat.
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 3f217bd..2420711 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("tcp-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("tcp-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
99-- control:setoption("nodelay", true) 99control:setoption("tcp-nodelay", true)
100 100
101------------------------------------------------------------------------ 101------------------------------------------------------------------------
102test("method registration") 102test("method registration")