Diff

net/server_epoll.lua @ 11703:e57c5d9c722c

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
author Kim Alvefur <zash@zash.se>
date Sun, 18 Jul 2021 08:53:37 +0200
parent 11702:c206430e2643
child 11738:3f1450ec37f4
line wrap: on
line diff
--- 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();