diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-01-22 22:38:43 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-01-22 22:38:43 +0000 |
commit | 2cd2a5d4a4ca9307eacbd73bc6c591d635204a8a (patch) | |
tree | 486ca38e0b18e2d99c44d2101a45c41671abb8d4 | |
parent | b999686ea893e969e2c02f3c6966b1ddb44f72ce (diff) | |
download | luasocket-2cd2a5d4a4ca9307eacbd73bc6c591d635204a8a.tar.gz luasocket-2cd2a5d4a4ca9307eacbd73bc6c591d635204a8a.tar.bz2 luasocket-2cd2a5d4a4ca9307eacbd73bc6c591d635204a8a.zip |
Stupid bug.
-rw-r--r-- | FIX | 17 | ||||
-rw-r--r-- | src/tcp.c | 4 |
2 files changed, 2 insertions, 19 deletions
@@ -1,16 +1 @@ | |||
1 | mime filters are more strict with ltn12 standards | tcp:shutdown() was checking for group instead of class. | |
2 | ltn12 avoids coroutines (so you can go wild on the C side) | ||
3 | automated tests for ftp now in use | ||
4 | new compat-5.1 distribution | ||
5 | instalation should use new directory structure | ||
6 | namespace hierarchy is in now back in use (socket.url instead of url) | ||
7 | globals not visible from inside namespaces | ||
8 | all modules call "require" even for standard libraries | ||
9 | kludge on wsocket.c:sock_send for windows moved to buffer.c:sendraw | ||
10 | socket.protect only catches errors thrown by socke.try | ||
11 | udp:sendto was calling sock_send | ||
12 | close wasn't returning 1 | ||
13 | gettime returns time since Unix Epoch 1/1/1970 (UTC) | ||
14 | sleep is robust to interrupts | ||
15 | select had a stupid bug | ||
16 | http.PROXY etc wasn't working | ||
@@ -91,8 +91,6 @@ int tcp_open(lua_State *L) | |||
91 | aux_add2group(L, "tcp{master}", "tcp{any}"); | 91 | aux_add2group(L, "tcp{master}", "tcp{any}"); |
92 | aux_add2group(L, "tcp{client}", "tcp{any}"); | 92 | aux_add2group(L, "tcp{client}", "tcp{any}"); |
93 | aux_add2group(L, "tcp{server}", "tcp{any}"); | 93 | aux_add2group(L, "tcp{server}", "tcp{any}"); |
94 | aux_add2group(L, "tcp{client}", "tcp{client,server}"); | ||
95 | aux_add2group(L, "tcp{server}", "tcp{client,server}"); | ||
96 | /* define library functions */ | 94 | /* define library functions */ |
97 | luaL_openlib(L, NULL, func, 0); | 95 | luaL_openlib(L, NULL, func, 0); |
98 | return 0; | 96 | return 0; |
@@ -261,7 +259,7 @@ static int meth_listen(lua_State *L) | |||
261 | \*-------------------------------------------------------------------------*/ | 259 | \*-------------------------------------------------------------------------*/ |
262 | static int meth_shutdown(lua_State *L) | 260 | static int meth_shutdown(lua_State *L) |
263 | { | 261 | { |
264 | p_tcp tcp = (p_tcp) aux_checkgroup(L, "tcp{client}", 1); | 262 | p_tcp tcp = (p_tcp) aux_checkclass(L, "tcp{client}", 1); |
265 | const char *how = luaL_optstring(L, 2, "both"); | 263 | const char *how = luaL_optstring(L, 2, "both"); |
266 | switch (how[0]) { | 264 | switch (how[0]) { |
267 | case 'b': | 265 | case 'b': |