Thijs Schreijer
59869b8bf6
fixed accidental global in ftp.lua
2015-03-01 20:34:53 +01:00
moteus
00a06857c9
Fix. recive 2xx while ftp.get cause timeout error
...
In this example:
>Client send: MDTM test.txt
>Server response: 213 20120824120909
Because FTP server do not open new channel (2XX response)
and LuaSocket try open new channel we get timeout.
```lua
local ftp = require "socket.ftp"
local ltn12 = require "ltn12"
local url = require("socket.url")
local URL = "ftp://USER:TEST@127.0.0.1";
local CMD = 'MDTM test.txt';
-- get timeout
ftp.get{
url = URL;
command = CMD;
sink = ltn12.sink.table{};
}
-- or we can use ftp.command
ftp.command{
url = URL;
command = URL,
check = function(...)
local status, data = ...
return true
end;
}
```
2013-05-30 11:01:07 +04:00
moteus
920bc97629
Build with Lua 5.2 without LUA_COMPAT_MODULE flag.
...
LUASOCKET_USE_GLOBAL flag enable create global variables when load socket/mime modules.
2013-05-27 12:45:09 +04:00
Diego Nehab
f960b3872a
Making progress toward a release
...
Documented headers.lua
Update copyright date everywhere
Remove RCSID from files
Move version back to 2.1 rather than 2.1.1
Fixed url package to support ipv6 hosts
Changed "domain" to "family" in tcp and udp structures
Implemented getfamily methods
2012-04-23 00:18:45 +08:00
Diego Nehab
2778766d67
Preliminary IPv6 support for v2.1
2012-04-11 13:25:11 -07:00
Diego Nehab
3a8ba90dfb
Saving before big changes to support IPv6.
2011-05-25 20:57:22 +00:00
Diego Nehab
e394956cde
Global variable references.
2007-07-11 19:25:47 +00:00
Diego Nehab
09ad4b299c
Chose option 1) for http.lua.
...
Need to fix everything to make sure it works with the new compat-5.1
2006-03-14 09:04:15 +00:00
Diego Nehab
6248b915cb
Fixing bugs...
2006-03-13 07:16:39 +00:00
Diego Nehab
d55a5826e8
Few tweaks in installation, some missing files, etc.
2005-11-22 08:33:29 +00:00
Diego Nehab
72eceedc62
Bugs sent by David.
2005-10-05 03:16:17 +00:00
Diego Nehab
0c3cdd5ef2
Final push for release...
2005-08-12 05:56:32 +00:00
Diego Nehab
65c35845c5
Working on the manual.
2005-06-14 04:29:23 +00:00
Diego Nehab
9596c7f95d
Bug in forward.lua. Wasn't breaking from the loop.
2005-04-21 05:38:07 +00:00
Diego Nehab
97b26e0b66
Almost ready to release beta3
2005-01-02 22:44:00 +00:00
Diego Nehab
a8254e94f8
Last line of modules was simplified.
2004-12-23 23:17:01 +00:00
Diego Nehab
2f970d782e
Changes due to new compat-5.1
2004-12-23 22:32:12 +00:00
Diego Nehab
7c97e8e40a
Almost ready for beta3
2004-11-27 07:58:04 +00:00
Diego Nehab
4964552718
My own ltn12.filter.chain is done.
...
Implemented part of DB's suggestion for ftp.
Mimetest.lua generates the test file for base64 instead of loading from disk.
2004-10-12 22:35:20 +00:00
Diego Nehab
a04f15d1ca
Using new module scheme. Still needs fine tuning.
2004-09-27 04:01:18 +00:00
Diego Nehab
f7579db9e8
Fixing bugs...
2004-06-20 22:19:54 +00:00
Diego Nehab
7ed89c97f7
2.0 alpha RELEASED!
2004-06-18 21:41:44 +00:00
Diego Nehab
ac4aac0909
Implemented safe exceptions. This looks preeety good.
2004-06-18 08:02:09 +00:00
Diego Nehab
597a062b1b
Almost ready for distribution...
2004-06-17 21:46:22 +00:00
Diego Nehab
613534c795
smtp.c was eatten by mime.c
2004-06-17 06:23:13 +00:00
Diego Nehab
d46f7a09a7
Fixed smtp.lua loading.
...
Adjusted tftp module.
Added some comments.
2004-06-16 01:02:07 +00:00
Diego Nehab
58096449c6
Manual is almost done. HTTP is missing.
...
Implemented new distribution scheme.
Select is now purely C.
HTTP reimplemented seems faster dunno why.
LTN12 functions that coroutines fail gracefully.
2004-06-15 06:24:00 +00:00
Diego Nehab
9ed7f955e5
Só pra não perder se der merda.
2004-06-04 15:15:45 +00:00
Diego Nehab
5ca1049ab4
Fine tuning the "require" business.
2004-05-30 21:36:22 +00:00
Diego Nehab
c23240726e
Changed require"luasocket" to require"socket".
2004-05-28 20:40:13 +00:00
Diego Nehab
6c565dd7c0
Almost there.
2004-05-28 07:47:41 +00:00
Diego Nehab
694edcc3c1
Committing with require.
2004-05-28 06:16:43 +00:00
Diego Nehab
bf738a0336
Working with in the manual.
2004-05-26 04:58:32 +00:00
Diego Nehab
5c13076f89
Have to check retr or stor command result before accepting data connection.
2004-05-25 05:49:07 +00:00
Diego Nehab
888496aa82
FTP low-level working.
...
SMTP connection oriented working.
ltn12 improved.
2004-05-25 05:27:44 +00:00
Diego Nehab
bcc0c2a9f0
New filter scheme.
...
ltn12 and mime updated.
smtp/ftp broken.
2004-03-16 06:42:53 +00:00
Diego Nehab
0b2542d1a6
Worked on the manual.
...
Implemented stuffing (needs test)
Added cddb and qp examples.
2004-02-04 14:29:11 +00:00
Diego Nehab
6789b83ff5
Starting to use RCS in princeton again. Not behind a firewall anymore.
2003-08-31 00:58:07 +00:00
Diego Nehab
c51d4acf1c
Adjusted a few inconsistencies with the manual.
2003-08-16 00:06:04 +00:00
Diego Nehab
71f6bb60bf
Finished implementation of LuaSocket 2.0 alpha on Linux.
...
Some testing still needed.
2003-06-26 18:47:49 +00:00
Diego Nehab
0f6c8d50a9
Porting to LUA 5.0 final
2003-05-25 01:54:13 +00:00
Diego Nehab
f18d1b7cd0
Closer to release...
2003-03-28 21:08:50 +00:00
Diego Nehab
53857360bb
Finish port to Lua 5. Everything is working fine.
...
Still doesn't work in Windows.
2003-03-20 00:24:44 +00:00
Diego Nehab
5b2a124305
Updated for Lua 4.1-w3.
2002-07-08 21:01:45 +00:00
Diego Nehab
84e503afe3
Changed some variable names.
...
Added correct scheme test.
2001-09-26 20:39:46 +00:00
Diego Nehab
9546cd10ab
Updated for LuaSocket 1.4.
...
Better tested, some name changes.
2001-09-12 18:27:55 +00:00
Diego Nehab
8a8dfcdb72
Updated version information.
2001-06-08 22:45:55 +00:00
Diego Nehab
c53ad62b00
Streaming by callbacks implemented.
2001-06-06 20:55:45 +00:00
Diego Nehab
a466bd5d42
Data connection is now passive. Even minimum FTP servers are usable.
2001-01-25 22:03:16 +00:00
Diego Nehab
17c4d1c305
Initial revision
2000-12-29 22:15:09 +00:00