hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danch <da...@danch.com>
Subject Re: Is there still anything that blocks 2.0RC2 release?
Date Wed, 08 Oct 2003 14:40:04 GMT
Ortwin Gl├╝ck wrote:
> Oleg Kalnichevski wrote:
>> Are there any reasons for NOT automatically releasing connection? I
>> can't think of any. 
> Right. I think HttpClient should abstract the physical connections away 
> from the user. So connection handling must be completely inside 
> HttpClient. The only "exception" is that the user must signal HttpClient 
> when he is done with a method so the connection can be released. Still, 
> if the user forgets that, the connection must be released at the very 
> latest at garbage collection time.

Releasing at finalization is implemented (via ReferenceQueue), but that's not a panacea: if
usage is light, GC comes long after the application is wedged up waiting for a connection
to be 
freed. That was the behavior I saw that led to the referenced discussion.


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