mirror of
https://github.com/luapower/mysql.git
synced 2025-07-04 09:20:31 +02:00
unimportant
This commit is contained in:
@ -261,9 +261,9 @@ local function _recv(self, sz)
|
|||||||
self.buf = buf
|
self.buf = buf
|
||||||
end
|
end
|
||||||
local buf = buf(sz)
|
local buf = buf(sz)
|
||||||
local n, err = self.sock:recvall(buf, sz)
|
local ok, err = self.sock:recvall(buf, sz)
|
||||||
if not n then return nil, err end
|
if not ok then return nil, err end
|
||||||
return ffi.string(buf, n)
|
return ffi.string(buf, sz)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function _recv_packet(self)
|
local function _recv_packet(self)
|
||||||
|
Reference in New Issue
Block a user