mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-25 12:08:21 +01:00
Releasing.
This commit is contained in:
parent
49445951a8
commit
c5486e206c
46
NEW
46
NEW
@ -1,31 +1,21 @@
|
||||
What's New
|
||||
|
||||
Changes in the 2.0-beta2 were mostly bug-fixes.
|
||||
|
||||
<> Fixed silly last-minute-change bug in HTTP/SMTP running;
|
||||
<> usocket.c/wsocket.c look nicer thanks to Mike;
|
||||
<> Finally total timeout is reliable on Windows! (found a pretty
|
||||
simple work around);
|
||||
<> UDP has a reasonable maximum datagram size (8k);
|
||||
<> Receive accepts the prefix optional argument (good for
|
||||
non-blocking);
|
||||
<> <b>Send doesn't support multiple arguments anymore</b>;
|
||||
<> Instead, send allows the selection of the substring
|
||||
to be sent (good for non-blocking);
|
||||
<> Fixed bug that caused select return tables not to be associative
|
||||
on windows;
|
||||
<> Should compiles with g++;
|
||||
<> New sample unix domain support;
|
||||
<> New sample LPD support;
|
||||
<> Comprehensive error messages;
|
||||
<> New getstats and setstats methods to help
|
||||
throttling;
|
||||
<> Listen defaults to 32 backlog;
|
||||
<> SMTP/FTP/HTTP fail gracefully;
|
||||
<> accept/connect/select interrupt safe
|
||||
<> Fixed bug that didn't set accepted sockets as non-blocking
|
||||
<> <b>New timming functions sleep and gettime have
|
||||
higher resolution and no wrap around problems</b>;
|
||||
<> Bug fixes in the manual;
|
||||
<> Fixed bug of missing cast in getfd.
|
||||
The big change for the 2.0 (beta3) release was the adoption of the Lua
|
||||
5.1 package proposal. There were several bug fixes too (a beta is a
|
||||
beta, is a beta).
|
||||
|
||||
* New compat-5.1 distribution:
|
||||
- Instalation uses new directory structure;
|
||||
- Namespace hierarchy is in now back in use (ex. socket.url instead of url);
|
||||
- All modules call require even for standard libraries;
|
||||
* LTN12 avoids coroutines (so you can go wild on the C side);
|
||||
* socket.select wasn't calling tm_markstart;
|
||||
* Kludge on wsocket.c:sock_send for Windows timeout issue moved to
|
||||
buffer.c:sendraw so it's not a kludge anymore;
|
||||
* socket.protect only catches errors thrown by socket.try;
|
||||
* Fixed udp:sendto to call sock_sendto instead of sock_send;
|
||||
* close wasn't returning 1!
|
||||
* socket.gettime returns time since Unix Epoch 1/1/1970 (UTC)
|
||||
* socket.sleep is robust to interrupts;
|
||||
* http.PROXY wasn't working.
|
||||
* fixed some of the examples
|
||||
|
6
README
6
README
@ -1,11 +1,7 @@
|
||||
This release is a "beta" version. It has been tested on WinXP, Mac OS X,
|
||||
SunOS and Linux. Although no major API changes should happen before the
|
||||
and Linux. Although no major API changes should happen before the
|
||||
final version is released, please look for and report any bugs (or
|
||||
"features") you encounter.
|
||||
|
||||
For this version, all modules should be loaded with the provided "require"
|
||||
function, and the binaries should be compliled as shared libraries. Check
|
||||
the makefiles in the distribution and the readme in the 'etc' directory.
|
||||
|
||||
Have fun,
|
||||
Diego Nehab.
|
||||
|
@ -183,19 +183,18 @@ beta, is a beta).
|
||||
<li> Installation uses new directory structure;
|
||||
<li> Namespace hierarchy is in now back in use (ex. <tt>socket.url</tt>
|
||||
instead of <tt>url</tt>);
|
||||
<li> Globals not visible from inside namespaces;
|
||||
<li> All modules call <tt>require</tt> even for standard libraries;
|
||||
</ul>
|
||||
<li> <tt>socket.select</tt> wasn't calling <tt>tm_markstart</tt>;
|
||||
<li> LTN12 avoids coroutines (so you can go wild on the C side);
|
||||
<li> Kludge on wsocket.c:sock_send for windows timeout issue
|
||||
moved to buffer.c:sendraw;
|
||||
moved to buffer.c:sendraw so it's not a kludge anymore;
|
||||
<li> <tt>socket.protect </tt>only catches errors thrown by <tt>socket.try</tt>;
|
||||
<li> Fixed <tt>udp:sendto</tt> to call <tt>sock_sendto</tt> instead of
|
||||
<tt>sock_send</tt>;
|
||||
<li> <tt>close</tt> wasn't returning 1!
|
||||
<li> <tt>socket.gettime</tt> returns time since Unix Epoch 1/1/1970 (UTC);
|
||||
<li> <tt>socket.sleep</tt> is robust to interrupts;
|
||||
<li> <tt>socket.select</tt> wasn't calling <tt>tm_markstart</tt>;
|
||||
<li> <tt>http.PROXY</tt> wasn't working;
|
||||
<li> <tt>url.escape</tt> escapes only dangerous characters.
|
||||
</ul>
|
||||
|
@ -23,7 +23,7 @@ http.TIMEOUT = 10
|
||||
local t = socket.gettime()
|
||||
|
||||
host = host or "diego.student.princeton.edu"
|
||||
proxy = proxy or "http://localhost:3128"
|
||||
proxy = proxy or "http://dell-diego:3128"
|
||||
prefix = prefix or "/luasocket-test"
|
||||
cgiprefix = cgiprefix or "/luasocket-test-cgi"
|
||||
index_file = "test/index.html"
|
||||
|
Loading…
Reference in New Issue
Block a user