mirror of https://github.com/apache/cloudstack.git
bug 7316: VMware send unrecognized ZLRE encoding packet, switch to less-efficient but widely supported basic encoding mode. As the encoding is used between console proxy and the target host, which is within backend local network, it shouldn't affect AJAX performance
This commit is contained in:
parent
6a0159c498
commit
864c35d615
|
|
@ -219,9 +219,8 @@ public class ConsoleProxyViewer implements java.lang.Runnable, RfbViewer, RfbPro
|
|||
String msg = e.getMessage();
|
||||
s_logger.warn("Authentication exception, msg: " + msg + "sid: " + this.passwordParam);
|
||||
} catch (Exception e) {
|
||||
status = STATUS_ERROR;
|
||||
if(s_logger.isDebugEnabled())
|
||||
s_logger.debug("Exception : ", e);
|
||||
status = STATUS_ERROR;
|
||||
s_logger.error("Unexpected exception ", e);
|
||||
} finally {
|
||||
// String oldName = Thread.currentThread().getName();
|
||||
encodingsSaved = null;
|
||||
|
|
@ -372,7 +371,9 @@ public class ConsoleProxyViewer implements java.lang.Runnable, RfbViewer, RfbPro
|
|||
void setEncodings(boolean autoSelectOnly) {
|
||||
if (options == null || rfb == null || !rfb.inNormalProtocol)
|
||||
return;
|
||||
|
||||
|
||||
options.preferredEncoding = RfbProto.EncodingHextile;
|
||||
|
||||
int preferredEncoding = options.preferredEncoding;
|
||||
if (preferredEncoding == -1) {
|
||||
long kbitsPerSecond = rfb.kbitsPerSecond();
|
||||
|
|
|
|||
Loading…
Reference in New Issue