Diff

init.lua @ 444:12c1be0044c6

client: Send whitespace keeplives This is to prevent net.server from timing out connections.
author Kim Alvefur <zash@zash.se>
date Sun, 06 Jun 2021 16:43:36 +0200
parent 424:eaaaf4495e06
child 461:fa5c40e5e079
line wrap: on
line diff
--- a/init.lua	Wed Feb 17 14:57:59 2021 +0100
+++ b/init.lua	Sun Jun 06 16:43:36 2021 +0200
@@ -244,6 +244,9 @@
 		stream:event("status", new_status);
 	end
 
+	function conn_listener.onreadtimeout(conn)
+		return stream:event("read-timeout");
+	end
 	return conn_listener;
 end