mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 04:28:20 +01:00
Stupid bug.
This commit is contained in:
parent
b999686ea8
commit
2cd2a5d4a4
17
FIX
17
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.
|
||||
|
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user