Working with in the manual.
This commit is contained in:
parent
4b7c2db4b7
commit
bf738a0336
7 changed files with 170 additions and 61 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue