Reconnect to another host after connection lost
Posted: 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
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