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.
This commit is contained in:
Lance Stout
2011-08-25 15:11:26 -07:00
parent b8a4ffece9
commit 2162d6042e
2 changed files with 21 additions and 7 deletions

View File

@@ -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.