Subject Re: [IBO] Unable to complete network request to host 335544721
Author Helen Borrie
At 12:49 PM 19/05/2006, you wrote:
>Is there any way to recover from this gracefully?
>
>I recently installed MadExcept into my apps and now I am seeing this
>every so often...
>
>I am wondering if I can somehow capture when this happens and to try
>and re-connect?
>
>The server is _not_ down... so it must be a network thing.
>
>Does IBO have any "retry" attempts or anything which will help me on this?

You can make it so. The connection itself has no way to know that
the connection was broken until a request fails, so you need to
provide a handler for this exception (its symbolic name is
isc_network_error). You can call VerifyConnection, which returns
False if there really is a broken connection and will set the
ConnectionWasLost flag too. Once you have established that the
connection is broken, you can call ForceDisconnect to clean up around
the dead connection; and then call some retry code of your own to
make a new connection.

Helen