Software /
code /
prosody
Diff
core/sessionmanager.lua @ 4548:e6e5c76ff009
sessionmanager, mod_c2s: Move timeout logic to mod_c2s
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 23 Jan 2012 00:56:57 +0000 |
parent | 4543:db27a4c18b6a |
child | 4552:414d857ee125 |
line wrap: on
line diff
--- a/core/sessionmanager.lua Mon Jan 23 00:11:01 2012 +0000 +++ b/core/sessionmanager.lua Mon Jan 23 00:56:57 2012 +0000 @@ -28,8 +28,6 @@ local st = require "util.stanza"; -local c2s_timeout = config_get("*", "core", "c2s_timeout"); - local newproxy = newproxy; local getmetatable = getmetatable; @@ -62,14 +60,6 @@ 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