More adjustments/bugfixes.

This commit is contained in:
Diego Nehab 2004-06-21 06:07:58 +00:00
parent f7579db9e8
commit bce1cb30d8
33 changed files with 135 additions and 96 deletions

View file

@ -1,4 +1,4 @@
socket = require"socket"
local socket = require"socket"
host = host or "localhost"
port = port or "8080"
@ -418,7 +418,7 @@ function connect_errors()
assert(not c and e == "connection refused", e)
print("ok")
io.stderr:write("host not found: ")
local c, e = socket.connect("not.exist.com", 1);
local c, e = socket.connect("host.is.invalid", 1);
assert(not c and e == "host not found", e)
print("ok")
end