aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/adminstream.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/util/adminstream.lua b/util/adminstream.lua
index 70fa2b19..782a6b0f 100644
--- a/util/adminstream.lua
+++ b/util/adminstream.lua
@@ -247,6 +247,11 @@ local function new_server(sessions, stanza_handler)
sessions[conn] = nil;
end
end
+
+ function listeners.onreadtimeout(conn)
+ conn:send(" ");
+ end
+
return {
listeners = listeners;
};
@@ -315,6 +320,10 @@ local function new_client()
client.conn = nil;
end
+ function listeners.onreadtimeout(conn)
+ conn:send(" ");
+ end
+
client.listeners = listeners;
return client;