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