KeepConnectoinAlive?

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
kaffeburk
Posts: 160
Joined: Mon 29 Jan 2007 08:03

KeepConnectoinAlive?

Post by kaffeburk » Thu 07 Jun 2018 12:59

Hello,

(1) I would like to have something like KeepConnectoinAlive in the SSHclient.

(2) If the SSH client is open in design, the program crash when i run it. Is that normal behavior? If SSH is closed it will not crash.

(3) Is it possible to abort the connection from the "before connect" event?

Regards, Pär

ViktorV
Devart Team
Posts: 2216
Joined: Wed 30 Jul 2014 07:16

Re: KeepConnectoinAlive?

Post by ViktorV » Fri 08 Jun 2018 10:53

1. If you want us to add this functionality, please write about it at our User Voice forum: https://devart.uservoice.com/forums/174370-securebridge. If your suggestion gets enough votes, we will consider the possibility of its implementation.
2-3. If the program is written correctly, then when performing the specified actions, it should not crash. If a connection was established in design time, when running a program in runtime, it will attempt to install at startup. You can abort the connection attempt in the BeforeConnect event handler by generating Exception in it. This handler is executed when trying to connect, so please make sure that the correct values ​​are set in it.

kaffeburk
Posts: 160
Joined: Mon 29 Jan 2007 08:03

Re: KeepConnectoinAlive?

Post by kaffeburk » Mon 11 Jun 2018 05:19

Thanx, but how do i abort by generating an exception?

regards, Pär

ViktorV
Devart Team
Posts: 2216
Joined: Wed 30 Jul 2014 07:16

Re: KeepConnectoinAlive?

Post by ViktorV » Mon 11 Jun 2018 06:54

In order for us to give a more accurate and detailed answer, please specify the exact steps to reproduce it.

kaffeburk
Posts: 160
Joined: Mon 29 Jan 2007 08:03

Re: KeepConnectoinAlive?

Post by kaffeburk » Mon 11 Jun 2018 11:21

Step 1, read the line "In order for us to give a more accurate and detailed answer, please specify the exact steps to reproduce it."

Step 2, Read "You can abort the connection attempt in the BeforeConnect event handler by generating Exception in it. This handler is executed when trying to connect, so please make sure that the correct values ​​are set in it."

Step 3, google, look in books you have and find out You don't know how to do that.

Step 4, Now problem reproduced!

ViktorV
Devart Team
Posts: 2216
Joined: Wed 30 Jul 2014 07:16

Re: KeepConnectoinAlive?

Post by ViktorV » Mon 11 Jun 2018 11:40

To abort the connection attempt in the BeforeConnect event handler by generating Exception, you can use the following code:

Code: Select all

procedure TSSHClientFrame.ScSSHClientBeforeConnect(Sender: TObject);
begin
  raise EScError.Create('Connection attempt was aborted');
end;

Post Reply