mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CPVM: fix cpu usage for console vm when using vnc over websockets (#6970)
Co-authored-by: Alexandru Bagu <alexandru.bagu@hotmail.com>
This commit is contained in:
parent
72e3491cef
commit
a47a4f4ad4
@ -114,6 +114,11 @@ public class ConsoleProxyNoVncClient implements ConsoleProxyClient {
|
||||
updateFrontEndActivityTime();
|
||||
}
|
||||
connectionAlive = client.isVncOverWebSocketConnectionAlive();
|
||||
try {
|
||||
Thread.sleep(1);
|
||||
} catch (Exception e) {
|
||||
s_logger.warn("Error on sleep for vnc over websocket", e);
|
||||
}
|
||||
} else if (client.isVncOverNioSocket()) {
|
||||
byte[] bytesArr;
|
||||
int nextBytes = client.getNextBytes();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user