mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user