Changeset

7590:fd07ab702f83

net.server_epoll: Remove read timeout when waiting to read more from buffer
author Kim Alvefur <zash@zash.se>
date Thu, 18 Aug 2016 16:12:28 +0200
parents 7589:125e4f2e0b65
children 7591:138f16eb39fb
files net/server_epoll.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_epoll.lua	Thu Aug 18 16:06:18 2016 +0200
+++ b/net/server_epoll.lua	Thu Aug 18 16:12:28 2016 +0200
@@ -271,9 +271,11 @@
 		self:destroy()
 		return;
 	end
-	self:setreadtimeout();
 	if self.conn:dirty() then
+		self:setreadtimeout(false);
 		self:pausefor(cfg.read_retry_delay);
+	else
+		self:setreadtimeout();
 	end
 end