Subject | Re: [firebird-support] timeout a pending connection via a bad network? |
---|---|
Author | John vd Waeter |
Post date | 2005-12-19T20:28:35Z |
Hi Helen, Adam, Lester,
transport has gone down as well. Not sure how many corrupted packets
were refused.
"limbo", if I recall correct.
John
> HTTP protocol is stateless. The database's API certainly isn't.Yes, which creates other complications, I know...
> On the Firebird side, you are talking about two totally differentYeah, well, slow, that is the visible symptom. I guess quality of
> things. One one hand, inability to *get* a connection, while, on the
> other, some way to decide that the connection you have got is too slow.
transport has gone down as well. Not sure how many corrupted packets
were refused.
> If you can't *get* a connection, you are waiting for the NOS to timeoutI understand. By killing the client the transaction will remain,
> your request. If you connected to the database, started a transaction and
> submitted a request, then there is no way to stop that running transaction.
"limbo", if I recall correct.
> IBO does have ways to abort a request (study the helpfile). So it'sAllthough off-topic that seems the way to go... tnx!
> possible to define your own request_too_slow exception and call on the
> session timer to monitor the time it takes to satisfy a Fetch or some other
> request; write a handler for the exception that sets off the graceful
> unwinding back through request-transaction-connection.
> However, the API itself has no way to know that the request is taking tooThank you all, got some idea now!
> long; nor does it have any way to know if the network connection has been
> broken. So, in IBO, the Connected property remains true. The first the
> app will know that the connection is gone is when it submits *another*
> request and gets an exception.
John