Increased VNC test connection timeout from 150ms to 500ms

It has been found at times that when connecting to a VNC host that the connection times-out even though the host is powered on. This happens mostly when you are connected to the network through WiFi. The time out value for the VNC test connection has been increased from 150ms to 500ms.
This commit is contained in:
ryno2121
2019-09-30 06:05:42 +02:00
committed by GitHub
parent 772a11cb1d
commit b1c650bb72

View File

@@ -72,7 +72,7 @@ namespace mRemoteNG.Connection.Protocol.VNC
SetEventHandlers();
try
{
if (TestConnect(_info.Hostname, _info.Port, 150))
if (TestConnect(_info.Hostname, _info.Port, 500))
_vnc.Connect(_info.Hostname, _info.VNCViewOnly, _info.VNCSmartSizeMode != SmartSizeMode.SmartSNo);
}
catch (Exception ex)
@@ -359,4 +359,4 @@ namespace mRemoteNG.Connection.Protocol.VNC
#endregion
}
}
}