unimportant

This commit is contained in:
Cosmin Apreutesei 2021-09-24 20:37:56 +03:00
parent a7a30e7cdb
commit eeb2eac05e
1 changed files with 1 additions and 1 deletions

View File

@ -829,7 +829,7 @@ local function recv(self, sz)
self.buf = buf
end
local buf = buf(sz)
check_io(self, self.tcp:recvall(buf, sz))
check_io(self, self.tcp:recvn(buf, sz))
local i = 0
return function(n, err)
n = n or sz-i