Mercurial > libervia-backend
changeset 1211:9355f48f979e
core: move XMPP keep-alife value to the constants
author | souliane <souliane@mailoo.org> |
---|---|
date | Sun, 21 Sep 2014 13:06:53 +0200 |
parents | 53037afd413e |
children | 628e320eab1f |
files | src/core/constants.py src/core/xmpp.py |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/constants.py Thu Sep 18 11:43:21 2014 +0200 +++ b/src/core/constants.py Sun Sep 21 13:06:53 2014 +0200 @@ -37,6 +37,7 @@ # Protocol XMPP_C2S_PORT = 5222 + XMPP_KEEP_ALIFE = 180 ## Parameters ##
--- a/src/core/xmpp.py Thu Sep 18 11:43:21 2014 +0200 +++ b/src/core/xmpp.py Sun Sep 21 13:06:53 2014 +0200 @@ -65,7 +65,7 @@ """Called after _authd""" log.debug(_("XML stream is initialized")) self.keep_alife = task.LoopingCall(self.xmlstream.send, " ") # Needed to avoid disconnection (specially with openfire) - self.keep_alife.start(180) + self.keep_alife.start(C.XMPP_KEEP_ALIFE) self.disco = SatDiscoProtocol(self) self.disco.setHandlerParent(self)