aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/server_epoll.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 8db18930..b2f49f7c 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -473,8 +473,10 @@ function interface:onwritable()
local buffer = self.writebuffer;
local data = buffer or "";
if type(buffer) == "table" then
- if buffer[2] then
+ if buffer[3] then
data = t_concat(data);
+ elseif buffer[2] then
+ data = buffer[1] .. buffer[2];
else
data = buffer[1] or "";
end