From ea812a755e6b834505ebbe304d4845df24017515 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Fri, 14 Jun 2013 19:12:44 +0800 Subject: [PATCH] Update NEW file and section --- NEW | 76 +++++++++++++++++++++++++++----------------------- doc/index.html | 23 +++++++++++++++ doc/ltn12.html | 8 +++--- 3 files changed, 68 insertions(+), 39 deletions(-) diff --git a/NEW b/NEW index 76b8448..0bff64c 100644 --- a/NEW +++ b/NEW @@ -1,38 +1,44 @@ What's New -This is just a bug-fix/update release. +Main changes for LuaSocket 3.0-rc1 are IPv6 support and Lua 5.2 compatibility. - * Fixed: manual sample of HTTP authentication now uses correct - "authorization" header (Alexandre Ittner); - * Fixed: failure on bind() was destroying the socket (Sam Roberts); - * Fixed: receive() returns immediatelly if prefix can satisfy - bytes requested (M Joonas Pihlaja); - * Fixed: multicast didn't work on Windows, or anywhere - else for that matter (Herbert Leuwer, Adrian Sietsma); - * Fixed: select() now reports an error when called with more - sockets than FD_SETSIZE (Lorenzo Leonini); - * Fixed: manual links to home.html changed to index.html (Robert Hahn); - * Fixed: mime.unb64() would return an empty string on results that started - with a null character (Robert Raschke); - * Fixed: HTTP now automatically redirects on 303 and 307 (Jonathan Gray); - * Fixed: calling sleep() with negative numbers could - block forever, wasting CPU. Now it returns immediately (MPB); - * Improved: FTP commands are now sent in upper case to - help buggy servers (Anders Eurenius); - * Improved: known headers now sent in canonic - capitalization to help buggy servers (Joseph Stewart); - * Improved: Clarified tcp:receive() in the manual (MPB); - * Improved: Decent makefiles (LHF). - * Fixed: RFC links in documentation now point to IETF (Cosmin Apreutesei). - - - Yuri's bug? - Dahlberg - Sam Roberts - Thomas Harning Jr. - Sebastien Perin - remove getn in all files - ltn12.pump.all( - ltn12.source.file(io.open("original.png")), - ltn12.sink.file(io.open("copy.png", "wb")) - ) + * Added: Compatible with Lua 5.2 + - Note that unless you define LUA_COMPAT_MODULE, package + tables will not be exported as globals! + * Added: IPv6 support; + - Socket.connect and socket.bind support IPv6 addresses; + - Getpeername and getsockname support IPv6 addresses, and + return the socket family as a third value; + - URL module updated to support IPv6 host names; + - New socket.tcp6 and socket.udp6 functions; + - New socket.dns.getaddrinfo and socket.dns.getnameinfo functions; + * Added: getoption method; + * Fixed: url.unescape was returning additional values; + * Fixed: mime.qp, mime.unqp, mime.b64, and mime.unb64 could + mistaking their own stack slots for functions arguments; + * Fixed: Receiving zero-length datagram is now possible; + * Improved: Hidden all internal library symbols; + * Improved: Better error messages; + * Improved: Better documentation of socket options. + * Fixed: manual sample of HTTP authentication now uses correct + "authorization" header (Alexandre Ittner); + * Fixed: failure on bind() was destroying the socket (Sam Roberts); + * Fixed: receive() returns immediatelly if prefix can satisfy + bytes requested (M Joonas Pihlaja); + * Fixed: multicast didn't work on Windows, or anywhere + else for that matter (Herbert Leuwer, Adrian Sietsma); + * Fixed: select() now reports an error when called with more + sockets than FD_SETSIZE (Lorenzo Leonini); + * Fixed: manual links to home.html changed to index.html (Robert Hahn); + * Fixed: mime.unb64() would return an empty string on results that started + with a null character (Robert Raschke); + * Fixed: HTTP now automatically redirects on 303 and 307 (Jonathan Gray); + * Fixed: calling sleep() with negative numbers could + block forever, wasting CPU. Now it returns immediately (MPB); + * Improved: FTP commands are now sent in upper case to + help buggy servers (Anders Eurenius); + * Improved: known headers now sent in canonic + capitalization to help buggy servers (Joseph Stewart); + * Improved: Clarified tcp:receive() in the manual (MPB); + * Improved: Decent makefiles (LHF). + * 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;
  • Improved: Hidden all internal library symbols;
  • Improved: Better error messages;
  • Improved: Better documentation of socket options. +
  • Fixed: manual sample of HTTP authentication now uses correct + "authorization" header (Alexandre Ittner); +
  • Fixed: failure on bind() was destroying the socket (Sam Roberts); +
  • Fixed: receive() returns immediatelly if prefix can satisfy + bytes requested (M Joonas Pihlaja); +
  • Fixed: multicast didn't work on Windows, or anywhere + else for that matter (Herbert Leuwer, Adrian Sietsma); +
  • Fixed: select() now reports an error when called with more + sockets than FD_SETSIZE (Lorenzo Leonini); +
  • Fixed: manual links to home.html changed to index.html +(Robert Hahn); +
  • Fixed: mime.unb64() would return an empty string on results that started + with a null character (Robert Raschke); +
  • Fixed: HTTP now automatically redirects on 303 and 307 (Jonathan Gray); +
  • Fixed: calling sleep() with negative numbers could + block forever, wasting CPU. Now it returns immediately (MPB); +
  • Improved: FTP commands are now sent in upper case to + help buggy servers (Anders Eurenius); +
  • Improved: known headers now sent in canonic + capitalization to help buggy servers (Joseph Stewart); +
  • Improved: Clarified tcp:receive() in the manual (MPB); +
  • Improved: Decent makefiles (LHF). +
  • Fixed: RFC links in documentation now point to IETF (Cosmin Apreutesei). 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") -- copy a file ltn12.pump.all( - ltn12.source.file(io.open("original.png")), - ltn12.sink.file(io.open("copy.png")) + ltn12.source.file(io.open("original.png", "rb")), + ltn12.sink.file(io.open("copy.png", "wb")) ) @@ -379,8 +379,8 @@ local ltn12 = require("ltn12") -- copy a file ltn12.pump.all( - ltn12.source.file(io.open("original.png")), - ltn12.sink.file(io.open("copy.png")) + ltn12.source.file(io.open("original.png", "rb")), + ltn12.sink.file(io.open("copy.png", "wb")) )