diff options
author | Lance Stout <lancestout@gmail.com> | 2011-08-25 15:11:26 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-08-25 15:40:13 -0700 |
commit | 2162d6042e7eef953a957c0bcf81e65a66a963d4 (patch) | |
tree | 27f6c3e560b15a4af91bd29762093d49c8b06f36 /sleekxmpp/clientxmpp.py | |
parent | b8a4ffece9d176b4b9a594681fa58668f2cad42f (diff) | |
download | slixmpp-2162d6042e7eef953a957c0bcf81e65a66a963d4.tar.gz slixmpp-2162d6042e7eef953a957c0bcf81e65a66a963d4.tar.bz2 slixmpp-2162d6042e7eef953a957c0bcf81e65a66a963d4.tar.xz slixmpp-2162d6042e7eef953a957c0bcf81e65a66a963d4.zip |
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.
Diffstat (limited to 'sleekxmpp/clientxmpp.py')
-rw-r--r-- | sleekxmpp/clientxmpp.py | 7 |
1 files changed, 0 insertions, 7 deletions
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. |