You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/02/12 19:26:24 UTC

DO NOT REPLY [Bug 16987] - race condition in PoolableConnection.close()

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16987>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16987

race condition in PoolableConnection.close()





------- Additional Comments From mic@schlund.de  2003-02-12 18:26 -------
A related problem:

DelegatingConnection.isClosed() should be synchronized too.

...which raises another problem:

PoolableConnection.close() needs a lock on itself (and on _pool to avoid
deadlocks). I'm afraid we need something like

synchronized(_pool){
    synchronized(this) {
...
    }
}

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org