How to detect when a connection times out ?
From: Leny (leny00004_at_hotmail.com)
Date: 08/25/04
- Next message: Flip: "Re: Newbie MySQL question: how to retrieve latest entry from a history of entries?"
- Previous message: Gary K Spencer: "[ANN] JLAN Server 3.3 Released"
- Next in thread: Joe Weinstein: "Re: How to detect when a connection times out ?"
- Reply: Joe Weinstein: "Re: How to detect when a connection times out ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 25 Aug 2004 05:46:23 -0700
Hi,
I'm looking for a standar way to know when a connection has been
timed out.
Right now, I found the following solutions:
- Make a query and check out the result. If it's an exception,
reopen the connection.
- Just check every exception for every query.
Well, as you can see they are far from ideal solutions. I just
can't check the isClosed() because it only returns true when the
*client* closes the connection.
Do you know any way to know if the connection is active ? Any
comments would be really welcome.
Thanks in advance,
- Leny
- Next message: Flip: "Re: Newbie MySQL question: how to retrieve latest entry from a history of entries?"
- Previous message: Gary K Spencer: "[ANN] JLAN Server 3.3 Released"
- Next in thread: Joe Weinstein: "Re: How to detect when a connection times out ?"
- Reply: Joe Weinstein: "Re: How to detect when a connection times out ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]