From 2162d6042e7eef953a957c0bcf81e65a66a963d4 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Thu, 25 Aug 2011 15:11:26 -0700 Subject: Session timeout now defaults to 45sec, but can be adjusted. e.g. self.session_timeout = 15 It is also managed by XMLStream instead of ClientXMPP now. --- sleekxmpp/clientxmpp.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'sleekxmpp/clientxmpp.py') diff --git a/sleekxmpp/clientxmpp.py b/sleekxmpp/clientxmpp.py index 004037f2..2501f5d3 100644 --- a/sleekxmpp/clientxmpp.py +++ b/sleekxmpp/clientxmpp.py @@ -254,13 +254,6 @@ class ClientXMPP(BaseXMPP): self.bindfail = False self.features = set() - def session_timeout(): - if not self.session_started_event.isSet(): - log.debug("Session start has taken more than 15 seconds") - self.disconnect(reconnect=self.auto_reconnect) - - self.schedule("session timeout checker", 15, session_timeout) - def _handle_stream_features(self, features): """ Process the received stream features. -- cgit v1.2.3