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/smtp.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/smtp.lua')
-rw-r--r-- | src/smtp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/smtp.lua b/src/smtp.lua index 72c4234..2257a69 100644 --- a/src/smtp.lua +++ b/src/smtp.lua | |||
@@ -113,7 +113,7 @@ end | |||
113 | 113 | ||
114 | function open(server, port, create) | 114 | function open(server, port, create) |
115 | local tp = socket.try(tp.connect(server or SERVER, port or PORT, | 115 | local tp = socket.try(tp.connect(server or SERVER, port or PORT, |
116 | create, TIMEOUT)) | 116 | TIMEOUT, create)) |
117 | local s = base.setmetatable({tp = tp}, metat) | 117 | local s = base.setmetatable({tp = tp}, metat) |
118 | -- make sure tp is closed if we get an exception | 118 | -- make sure tp is closed if we get an exception |
119 | s.try = socket.newtry(function() | 119 | s.try = socket.newtry(function() |