Graceful disconnect/reconnect for IB_Connection (using IB Objects)

From: etishler (etish2000_at_yahoo.com)
Date: 03/15/04


Date: 15 Mar 2004 11:15:57 -0800

I have client server application that I am trying to make more
robust. Given a consistent connection, everything works the way it is
supposed to. However, if a network connection is dropped, I am trying
to create a graceful way to:

1) Detect the disconnect and put my clients in a corresponding
recognizable state

2) Automatically keep retrying to connect and once established, place
the client application back in service.

I have this working to a degree. I detects the disconnect and can
reestablish the connection as well. However, there is a small window
in which another network disconnect (during the initial reconnection)
throws the client application into a peculiar state in which I am no
longer able to reconnect.

I am using IB Objects and the connection I refer to is one using
IB_Connection to connect to a Firebird database that is
central/crucial to my application.

I have looked through the help files on IBO but cannot find a decent
reference on how to approach this problem.

Can anyone help me here?

Thank you,
Eri Tishler



Relevant Pages

  • [PATCH 0/5] [RFC] AF_RXRPC socket family implementation [try #3]
    ... These patches together supply secure client-side RxRPC connectivity as a Linux ... kernel socket family. ... presentation side is left to the client. ... Each connection goes to a particular "service". ...
    (Linux-Kernel)
  • Re: Socket
    ... When you disconnect, TCP detects that the connection was broken. ... i used to sent pong to server when server pinged ... Now on client side when client recived ...
    (microsoft.public.dotnet.faqs)
  • Re: Socket
    ... When you disconnect, TCP detects that the connection was broken. ... i used to sent pong to server when server pinged ... Now on client side when client recived ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Socket
    ... When you disconnect, TCP detects that the connection was broken. ... i used to sent pong to server when server pinged ... Now on client side when client recived ...
    (microsoft.public.dotnet.general)
  • [PATCH 0/5] [RFC] AF_RXRPC socket family implementation
    ... These patches together supply secure client-side RxRPC connectivity as a Linux ... Make it possible for the client socket to be used to go to more than one ... Each connection goes to a particular "service". ...
    (Linux-Kernel)