mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-25 03:58:21 +01:00
Update NEW file and section
This commit is contained in:
parent
2cc51443c2
commit
ea812a755e
76
NEW
76
NEW
@ -1,38 +1,44 @@
|
|||||||
What's New
|
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
|
* Added: Compatible with Lua 5.2
|
||||||
"authorization" header (Alexandre Ittner);
|
- Note that unless you define LUA_COMPAT_MODULE, package
|
||||||
* Fixed: failure on bind() was destroying the socket (Sam Roberts);
|
tables will not be exported as globals!
|
||||||
* Fixed: receive() returns immediatelly if prefix can satisfy
|
* Added: IPv6 support;
|
||||||
bytes requested (M Joonas Pihlaja);
|
- Socket.connect and socket.bind support IPv6 addresses;
|
||||||
* Fixed: multicast didn't work on Windows, or anywhere
|
- Getpeername and getsockname support IPv6 addresses, and
|
||||||
else for that matter (Herbert Leuwer, Adrian Sietsma);
|
return the socket family as a third value;
|
||||||
* Fixed: select() now reports an error when called with more
|
- URL module updated to support IPv6 host names;
|
||||||
sockets than FD_SETSIZE (Lorenzo Leonini);
|
- New socket.tcp6 and socket.udp6 functions;
|
||||||
* Fixed: manual links to home.html changed to index.html (Robert Hahn);
|
- New socket.dns.getaddrinfo and socket.dns.getnameinfo functions;
|
||||||
* Fixed: mime.unb64() would return an empty string on results that started
|
* Added: getoption method;
|
||||||
with a null character (Robert Raschke);
|
* Fixed: url.unescape was returning additional values;
|
||||||
* Fixed: HTTP now automatically redirects on 303 and 307 (Jonathan Gray);
|
* Fixed: mime.qp, mime.unqp, mime.b64, and mime.unb64 could
|
||||||
* Fixed: calling sleep() with negative numbers could
|
mistaking their own stack slots for functions arguments;
|
||||||
block forever, wasting CPU. Now it returns immediately (MPB);
|
* Fixed: Receiving zero-length datagram is now possible;
|
||||||
* Improved: FTP commands are now sent in upper case to
|
* Improved: Hidden all internal library symbols;
|
||||||
help buggy servers (Anders Eurenius);
|
* Improved: Better error messages;
|
||||||
* Improved: known headers now sent in canonic
|
* Improved: Better documentation of socket options.
|
||||||
capitalization to help buggy servers (Joseph Stewart);
|
* Fixed: manual sample of HTTP authentication now uses correct
|
||||||
* Improved: Clarified tcp:receive() in the manual (MPB);
|
"authorization" header (Alexandre Ittner);
|
||||||
* Improved: Decent makefiles (LHF).
|
* Fixed: failure on bind() was destroying the socket (Sam Roberts);
|
||||||
* Fixed: RFC links in documentation now point to IETF (Cosmin Apreutesei).
|
* Fixed: receive() returns immediatelly if prefix can satisfy
|
||||||
|
bytes requested (M Joonas Pihlaja);
|
||||||
|
* Fixed: multicast didn't work on Windows, or anywhere
|
||||||
Yuri's bug?
|
else for that matter (Herbert Leuwer, Adrian Sietsma);
|
||||||
Dahlberg
|
* Fixed: select() now reports an error when called with more
|
||||||
Sam Roberts
|
sockets than FD_SETSIZE (Lorenzo Leonini);
|
||||||
Thomas Harning Jr.
|
* Fixed: manual links to home.html changed to index.html (Robert Hahn);
|
||||||
Sebastien Perin
|
* Fixed: mime.unb64() would return an empty string on results that started
|
||||||
remove getn in all files
|
with a null character (Robert Raschke);
|
||||||
ltn12.pump.all(
|
* Fixed: HTTP now automatically redirects on 303 and 307 (Jonathan Gray);
|
||||||
ltn12.source.file(io.open("original.png")),
|
* Fixed: calling sleep() with negative numbers could
|
||||||
ltn12.sink.file(io.open("copy.png", "wb"))
|
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).
|
||||||
|
@ -155,6 +155,29 @@ IPv6 addresses, and return the socket family as a third value;
|
|||||||
<li> Improved: Hidden all internal library symbols;
|
<li> Improved: Hidden all internal library symbols;
|
||||||
<li> Improved: Better error messages;
|
<li> Improved: Better error messages;
|
||||||
<li> Improved: Better documentation of socket options.
|
<li> Improved: Better documentation of socket options.
|
||||||
|
<li> Fixed: manual sample of HTTP authentication now uses correct
|
||||||
|
"authorization" header (Alexandre Ittner);
|
||||||
|
<li> Fixed: failure on bind() was destroying the socket (Sam Roberts);
|
||||||
|
<li> Fixed: receive() returns immediatelly if prefix can satisfy
|
||||||
|
bytes requested (M Joonas Pihlaja);
|
||||||
|
<li> Fixed: multicast didn't work on Windows, or anywhere
|
||||||
|
else for that matter (Herbert Leuwer, Adrian Sietsma);
|
||||||
|
<li> Fixed: select() now reports an error when called with more
|
||||||
|
sockets than FD_SETSIZE (Lorenzo Leonini);
|
||||||
|
<li> Fixed: manual links to home.html changed to index.html
|
||||||
|
(Robert Hahn);
|
||||||
|
<li> Fixed: mime.unb64() would return an empty string on results that started
|
||||||
|
with a null character (Robert Raschke);
|
||||||
|
<li> Fixed: HTTP now automatically redirects on 303 and 307 (Jonathan Gray);
|
||||||
|
<li> Fixed: calling sleep() with negative numbers could
|
||||||
|
block forever, wasting CPU. Now it returns immediately (MPB);
|
||||||
|
<li> Improved: FTP commands are now sent in upper case to
|
||||||
|
help buggy servers (Anders Eurenius);
|
||||||
|
<li> Improved: known headers now sent in canonic
|
||||||
|
capitalization to help buggy servers (Joseph Stewart);
|
||||||
|
<li> Improved: Clarified tcp:receive() in the manual (MPB);
|
||||||
|
<li> Improved: Decent makefiles (LHF).
|
||||||
|
<li> Fixed: RFC links in documentation now point to IETF (Cosmin Apreutesei).
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<!-- old ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
<!-- old ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
||||||
|
@ -224,8 +224,8 @@ local ltn12 = require("ltn12")
|
|||||||
|
|
||||||
-- copy a file
|
-- copy a file
|
||||||
ltn12.pump.all(
|
ltn12.pump.all(
|
||||||
ltn12.source.file(io.open("original.png")),
|
ltn12.source.file(io.open("original.png", "rb")),
|
||||||
ltn12.sink.file(io.open("copy.png"))
|
ltn12.sink.file(io.open("copy.png", "wb"))
|
||||||
)
|
)
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
@ -379,8 +379,8 @@ local ltn12 = require("ltn12")
|
|||||||
|
|
||||||
-- copy a file
|
-- copy a file
|
||||||
ltn12.pump.all(
|
ltn12.pump.all(
|
||||||
ltn12.source.file(io.open("original.png")),
|
ltn12.source.file(io.open("original.png", "rb")),
|
||||||
ltn12.sink.file(io.open("copy.png"))
|
ltn12.sink.file(io.open("copy.png", "wb"))
|
||||||
)
|
)
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user