aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2005-01-22 22:38:43 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2005-01-22 22:38:43 +0000
commit2cd2a5d4a4ca9307eacbd73bc6c591d635204a8a (patch)
tree486ca38e0b18e2d99c44d2101a45c41671abb8d4
parentb999686ea893e969e2c02f3c6966b1ddb44f72ce (diff)
downloadluasocket-2cd2a5d4a4ca9307eacbd73bc6c591d635204a8a.tar.gz
luasocket-2cd2a5d4a4ca9307eacbd73bc6c591d635204a8a.tar.bz2
luasocket-2cd2a5d4a4ca9307eacbd73bc6c591d635204a8a.zip
Stupid bug.
-rw-r--r--FIX17
-rw-r--r--src/tcp.c4
2 files changed, 2 insertions, 19 deletions
diff --git a/FIX b/FIX
index 5846e5e..9cd7421 100644
--- a/FIX
+++ b/FIX
@@ -1,16 +1 @@
1mime filters are more strict with ltn12 standards tcp:shutdown() was checking for group instead of class.
2ltn12 avoids coroutines (so you can go wild on the C side)
3automated tests for ftp now in use
4new 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
9kludge on wsocket.c:sock_send for windows moved to buffer.c:sendraw
10socket.protect only catches errors thrown by socke.try
11udp:sendto was calling sock_send
12close wasn't returning 1
13gettime returns time since Unix Epoch 1/1/1970 (UTC)
14sleep is robust to interrupts
15select had a stupid bug
16http.PROXY etc wasn't working
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)
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\*-------------------------------------------------------------------------*/
262static int meth_shutdown(lua_State *L) 260static 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':