diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2006-03-14 09:04:15 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2006-03-14 09:04:15 +0000 |
| commit | 09ad4b299c59c3c5c6c442f0ee99f3c9e8dbe8ce (patch) | |
| tree | 3d56df0d8e1a22386877f8d5007c67fbd98777f7 /src/ftp.lua | |
| parent | 6248b915cba040a3d04fedd100637e1465a43cc7 (diff) | |
| download | luasocket-09ad4b299c59c3c5c6c442f0ee99f3c9e8dbe8ce.tar.gz luasocket-09ad4b299c59c3c5c6c442f0ee99f3c9e8dbe8ce.tar.bz2 luasocket-09ad4b299c59c3c5c6c442f0ee99f3c9e8dbe8ce.zip | |
Chose option 1) for http.lua.
Need to fix everything to make sure it works with the new compat-5.1
Diffstat (limited to 'src/ftp.lua')
| -rw-r--r-- | src/ftp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ftp.lua b/src/ftp.lua index d3a48d4..18d22f7 100644 --- a/src/ftp.lua +++ b/src/ftp.lua | |||
| @@ -36,7 +36,7 @@ PASSWORD = "anonymous@anonymous.org" | |||
| 36 | local metat = { __index = {} } | 36 | local metat = { __index = {} } |
| 37 | 37 | ||
| 38 | function open(server, port, create) | 38 | function open(server, port, create) |
| 39 | local tp = socket.try(tp.connect(server, port or PORT, create, TIMEOUT)) | 39 | local tp = socket.try(tp.connect(server, port or PORT, TIMEOUT, create)) |
| 40 | local f = base.setmetatable({ tp = tp }, metat) | 40 | local f = base.setmetatable({ tp = tp }, metat) |
| 41 | -- make sure everything gets closed in an exception | 41 | -- make sure everything gets closed in an exception |
| 42 | f.try = socket.newtry(function() f:close() end) | 42 | f.try = socket.newtry(function() f:close() end) |
