changeset 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 e6087c733899
children dae094b392d1
files net/server_epoll.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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