aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_epoll.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-07-18 08:53:37 +0200
committerKim Alvefur <zash@zash.se>2021-07-18 08:53:37 +0200
commit5b7eea90c4b0c8fdc0f47e7ececf56065a2574ab (patch)
tree255ca16735e19de612e90cac7032dcbe0320822e /net/server_epoll.lua
parenta30d4e15185f6eddd08de0179e4029e17a23d6c3 (diff)
downloadprosody-5b7eea90c4b0c8fdc0f47e7ececf56065a2574ab.tar.gz
prosody-5b7eea90c4b0c8fdc0f47e7ececf56065a2574ab.zip
net.server_epoll: Fix traceback-causing typo
Caused "attempt to index a string value (local 'data')", but only if keep_buffers is set to false, which is not the default. Introduced in 917eca7be82b
Diffstat (limited to 'net/server_epoll.lua')
-rw-r--r--net/server_epoll.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 4670f670..7b6f4680 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -504,7 +504,7 @@ function interface:onwritable()
buffer[i] = nil;
end
else
- data.writebuffer = data:sub(partial+1);
+ self.writebuffer = data:sub(partial+1);
end
self:set(nil, true);
self:setwritetimeout();