From 50ce1437255ada7ec8e667020001a1a00cf5744e Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Sun, 18 Jan 2004 06:41:43 +0000 Subject: Have to figure out how to test timeout on connect... kind of hard. --- src/tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/tcp.c b/src/tcp.c index 74f32f4..34dd71c 100644 --- a/src/tcp.c +++ b/src/tcp.c @@ -230,7 +230,7 @@ static int meth_bind(lua_State *L) p_tcp tcp = (p_tcp) aux_checkclass(L, "tcp{master}", 1); const char *address = luaL_checkstring(L, 2); unsigned short port = (unsigned short) luaL_checknumber(L, 3); - int backlog = (int) luaL_optnumber(L, 4, 1); + int backlog = (int) luaL_optnumber(L, 4, 0); const char *err = inet_trybind(&tcp->sock, address, port, backlog); if (err) { lua_pushnil(L); -- cgit v1.2.3-55-g6feb