diff options
| author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2022-03-23 16:15:52 +0100 |
|---|---|---|
| committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2022-03-29 13:33:00 +0200 |
| commit | 3adf252b45401b4b97e63668c6ee530e7b3936ad (patch) | |
| tree | 34d74d479cb4166b0dc368a1e041977b7ea13395 | |
| parent | 86de838eb5ed49711be8d62e01255cc2ccd3342e (diff) | |
| download | luasocket-3adf252b45401b4b97e63668c6ee530e7b3936ad.tar.gz luasocket-3adf252b45401b4b97e63668c6ee530e7b3936ad.tar.bz2 luasocket-3adf252b45401b4b97e63668c6ee530e7b3936ad.zip | |
cleanup; move FIX, TODO, WISH into TODO.md
| -rw-r--r-- | FIX | 28 | ||||
| -rw-r--r-- | TODO | 81 | ||||
| -rw-r--r-- | TODO.md | 135 | ||||
| -rw-r--r-- | WISH | 22 |
4 files changed, 135 insertions, 131 deletions
| @@ -1,28 +0,0 @@ | |||
| 1 | |||
| 2 | |||
| 3 | |||
| 4 | |||
| 5 | |||
| 6 | |||
| 7 | http was preserving old host header during redirects | ||
| 8 | fix smtp.send hang on source error | ||
| 9 | add create field to FTP and SMTP and fix HTTP ugliness | ||
| 10 | clean timeout argument to open functions in SMTP, HTTP and FTP | ||
| 11 | eliminate globals from namespaces created by module(). | ||
| 12 | url.absolute was not working when base_url was already parsed | ||
| 13 | http.request was redirecting even when the location header was empty | ||
| 14 | tcp{client}:shutdown() was checking for group instead of class. | ||
| 15 | tcp{client}:send() now returns i+sent-1... | ||
| 16 | get rid of a = socket.try() in the manual, except for protected cases. replace it with assert. | ||
| 17 | get rid of "base." kludge in package.loaded | ||
| 18 | check all "require("http")" etc in the manual. | ||
| 19 | make sure sock_gethostname.* only return success if the hp is not null! | ||
| 20 | change '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!!! | ||
| 22 | setpeername was using udp{unconnected} | ||
| 23 | fixed a bug in http.lua that caused some requests to fail (Florian Berger) | ||
| 24 | fixed a bug in select.c that prevented sockets with descriptor 0 from working (Renato Maia) | ||
| 25 | fixed a "bug" that caused dns.toip to crash under uLinux | ||
| 26 | fixed a "bug" that caused a crash in gethostbyname under VMS | ||
| 27 | DEBUG and VERSION became _DEBUG and _VERSION | ||
| 28 | send returns the right value if input is "". Alexander Marinov | ||
| @@ -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 | |||
| 25 | Done: | ||
| 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 | |||
| 62 | replace \r\n with \0xD\0xA in everything | ||
| 63 | New mime support | ||
| 64 | |||
| 65 | ftp send should return server replies? | ||
| 66 | make sure there are no object files in the distribution tarball | ||
| 67 | http handling of 100-continue, see DB patch | ||
| 68 | DB ftp.lua bug. | ||
| 69 | test unix.c to return just a function and works with require"unix" | ||
| 70 | get rid of setmetatable(, nil) since packages don't need this anymore in 5.1 | ||
| 71 | compat-5.1 novo | ||
| 72 | ajeitar pra lua-5.1 | ||
| 73 | |||
| 74 | adicionar exemplos de expansão: pipe, local, named pipe | ||
| 75 | testar os options! | ||
| 76 | |||
| 77 | |||
| 78 | - Thread-unsafe functions to protect | ||
| 79 | gethostbyname(), gethostbyaddr(), gethostent(), | ||
| 80 | inet_ntoa(), strerror(), | ||
| 81 | |||
| @@ -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 | |||
| @@ -1,22 +0,0 @@ | |||
| 1 | ... as an l-value to get all results of a function call? | ||
| 2 | at least ...[i] and #... | ||
| 3 | extend to full tuples? | ||
| 4 | |||
| 5 | __and __or __not metamethods | ||
| 6 | |||
| 7 | lua_tostring, lua_tonumber, lua_touseradta etc push values in stack | ||
| 8 | __tostring,__tonumber, __touserdata metamethods are checked | ||
| 9 | and expected to push an object of correct type on stack | ||
| 10 | |||
| 11 | lua_rawtostring, lua_rawtonumber, lua_rawtouserdata don't | ||
| 12 | push anything on stack, return data of appropriate type, | ||
| 13 | skip metamethods and throw error if object not of exact type | ||
| 14 | |||
| 15 | package.findfile exported | ||
| 16 | module not polluting the global namespace | ||
| 17 | |||
| 18 | coxpcall with a coroutine pool for efficiency (reusing coroutines) | ||
| 19 | |||
| 20 | exception mechanism formalized? just like the package system was. | ||
| 21 | |||
| 22 | a nice bitlib in the core | ||
