aboutsummaryrefslogtreecommitdiff
path: root/TODO.md
diff options
context:
space:
mode:
Diffstat (limited to 'TODO.md')
-rw-r--r--TODO.md135
1 files changed, 135 insertions, 0 deletions
diff --git a/TODO.md b/TODO.md
new file mode 100644
index 0000000..d265694
--- /dev/null
+++ b/TODO.md
@@ -0,0 +1,135 @@
1## FIX
2
3http was preserving old host header during redirects
4fix smtp.send hang on source error
5add create field to FTP and SMTP and fix HTTP ugliness
6clean timeout argument to open functions in SMTP, HTTP and FTP
7eliminate globals from namespaces created by module().
8url.absolute was not working when base_url was already parsed
9http.request was redirecting even when the location header was empty
10tcp{client}:shutdown() was checking for group instead of class.
11tcp{client}:send() now returns i+sent-1...
12get rid of a = socket.try() in the manual, except for protected cases. replace it with assert.
13get rid of "base." kludge in package.loaded
14check all "require("http")" etc in the manual.
15make sure sock_gethostname.* only return success if the hp is not null!
16change '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!!!
18setpeername was using udp{unconnected}
19fixed a bug in http.lua that caused some requests to fail (Florian Berger)
20fixed a bug in select.c that prevented sockets with descriptor 0 from working (Renato Maia)
21fixed a "bug" that caused dns.toip to crash under uLinux
22fixed a "bug" that caused a crash in gethostbyname under VMS
23DEBUG and VERSION became _DEBUG and _VERSION
24send 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?
30at least ...[i] and #...
31extend to full tuples?
32
33__and __or __not metamethods
34
35lua_tostring, lua_tonumber, lua_touseradta etc push values in stack
36__tostring,__tonumber, __touserdata metamethods are checked
37and expected to push an object of correct type on stack
38
39lua_rawtostring, lua_rawtonumber, lua_rawtouserdata don't
40push anything on stack, return data of appropriate type,
41skip metamethods and throw error if object not of exact type
42
43package.findfile exported
44module not polluting the global namespace
45
46coxpcall with a coroutine pool for efficiency (reusing coroutines)
47
48exception mechanism formalized? just like the package system was.
49
50a 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
116replace \r\n with \0xD\0xA in everything
117New mime support
118
119ftp send should return server replies?
120make sure there are no object files in the distribution tarball
121http handling of 100-continue, see DB patch
122DB ftp.lua bug.
123test unix.c to return just a function and works with require"unix"
124get rid of setmetatable(, nil) since packages don't need this anymore in 5.1
125compat-5.1 novo
126ajeitar pra lua-5.1
127
128adicionar exemplos de expans�o: pipe, local, named pipe
129testar os options!
130
131
132- Thread-unsafe functions to protect
133 gethostbyname(), gethostbyaddr(), gethostent(),
134inet_ntoa(), strerror(),
135