2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-17 21:23:18 +00:00

Have shell sessions not autoreconnect

Unlike consoles, where the underlying concept is a real
persistent thing that needs some care to reattach to watch,
a shell session should die when it is lost, as a new one would
have to be created anyway.  Modify the disconnect behavior
for a shell session to set closed and notify the receivers.
It should also reap dependent watching objects in a future
change.
This commit is contained in:
Jarrod Johnson 2016-01-07 16:51:22 -05:00
parent cf16bfdd95
commit 62801734ab

View File

@ -34,6 +34,10 @@ class _ShellHandler(consoleserver.ConsoleHandler):
# suppress logging through proving a stub 'log' function
return
def _got_disconnected(self):
self.connectstate = 'closed'
self._send_rcpts({'connectstate': self.connectstate})