bugfix: socket block write

This commit is contained in:
云风
2012-10-18 16:27:53 +08:00
parent ec325c73b2
commit 022b034c6a

View File

@@ -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)