# HG changeset patch # User Kim Alvefur # Date 1626591217 -7200 # Node ID e57c5d9c722cefe46a9b48b3935df6bc8b1ebe4d # Parent c206430e264301eeb917affc03aea665f2d88114 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 diff -r c206430e2643 -r e57c5d9c722c net/server_epoll.lua --- a/net/server_epoll.lua Sat Jul 17 14:54:48 2021 +0200 +++ b/net/server_epoll.lua Sun Jul 18 08:53:37 2021 +0200 @@ -504,7 +504,7 @@ buffer[i] = nil; end else - data.writebuffer = data:sub(partial+1); + self.writebuffer = data:sub(partial+1); end self:set(nil, true); self:setwritetimeout();