In: def inputcooker(self):
except (EOFError, socket.error):
pass
should become:
except (EOFError, socket.error):
self.session_end()
There needs to be some way to catch when a session is closed without using the 'exit' command, IE a timeout or just lost connection