diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-05-28 07:38:12 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-05-28 07:38:12 +0000 |
commit | 84f03fda7c2be57e14f937e295710b5e883fedc6 (patch) | |
tree | f8845f3e555d9ba1bd42fc77bc41791e241fdf5e /test/testsrvr.lua | |
parent | c98dc991998c724a3f6a1fdd90b5d1d8a80e3af3 (diff) | |
download | luasocket-84f03fda7c2be57e14f937e295710b5e883fedc6.tar.gz luasocket-84f03fda7c2be57e14f937e295710b5e883fedc6.tar.bz2 luasocket-84f03fda7c2be57e14f937e295710b5e883fedc6.zip |
Previous bug fix caused a new bug. :o/
Diffstat (limited to 'test/testsrvr.lua')
-rw-r--r-- | test/testsrvr.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/testsrvr.lua b/test/testsrvr.lua index d172a9e..52f1f90 100644 --- a/test/testsrvr.lua +++ b/test/testsrvr.lua | |||
@@ -13,6 +13,7 @@ while 1 do | |||
13 | -- control:setoption("nodelay", true) | 13 | -- control:setoption("nodelay", true) |
14 | while 1 do | 14 | while 1 do |
15 | command, error = control:receive() | 15 | command, error = control:receive() |
16 | print(error) | ||
16 | if error then | 17 | if error then |
17 | control:close() | 18 | control:close() |
18 | print("server: closing connection...") | 19 | print("server: closing connection...") |
@@ -24,6 +25,7 @@ while 1 do | |||
24 | print("server: closing connection...") | 25 | print("server: closing connection...") |
25 | break | 26 | break |
26 | end | 27 | end |
28 | print(command); | ||
27 | (loadstring(command))() | 29 | (loadstring(command))() |
28 | end | 30 | end |
29 | end | 31 | end |