mirror of
https://github.com/xcat2/confluent.git
synced 2025-02-16 18:49:04 +00:00
Add stub resize handler
For uninitialized console handlers, provide a stub to do nothing on resize. This avoids such a request crashing a shared websocket session.
This commit is contained in:
parent
85629dea64
commit
b0e23121a8
@ -175,6 +175,9 @@ class ConsoleHandler(object):
|
||||
self.connectstate = 'connecting'
|
||||
eventlet.spawn(self._connect)
|
||||
|
||||
def resize(self, width, height):
|
||||
return None
|
||||
|
||||
def _get_retry_time(self):
|
||||
clustsize = len(self.cfgmgr._cfgstore['nodes'])
|
||||
self._retrytime = self._retrytime * 2 + 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user