-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Description
The size checking is not actually required as long as no changes are applied to the data in _upl() and _dwn().
Currently I don't have a working env for openresty. I guess the core loop should look like this:
while not self.exit_flag do
buf, _, __ = ssock:receive(4096)
if not buf then
rsock:send(__)
break
end
local bytes = rsock:send(buf)
if not bytes then
break
end
end
Metadata
Metadata
Assignees
Labels
No labels