diff options
Diffstat (limited to 'TODO.md')
-rw-r--r-- | TODO.md | 135 |
1 files changed, 135 insertions, 0 deletions
@@ -0,0 +1,135 @@ | |||
1 | ## FIX | ||
2 | |||
3 | http was preserving old host header during redirects | ||
4 | fix smtp.send hang on source error | ||
5 | add create field to FTP and SMTP and fix HTTP ugliness | ||
6 | clean timeout argument to open functions in SMTP, HTTP and FTP | ||
7 | eliminate globals from namespaces created by module(). | ||
8 | url.absolute was not working when base_url was already parsed | ||
9 | http.request was redirecting even when the location header was empty | ||
10 | tcp{client}:shutdown() was checking for group instead of class. | ||
11 | tcp{client}:send() now returns i+sent-1... | ||
12 | get rid of a = socket.try() in the manual, except for protected cases. replace it with assert. | ||
13 | get rid of "base." kludge in package.loaded | ||
14 | check all "require("http")" etc in the manual. | ||
15 | make sure sock_gethostname.* only return success if the hp is not null! | ||
16 | change 'l' prefix in C libraries to 'c' to avoid clash with LHF libraries | ||
17 | don't forget the declarations in luasocket.h and mime.h!!! | ||
18 | setpeername was using udp{unconnected} | ||
19 | fixed a bug in http.lua that caused some requests to fail (Florian Berger) | ||
20 | fixed a bug in select.c that prevented sockets with descriptor 0 from working (Renato Maia) | ||
21 | fixed a "bug" that caused dns.toip to crash under uLinux | ||
22 | fixed a "bug" that caused a crash in gethostbyname under VMS | ||
23 | DEBUG and VERSION became _DEBUG and _VERSION | ||
24 | send returns the right value if input is "". Alexander Marinov | ||
25 | |||
26 | |||
27 | ## WISH | ||
28 | |||
29 | ... as an l-value to get all results of a function call? | ||
30 | at least ...[i] and #... | ||
31 | extend to full tuples? | ||
32 | |||
33 | __and __or __not metamethods | ||
34 | |||
35 | lua_tostring, lua_tonumber, lua_touseradta etc push values in stack | ||
36 | __tostring,__tonumber, __touserdata metamethods are checked | ||
37 | and expected to push an object of correct type on stack | ||
38 | |||
39 | lua_rawtostring, lua_rawtonumber, lua_rawtouserdata don't | ||
40 | push anything on stack, return data of appropriate type, | ||
41 | skip metamethods and throw error if object not of exact type | ||
42 | |||
43 | package.findfile exported | ||
44 | module not polluting the global namespace | ||
45 | |||
46 | coxpcall with a coroutine pool for efficiency (reusing coroutines) | ||
47 | |||
48 | exception mechanism formalized? just like the package system was. | ||
49 | |||
50 | a nice bitlib in the core | ||
51 | |||
52 | |||
53 | ## TODO | ||
54 | |||
55 | - bizarre default values for getnameinfo should throw error instead! | ||
56 | |||
57 | > It's just too bad it can't talk to gmail - | ||
58 | > reason 1: they absolutely want TLS | ||
59 | > reason 2: unlike all the other SMTP implementations, they | ||
60 | > don't | ||
61 | > tolerate missing < > around adresses | ||
62 | |||
63 | - document the new bind and connect behavior. | ||
64 | - shouldn't we instead make the code compatible to Lua 5.2 | ||
65 | without any compat stuff, and use a compatibility layer to | ||
66 | make it work on 5.1? | ||
67 | - add what's new to manual | ||
68 | - should there be an equivalent to tohostname for IPv6? | ||
69 | - should we add service name resolution as well to getaddrinfo? | ||
70 | - Maybe the sockaddr to presentation conversion should be done with getnameinfo()? | ||
71 | |||
72 | - add http POST sample to manual | ||
73 | people keep asking stupid questions | ||
74 | - documentation of dirty/getfd/setfd is problematic because of portability | ||
75 | same for unix and serial. | ||
76 | what to do about this? add a stronger disclaimer? | ||
77 | - fix makefile with decent defaults? | ||
78 | |||
79 | ## Done: | ||
80 | |||
81 | - added IPv6 support to getsockname | ||
82 | - simplified getpeername implementation | ||
83 | - added family to return of getsockname and getpeername | ||
84 | and added modification to the manual to describe | ||
85 | |||
86 | - connect and bind try all adresses returned by getaddrinfo | ||
87 | - document headers.lua? | ||
88 | - update copyright date everywhere? | ||
89 | - remove RCSID from files? | ||
90 | - move version to 2.1 rather than 2.1.1? | ||
91 | - fixed url package to support ipv6 hosts | ||
92 | - changed domain to family | ||
93 | - implement getfamily methods. | ||
94 | |||
95 | - remove references to Lua 5.0 from documentation, add 5.2? | ||
96 | - update lua and luasocket version in samples in documentation | ||
97 | - document ipv5_v6only default option being set? | ||
98 | - document tcp6 and udp6 | ||
99 | - document dns.getaddrinfo | ||
100 | - documented zero-sized datagram change? | ||
101 | no. | ||
102 | - document unix socket and serial socket? add raw support? | ||
103 | no. | ||
104 | - document getoption | ||
105 | - merge luaL_typeerror into auxiliar to avoid using luaL prefix? | ||
106 | |||
107 | |||
108 | |||
109 | |||
110 | |||
111 | |||
112 | |||
113 | |||
114 | |||
115 | |||
116 | replace \r\n with \0xD\0xA in everything | ||
117 | New mime support | ||
118 | |||
119 | ftp send should return server replies? | ||
120 | make sure there are no object files in the distribution tarball | ||
121 | http handling of 100-continue, see DB patch | ||
122 | DB ftp.lua bug. | ||
123 | test unix.c to return just a function and works with require"unix" | ||
124 | get rid of setmetatable(, nil) since packages don't need this anymore in 5.1 | ||
125 | compat-5.1 novo | ||
126 | ajeitar pra lua-5.1 | ||
127 | |||
128 | adicionar exemplos de expans�o: pipe, local, named pipe | ||
129 | testar os options! | ||
130 | |||
131 | |||
132 | - Thread-unsafe functions to protect | ||
133 | gethostbyname(), gethostbyaddr(), gethostent(), | ||
134 | inet_ntoa(), strerror(), | ||
135 | |||