Changeset

11701:a3572205c5bf

net.server_epoll: Skip reset of read timeout when not reading Should avoid rare but needless timer interactions
author Kim Alvefur <zash@zash.se>
date Sat, 17 Jul 2021 14:51:50 +0200
parents 11700:79d30de13fdb
children 11702:c206430e2643
files net/server_epoll.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_epoll.lua	Sat Jul 17 14:06:57 2021 +0200
+++ b/net/server_epoll.lua	Sat Jul 17 14:51:50 2021 +0200
@@ -458,7 +458,8 @@
 			return;
 		end
 	end
-	if self._wantread and self.conn:dirty() then
+	if not self._wantread then return end
+	if self.conn:dirty() then
 		self:setreadtimeout(false);
 		self:pausefor(cfg.read_retry_delay);
 	else