mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
add mongo driver from lua-mongo project (wip)
This commit is contained in:
@@ -226,7 +226,14 @@ function socket.write(fd, msg, sz)
|
||||
return true
|
||||
end
|
||||
|
||||
function socket.invalid(fd)
|
||||
return CLOSED[fd] or not READBUF[fd]
|
||||
end
|
||||
|
||||
function socket.lock(fd)
|
||||
if CLOSED[fd] or not READBUF[fd] then
|
||||
return
|
||||
end
|
||||
local locked = READTHREAD[fd]
|
||||
if locked then
|
||||
-- lock fd
|
||||
|
||||
Reference in New Issue
Block a user