Adding a session validity check in hopes of eventually expiring timed out connections.

This commit is contained in:
Greg Taylor 2007-04-25 20:11:29 +00:00
parent 0fc89247aa
commit 192ef521a2
3 changed files with 18 additions and 5 deletions

View file

@ -19,6 +19,17 @@ def get_session_list():
Lists the connected session objects.
"""
return session_list
def check_all_sessions():
"""
Check all currently connected sessions and see if any are dead.
"""
for sess in get_session_list():
if not sess.writable() or not sess.readable():
print 'Problematic Session:'
print 'Readable ', sess.readable()
print 'Writable ', sess.writable()
def remove_session(session):
"""