From c5486e206c2cbb6ee64e2dd3f0d8efafe1e51268 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Sun, 2 Jan 2005 23:31:14 +0000 Subject: [PATCH] Releasing. --- NEW | 46 ++++++++++++++++++---------------------------- README | 6 +----- doc/index.html | 5 ++--- test/httptest.lua | 2 +- 4 files changed, 22 insertions(+), 37 deletions(-) diff --git a/NEW b/NEW index 3d7a19a..b84b5fb 100644 --- a/NEW +++ b/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); -<> Send doesn't support multiple arguments anymore; -<> 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 -<> New timming functions sleep and gettime have - higher resolution and no wrap around problems; -<> 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 diff --git a/README b/README index b072084..8572736 100644 --- a/README +++ b/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. diff --git a/doc/index.html b/doc/index.html index aabf315..f0661e2 100644 --- a/doc/index.html +++ b/doc/index.html @@ -183,19 +183,18 @@ beta, is a beta).
  • Installation uses new directory structure;
  • Namespace hierarchy is in now back in use (ex. socket.url instead of url); -
  • Globals not visible from inside namespaces;
  • All modules call require even for standard libraries; +
  • socket.select wasn't calling tm_markstart;
  • LTN12 avoids coroutines (so you can go wild on the C side);
  • 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;
  • 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; -
  • socket.select wasn't calling tm_markstart;
  • http.PROXY wasn't working;
  • url.escape escapes only dangerous characters. diff --git a/test/httptest.lua b/test/httptest.lua index 2335fcb..8862ceb 100644 --- a/test/httptest.lua +++ b/test/httptest.lua @@ -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"