Stupid bug.

This commit is contained in:
Diego Nehab 2005-01-22 22:38:43 +00:00
parent b999686ea8
commit 2cd2a5d4a4
2 changed files with 2 additions and 19 deletions

17
FIX
View File

@ -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.

View File

@ -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':