|
|||||||||||
|
Re: [JDBC] Implementing setQueryTimeout()
From: Till Toenges <tt(at)kyon.de>
Date: Tue Feb 19 2008 - 04:13:37 EST
>>> Sorry. Of course the driver must handle failed connections. I meant >>> the code in my application, which handles the two cases (timeout but >>> usable connection vs broken connection for whatever reason) differently. >> >> You can check the SQLState of any exception thrown to tell the >> difference, right? Yes, i can check that. But if the connection is closed at this point, that's no longer useful, except for diagnostics. This is, of course, just the case where setQueryTimeout() is really "hard". > Just to clarify: The distinction between hard and soft timeouts makes sense in this way. Please just make it so that hard timeouts are off by default. Till ---------------------------(end of broadcast)---------------------------TIP 4: Have you searched our list archives? http://archives.postgresql.org Received on Tue Feb 19 04:17:12 2008 This archive was generated by hypermail 2.1.8 : Wed Jun 18 2008 - 23:44:58 EDT |
||||||||||
|
|||||||||||