diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/testclnt.lua | 6 | ||||
-rw-r--r-- | test/testsrvr.lua | 2 |
2 files changed, 4 insertions, 4 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) |
93 | end | 93 | end |
94 | 94 | ||
95 | pass("attempting control connection...") | 95 | pass("attempting control connection...") |
96 | control, err = socket.connect(host, port) | 96 | control, err = socket.connect(host, port) |
97 | if err then fail(err) | 97 | if err then fail(err) |
98 | else pass("connected!") end | 98 | else pass("connected!") end |
99 | control:setoption("nodelay", true) | 99 | -- control:setoption("nodelay", true) |
100 | 100 | ||
101 | ------------------------------------------------------------------------ | 101 | ------------------------------------------------------------------------ |
102 | test("method registration") | 102 | test("method registration") |
diff --git a/test/testsrvr.lua b/test/testsrvr.lua index 39fe274..6010789 100644 --- a/test/testsrvr.lua +++ b/test/testsrvr.lua | |||
@@ -7,7 +7,7 @@ ack = "\n" | |||
7 | while 1 do | 7 | while 1 do |
8 | print("server: waiting for client connection..."); | 8 | print("server: waiting for client connection..."); |
9 | control = server:accept() | 9 | control = server:accept() |
10 | control:setoption("nodelay", true) | 10 | -- control:setoption("nodelay", true) |
11 | while 1 do | 11 | while 1 do |
12 | command, error = control:receive() | 12 | command, error = control:receive() |
13 | if error then | 13 | if error then |