mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Keep shell processes alive between network offline periods (#4258)
This commit is contained in:
1 parent
8de3cbe5ee
commit
e5bf5920fc
6 files changed
+141
-29
No files matched your search
@@ -87,8 +87,8 @@ export function shellApiRequest({ req, socket, head }: ProxyApiRequestArgs): voi
|
||||
|
||||
ws.handleUpgrade(req, socket, head, (webSocket) => {
|
||||
const shell = node
|
||||
? new NodeShellSession(webSocket, cluster, node)
|
||||
: new LocalShellSession(webSocket, cluster);
|
||||
? new NodeShellSession(webSocket, cluster, node, tabId)
|
||||
: new LocalShellSession(webSocket, cluster, tabId);
|
||||
|
||||
shell.open()
|
||||
.catch(error => logger.error(`[SHELL-SESSION]: failed to open a ${node ? "node" : "local"} shell`, error));
|
||||
|
||||
Reference in new issue
Block a user