diff --git a/FIX b/FIX index 5846e5e..9cd7421 100644 --- a/FIX +++ b/FIX @@ -1,16 +1 @@ -mime filters are more strict with ltn12 standards -ltn12 avoids coroutines (so you can go wild on the C side) -automated tests for ftp now in use -new compat-5.1 distribution - instalation should use new directory structure - namespace hierarchy is in now back in use (socket.url instead of url) - globals not visible from inside namespaces - all modules call "require" even for standard libraries -kludge on wsocket.c:sock_send for windows moved to buffer.c:sendraw -socket.protect only catches errors thrown by socke.try -udp:sendto was calling sock_send -close wasn't returning 1 -gettime returns time since Unix Epoch 1/1/1970 (UTC) -sleep is robust to interrupts -select had a stupid bug -http.PROXY etc wasn't working +tcp:shutdown() was checking for group instead of class. diff --git a/src/tcp.c b/src/tcp.c index 618f4ce..0b3706b 100644 --- a/src/tcp.c +++ b/src/tcp.c @@ -91,8 +91,6 @@ int tcp_open(lua_State *L) aux_add2group(L, "tcp{master}", "tcp{any}"); aux_add2group(L, "tcp{client}", "tcp{any}"); aux_add2group(L, "tcp{server}", "tcp{any}"); - aux_add2group(L, "tcp{client}", "tcp{client,server}"); - aux_add2group(L, "tcp{server}", "tcp{client,server}"); /* define library functions */ luaL_openlib(L, NULL, func, 0); return 0; @@ -261,7 +259,7 @@ static int meth_listen(lua_State *L) \*-------------------------------------------------------------------------*/ static int meth_shutdown(lua_State *L) { - p_tcp tcp = (p_tcp) aux_checkgroup(L, "tcp{client}", 1); + p_tcp tcp = (p_tcp) aux_checkclass(L, "tcp{client}", 1); const char *how = luaL_optstring(L, 2, "both"); switch (how[0]) { case 'b':