Permalink
Browse files

Force a minimum of 1 second waiting time after creating the plink.exe…

… process before trying to access the established tunnel. Could help users which have set it to "0", accidentally or intentionally, and experiencing connection problems with that. Related to #418.
  • Loading branch information...
ansgarbecker committed Dec 5, 2018
1 parent 68c1652 commit 86684ebde3db19e79879036312e0075834611917
Showing with 5 additions and 1 deletion.
  1. +3 −1 source/connections.dfm
  2. +2 −0 source/dbconnection.pas
@@ -575,7 +575,7 @@ object connform: Tconnform
Width = 60
Height = 21
TabOrder = 5
Text = '0'
Text = '1'
OnChange = Modification
end
object updownSSHTimeout: TUpDown
@@ -584,6 +584,8 @@ object connform: Tconnform
Width = 17
Height = 21
Associate = editSSHTimeout
Min = 1
Position = 1
TabOrder = 6
Wrap = True
end
@@ -1173,6 +1173,8 @@ constructor TConnectionParameters.Create(SessionRegPath: String);
FSSHUser := AppSettings.ReadString(asSSHtunnelUser);
FSSHPassword := decrypt(AppSettings.ReadString(asSSHtunnelPassword));
FSSHTimeout := AppSettings.ReadInt(asSSHtunnelTimeout);
if FSSHTimeout < 1 then
FSSHTimeout := 1;
FSSHPrivateKey := AppSettings.ReadString(asSSHtunnelPrivateKey);
FSSHLocalPort := AppSettings.ReadInt(asSSHtunnelPort);

0 comments on commit 86684eb

Please sign in to comment.