As the title says... Chat on...

User avatar
By Patriko
#12215 Now the solution uses dpwhittaker script with flash optimization from this thread: viewtopic.php?f=19&t=702&start=60

Code: Select allfunction http:write(s)
     self.size = self.size + #s
     print("writing", self.size, node.heap())
     while self.size >= 1460 do
          self.size = self.size - 1460
          self.socket:send(s:sub(1, -self.size - 1))
          print("yielding", self.size, node.heap())
          coroutine.yield()
          s = s:sub(-self.size)
     end
     if self.size > 0 then self.socket:send(s) end
end


What you have on mind by sending chunks from the sent handler?

Thanks,
Patriko