mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	console proxy client sleep more generic (#8694)
* Make wait in the noVNC console proxy client more generic * Update services/console-proxy/server/src/main/java/com/cloud/consoleproxy/ConsoleProxyNoVncClient.java Co-authored-by: Wei Zhou <weizhou@apache.org> --------- Co-authored-by: Wei Zhou <weizhou@apache.org>
This commit is contained in:
		
							parent
							
								
									bbe56ae283
								
							
						
					
					
						commit
						4e34e6b334
					
				| @ -114,11 +114,6 @@ public class ConsoleProxyNoVncClient implements ConsoleProxyClient { | ||||
|                                 updateFrontEndActivityTime(); | ||||
|                             } | ||||
|                             connectionAlive = session.isOpen(); | ||||
|                             try { | ||||
|                                 Thread.sleep(1); | ||||
|                             } catch (InterruptedException e) { | ||||
|                                 s_logger.error("Error on sleep for vnc over websocket", e); | ||||
|                             } | ||||
|                         } else if (client.isVncOverNioSocket()) { | ||||
|                             byte[] bytesArr; | ||||
|                             int nextBytes = client.getNextBytes(); | ||||
| @ -139,6 +134,11 @@ public class ConsoleProxyNoVncClient implements ConsoleProxyClient { | ||||
|                                 connectionAlive = false; | ||||
|                             } | ||||
|                         } | ||||
|                         try { | ||||
|                             Thread.sleep(1); | ||||
|                         } catch (InterruptedException e) { | ||||
|                             s_logger.error("Error on sleep for vnc sessions", e); | ||||
|                         } | ||||
|                     } | ||||
|                     s_logger.info(String.format("Connection with client [%s] is dead.", clientId)); | ||||
|                 } catch (IOException e) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user