diff options
author | Diego Nehab <diego@impa.br> | 2013-06-14 19:12:44 +0800 |
---|---|---|
committer | Diego Nehab <diego@impa.br> | 2013-06-14 19:12:44 +0800 |
commit | ea812a755e6b834505ebbe304d4845df24017515 (patch) | |
tree | 7eda49604b22f162de9882491f207f8731c4fe8f | |
parent | 2cc51443c21a6f764361147bf9b9361b3eb40c92 (diff) | |
download | luasocket-ea812a755e6b834505ebbe304d4845df24017515.tar.gz luasocket-ea812a755e6b834505ebbe304d4845df24017515.tar.bz2 luasocket-ea812a755e6b834505ebbe304d4845df24017515.zip |
Update NEW file and section
-rw-r--r-- | NEW | 76 | ||||
-rw-r--r-- | doc/index.html | 23 | ||||
-rw-r--r-- | doc/ltn12.html | 8 |
3 files changed, 68 insertions, 39 deletions
@@ -1,38 +1,44 @@ | |||
1 | What's New | 1 | What's New |
2 | 2 | ||
3 | This is just a bug-fix/update release. | 3 | Main changes for LuaSocket 3.0-rc1 are IPv6 support and Lua 5.2 compatibility. |
4 | 4 | ||
5 | * Fixed: manual sample of HTTP authentication now uses correct | 5 | * Added: Compatible with Lua 5.2 |
6 | "authorization" header (Alexandre Ittner); | 6 | - Note that unless you define LUA_COMPAT_MODULE, package |
7 | * Fixed: failure on bind() was destroying the socket (Sam Roberts); | 7 | tables will not be exported as globals! |
8 | * Fixed: receive() returns immediatelly if prefix can satisfy | 8 | * Added: IPv6 support; |
9 | bytes requested (M Joonas Pihlaja); | 9 | - Socket.connect and socket.bind support IPv6 addresses; |
10 | * Fixed: multicast didn't work on Windows, or anywhere | 10 | - Getpeername and getsockname support IPv6 addresses, and |
11 | else for that matter (Herbert Leuwer, Adrian Sietsma); | 11 | return the socket family as a third value; |
12 | * Fixed: select() now reports an error when called with more | 12 | - URL module updated to support IPv6 host names; |
13 | sockets than FD_SETSIZE (Lorenzo Leonini); | 13 | - New socket.tcp6 and socket.udp6 functions; |
14 | * Fixed: manual links to home.html changed to index.html (Robert Hahn); | 14 | - New socket.dns.getaddrinfo and socket.dns.getnameinfo functions; |
15 | * Fixed: mime.unb64() would return an empty string on results that started | 15 | * Added: getoption method; |
16 | with a null character (Robert Raschke); | 16 | * Fixed: url.unescape was returning additional values; |
17 | * Fixed: HTTP now automatically redirects on 303 and 307 (Jonathan Gray); | 17 | * Fixed: mime.qp, mime.unqp, mime.b64, and mime.unb64 could |
18 | * Fixed: calling sleep() with negative numbers could | 18 | mistaking their own stack slots for functions arguments; |
19 | block forever, wasting CPU. Now it returns immediately (MPB); | 19 | * Fixed: Receiving zero-length datagram is now possible; |
20 | * Improved: FTP commands are now sent in upper case to | 20 | * Improved: Hidden all internal library symbols; |
21 | help buggy servers (Anders Eurenius); | 21 | * Improved: Better error messages; |
22 | * Improved: known headers now sent in canonic | 22 | * Improved: Better documentation of socket options. |
23 | capitalization to help buggy servers (Joseph Stewart); | 23 | * Fixed: manual sample of HTTP authentication now uses correct |
24 | * Improved: Clarified tcp:receive() in the manual (MPB); | 24 | "authorization" header (Alexandre Ittner); |
25 | * Improved: Decent makefiles (LHF). | 25 | * Fixed: failure on bind() was destroying the socket (Sam Roberts); |
26 | * Fixed: RFC links in documentation now point to IETF (Cosmin Apreutesei). | 26 | * Fixed: receive() returns immediatelly if prefix can satisfy |
27 | 27 | bytes requested (M Joonas Pihlaja); | |
28 | 28 | * Fixed: multicast didn't work on Windows, or anywhere | |
29 | Yuri's bug? | 29 | else for that matter (Herbert Leuwer, Adrian Sietsma); |
30 | Dahlberg | 30 | * Fixed: select() now reports an error when called with more |
31 | Sam Roberts | 31 | sockets than FD_SETSIZE (Lorenzo Leonini); |
32 | Thomas Harning Jr. | 32 | * Fixed: manual links to home.html changed to index.html (Robert Hahn); |
33 | Sebastien Perin | 33 | * Fixed: mime.unb64() would return an empty string on results that started |
34 | remove getn in all files | 34 | with a null character (Robert Raschke); |
35 | ltn12.pump.all( | 35 | * Fixed: HTTP now automatically redirects on 303 and 307 (Jonathan Gray); |
36 | ltn12.source.file(io.open("original.png")), | 36 | * Fixed: calling sleep() with negative numbers could |
37 | ltn12.sink.file(io.open("copy.png", "wb")) | 37 | block forever, wasting CPU. Now it returns immediately (MPB); |
38 | ) | 38 | * Improved: FTP commands are now sent in upper case to |
39 | help buggy servers (Anders Eurenius); | ||
40 | * Improved: known headers now sent in canonic | ||
41 | capitalization to help buggy servers (Joseph Stewart); | ||
42 | * Improved: Clarified tcp:receive() in the manual (MPB); | ||
43 | * Improved: Decent makefiles (LHF). | ||
44 | * Fixed: RFC links in documentation now point to IETF (Cosmin Apreutesei). | ||
diff --git a/doc/index.html b/doc/index.html index b8f8798..14b2fe9 100644 --- a/doc/index.html +++ b/doc/index.html | |||
@@ -155,6 +155,29 @@ IPv6 addresses, and return the socket family as a third value; | |||
155 | <li> Improved: Hidden all internal library symbols; | 155 | <li> Improved: Hidden all internal library symbols; |
156 | <li> Improved: Better error messages; | 156 | <li> Improved: Better error messages; |
157 | <li> Improved: Better documentation of socket options. | 157 | <li> Improved: Better documentation of socket options. |
158 | <li> Fixed: manual sample of HTTP authentication now uses correct | ||
159 | "authorization" header (Alexandre Ittner); | ||
160 | <li> Fixed: failure on bind() was destroying the socket (Sam Roberts); | ||
161 | <li> Fixed: receive() returns immediatelly if prefix can satisfy | ||
162 | bytes requested (M Joonas Pihlaja); | ||
163 | <li> Fixed: multicast didn't work on Windows, or anywhere | ||
164 | else for that matter (Herbert Leuwer, Adrian Sietsma); | ||
165 | <li> Fixed: select() now reports an error when called with more | ||
166 | sockets than FD_SETSIZE (Lorenzo Leonini); | ||
167 | <li> Fixed: manual links to home.html changed to index.html | ||
168 | (Robert Hahn); | ||
169 | <li> Fixed: mime.unb64() would return an empty string on results that started | ||
170 | with a null character (Robert Raschke); | ||
171 | <li> Fixed: HTTP now automatically redirects on 303 and 307 (Jonathan Gray); | ||
172 | <li> Fixed: calling sleep() with negative numbers could | ||
173 | block forever, wasting CPU. Now it returns immediately (MPB); | ||
174 | <li> Improved: FTP commands are now sent in upper case to | ||
175 | help buggy servers (Anders Eurenius); | ||
176 | <li> Improved: known headers now sent in canonic | ||
177 | capitalization to help buggy servers (Joseph Stewart); | ||
178 | <li> Improved: Clarified tcp:receive() in the manual (MPB); | ||
179 | <li> Improved: Decent makefiles (LHF). | ||
180 | <li> Fixed: RFC links in documentation now point to IETF (Cosmin Apreutesei). | ||
158 | </ul> | 181 | </ul> |
159 | 182 | ||
160 | <!-- old ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 183 | <!-- old ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
diff --git a/doc/ltn12.html b/doc/ltn12.html index 7e2f49a..54e66fb 100644 --- a/doc/ltn12.html +++ b/doc/ltn12.html | |||
@@ -224,8 +224,8 @@ local ltn12 = require("ltn12") | |||
224 | 224 | ||
225 | -- copy a file | 225 | -- copy a file |
226 | ltn12.pump.all( | 226 | ltn12.pump.all( |
227 | ltn12.source.file(io.open("original.png")), | 227 | ltn12.source.file(io.open("original.png", "rb")), |
228 | ltn12.sink.file(io.open("copy.png")) | 228 | ltn12.sink.file(io.open("copy.png", "wb")) |
229 | ) | 229 | ) |
230 | </pre> | 230 | </pre> |
231 | 231 | ||
@@ -379,8 +379,8 @@ local ltn12 = require("ltn12") | |||
379 | 379 | ||
380 | -- copy a file | 380 | -- copy a file |
381 | ltn12.pump.all( | 381 | ltn12.pump.all( |
382 | ltn12.source.file(io.open("original.png")), | 382 | ltn12.source.file(io.open("original.png", "rb")), |
383 | ltn12.sink.file(io.open("copy.png")) | 383 | ltn12.sink.file(io.open("copy.png", "wb")) |
384 | ) | 384 | ) |
385 | </pre> | 385 | </pre> |
386 | 386 | ||