diff net/server_epoll.lua @ 13932:334fb7adb0bc 13.0

net.server_epoll: Restore idle checks after pause (e.g. rate limits) It seems that under some conditions the read timeout is not recreated. This led to various dead connection accumulating. Code review noticed this case, easily triggered by enabling rate limits. Uncertain if there may be others.
author Kim Alvefur <zash@zash.se>
date Sun, 24 Aug 2025 18:15:09 +0200
parents 2cfb6625b6d2
children 107a3d9c147b e27d94d8f505
line wrap: on
line diff
--- a/net/server_epoll.lua	Tue Aug 05 21:49:58 2025 +0200
+++ b/net/server_epoll.lua	Sun Aug 24 18:15:09 2025 +0200
@@ -966,6 +966,8 @@
 		if self.conn and self.conn:dirty() then
 			self:noise("Have buffered incoming data to process");
 			self:onreadable();
+		else
+			self:setreadtimeout();
 		end
 	end);
 end