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