hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Becke <be...@u.washington.edu>
Subject Re: DO NOT REPLY [Bug 13463] - Request/Response race condition when doing multiple requests on the same connection.
Date Fri, 14 Feb 2003 15:59:26 GMT
I was thinking that releaseConnection() on the adapter would remove the 
internal reference to the actual connection.  After that the wrapper 
would not be usable.  It could either throw exceptions or just return 
empty data.


Ortwin Gl├╝ck wrote:
> Michael Becke wrote:
>> I think the only real way to do it is with an adapter class.  It would 
>> be a subclass of HttpConnection that takes a connection in the 
>> constructor.  It would just pass all method calls along to the real 
>> connection, until the connection is released.
> And add a finalize() that returns it to the pool?
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: 
> commons-httpclient-dev-help@jakarta.apache.org

View raw message