# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1553773975 -3600
# Node ID df73ca804719f7cc318f145f176f2ed497c308ff
# Parent  485231f8b75d0ac679d1a2cf857a1ef1f0f6be91
net.server_epoll: Skip delayed continuation read on paused connections

This should prevent #1333 in cases where LuaSockets buffer is "dirty",
i.e. contains more data after a read, where it gets resumed with a
short delay.

diff -r 485231f8b75d -r df73ca804719 net/server_epoll.lua
--- a/net/server_epoll.lua	Thu Mar 28 12:31:14 2019 +0100
+++ b/net/server_epoll.lua	Thu Mar 28 12:52:55 2019 +0100
@@ -373,7 +373,7 @@
 		end
 	end
 	if not self.conn then return; end
-	if self.conn:dirty() then
+	if self._wantread and self.conn:dirty() then
 		self:setreadtimeout(false);
 		self:pausefor(cfg.read_retry_delay);
 	else