mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
bugfix: socket block write
This commit is contained in:
@@ -61,7 +61,7 @@ function socket.write(...)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function socket.writeblock(...)
|
function socket.writeblock(...)
|
||||||
local str = c.write(fd, ...)
|
local str = c.writeblock(fd, ...)
|
||||||
if str then
|
if str then
|
||||||
socket.close()
|
socket.close()
|
||||||
table.insert(data, str)
|
table.insert(data, str)
|
||||||
|
|||||||
Reference in New Issue
Block a user