Reconnect to another host after connection lost

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Macma
Posts: 10
Joined: Thu 23 Oct 2008 09:02

Reconnect to another host after connection lost

Post by Macma » Wed 12 Nov 2014 10:33

Hi,

In my application I try to support connection to secondary server if I lost connection with master server. When I detect connection problems I suggest user to reconnect to another active server. I call Disconnect() then I set new host name and call Connect(). The problem is that Disconnect() takes to much time when server doesn't respond anymore. I have about 12 connection to different databases on the same server. Is there any way to do this faster.

Best Regards,
Macma

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

Re: Reconnect to another host after connection lost

Post by ViktorV » Thu 13 Nov 2014 08:58

Most likely, such behavior on calling TIBCConnection.Disconnect is not a specificity of IBDAC, but is related to Firebird functionality. Try to reproduce your issue using the Embarcadero standard components (FireDac, IBX) - and let us know about the results.

Post Reply