ひがやすを技術ブログ

電通国際情報サービスのプログラマ

続S2DBCP

前回の修正は不十分でした。m(_ _)m
下記のようになります。
この修正は、次のバージョンアップで取り込まれる予定です。

ConnectionPoolImpl$FreeItem


public synchronized void expired() {
synchronized (ConnectionPoolImpl.this) {
freePool_.remove(this);
}
if (timeoutTask_ != null) {
timeoutTask_.cancel();
timeoutTask_ = null;
}
if (connectionWrapper_ != null) {
connectionWrapper_.closeReally();
connectionWrapper_ = null;
}
}

public synchronized void destroy() {
if (timeoutTask_ != null) {
timeoutTask_.cancel();
timeoutTask_ = null;
}
connectionWrapper_ = null;
}