From 022b034c6a588716728cdb3ca477d83ccd8b5c42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E9=A3=8E?= Date: Thu, 18 Oct 2012 16:27:53 +0800 Subject: [PATCH] bugfix: socket block write --- lualib/socket.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lualib/socket.lua b/lualib/socket.lua index aaec8551..5eb2ace5 100644 --- a/lualib/socket.lua +++ b/lualib/socket.lua @@ -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)