Page 1 of 1

Reconnect to another host after connection lost

Posted: Wed 12 Nov 2014 10:33
by Macma
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

Re: Reconnect to another host after connection lost

Posted: Thu 13 Nov 2014 08:58
by ViktorV
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.