Diff

net/server_event.lua @ 10407:bd8fbee04a2f

server_event: Remove duplicated code (thanks waqas) readcallback() calls onreadtimeout() and runs the exact same code if onreadtimeout() doesn't return true, which it doesn't do.
author Kim Alvefur <zash@zash.se>
date Wed, 13 Nov 2019 22:34:25 +0100
parent 10234:d4390c427a66
child 10547:c77471c180ea
line wrap: on
line diff
--- a/net/server_event.lua	Sat Nov 09 13:58:25 2019 +0100
+++ b/net/server_event.lua	Wed Nov 13 22:34:25 2019 +0100
@@ -463,10 +463,6 @@
 function interface_mt:ontimeout()
 end
 function interface_mt:onreadtimeout()
-	self.fatalerror = "timeout during receiving"
-	debug( "connection failed:", self.fatalerror )
-	self:_close()
-	self.eventread = nil
 end
 function interface_mt:ondrain()
 end