plugins/keepalive.lua@5b49de3aa0f3
plugins/keepalive.lua
Thu, 24 Nov 2011 06:23:43 +0100
- author
- Kim Alvefur <zash@zash.se>
- date
- Thu, 24 Nov 2011 06:23:43 +0100
- changeset 232
- 5b49de3aa0f3
- parent 206
-
1bf01ffcb5a3
- child 250
-
a5ac643a7fd6
- permissions
- -rw-r--r--
plugins.pep: Set item to the first tag instead of first child.
function verse.plugins.keepalive(stream)
stream.keepalive_timeout = stream.keepalive_timeout or 300;
verse.add_task(stream.keepalive_timeout, function ()
stream.conn:write(" ");
return stream.keepalive_timeout;
end);
end