]> git.proxmox.com Git - pve-xtermjs.git/commit
implement reconnect logic
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 10 Apr 2018 12:03:28 +0000 (14:03 +0200)
committerDominik Csapak <d.csapak@proxmox.com>
Wed, 11 Apr 2018 12:32:15 +0000 (14:32 +0200)
commit291e1a24622d519949b2c4dc4a4dafec4f5c98cb
tree7219f0319ce208545edf950337f3cd70c29870f5
parent37445374a339e0d6a0bf2e73d7fe516f9c3bf2af
implement reconnect logic

this improves the closed gracefully/error logic
(detects an error if we disconnect immediately after connecting)
and implements a reconnect for vms/containers

if we have a disconnect, we check /cluster/resources
(and /nodes/<node>/lxc/<id>/status/current) if we are migrated
and reconnect the console window or reload the window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/www/main.js