[Proxool-cvs] proxool/src/java/org/logicalcobwebs/proxool ConnectionPool.java,1.72,1.73
UNMAINTAINED!
Brought to you by:
billhorsman
From: <bil...@us...> - 2003-12-09 18:54:59
|
Update of /cvsroot/proxool/proxool/src/java/org/logicalcobwebs/proxool In directory sc8-pr-cvs1:/tmp/cvs-serv25223/src/java/org/logicalcobwebs/proxool Modified Files: ConnectionPool.java Log Message: Make closure of statement during connection test more robust - credit to John Hume Index: ConnectionPool.java =================================================================== RCS file: /cvsroot/proxool/proxool/src/java/org/logicalcobwebs/proxool/ConnectionPool.java,v retrieving revision 1.72 retrieving revision 1.73 diff -C2 -d -r1.72 -r1.73 *** ConnectionPool.java 4 Nov 2003 13:52:01 -0000 1.72 --- ConnectionPool.java 9 Dec 2003 18:54:55 -0000 1.73 *************** *** 286,293 **** removeProxyConnection(proxyConnection, "it has problems: " + t, ConnectionPool.REQUEST_EXPIRY, true); } finally { ! try { ! s.close(); ! } catch (SQLException e) { ! // Ignore } } --- 286,296 ---- removeProxyConnection(proxyConnection, "it has problems: " + t, ConnectionPool.REQUEST_EXPIRY, true); } finally { ! if (s != null) { ! try { ! s.close(); ! } catch (Throwable t) { ! // Ignore ! success = false; ! } } } *************** *** 1090,1093 **** --- 1093,1099 ---- Revision history: $Log$ + Revision 1.73 2003/12/09 18:54:55 billhorsman + Make closure of statement during connection test more robust - credit to John Hume + Revision 1.72 2003/11/04 13:52:01 billhorsman Fixed warning message |