Working with in the manual.

This commit is contained in:
Diego Nehab 2004-05-26 04:58:32 +00:00
parent 4b7c2db4b7
commit bf738a0336
7 changed files with 170 additions and 61 deletions

View file

@ -114,7 +114,7 @@ function metat.__index:send(sendt)
if err then data:close() end
return ret, err
end
local sink = socket.sink("close-when-empty", data)
local sink = socket.sink("close-when-done", data)
socket.try(ltn12.pump.all(sendt.source, sink, checkstep))
if string.find(code, "1..") then socket.try(self.tp:check("2..")) end
return 1