aboutsummaryrefslogtreecommitdiffstats
path: root/core/sessionmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-01-23 00:56:57 +0000
committerMatthew Wild <mwild1@gmail.com>2012-01-23 00:56:57 +0000
commit308cf1c32f9145ed83160014a090f01a36f02720 (patch)
tree23dd118b9e745bfa49eb722ce5324c7ed2ab6a00 /core/sessionmanager.lua
parent3e28afcd6c5a926b2d46b9e09d21a39dae882019 (diff)
downloadprosody-308cf1c32f9145ed83160014a090f01a36f02720.tar.gz
prosody-308cf1c32f9145ed83160014a090f01a36f02720.zip
sessionmanager, mod_c2s: Move timeout logic to mod_c2s
Diffstat (limited to 'core/sessionmanager.lua')
-rw-r--r--core/sessionmanager.lua10
1 files changed, 0 insertions, 10 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index 17c718dc..276cd8f5 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -28,8 +28,6 @@ local gettime = require "socket".gettime;
local st = require "util.stanza";
-local c2s_timeout = config_get("*", "core", "c2s_timeout");
-
local newproxy = newproxy;
local getmetatable = getmetatable;
@@ -62,14 +60,6 @@ function new_session(conn)
session.ip = conn:ip();
local conn_name = "c2s"..tostring(conn):match("[a-f0-9]+$");
session.log = logger.init(conn_name);
-
- if c2s_timeout then
- add_task(c2s_timeout, function ()
- if session.type == "c2s_unauthed" then
- session:close("connection-timeout");
- end
- end);
- end
return session;
end