hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Bloch <bl...@laszlosystems.com>
Subject Re: 2.0 rc1 leaking sockets?
Date Wed, 17 Mar 2004 22:05:54 GMT
Thanks... just to be clear though... the multi-threadded connection mgr 
should never hold open more than a fixed number of sockets though, right?

I've got a case where there's a clear socket leak in the java process 
and someone is pointing at me right now (and I use httpclient and always 
release my connections).

-Eric


Michael Becke wrote:

> Hi Eric,
>
> The multi-threaded connection manager holds on to connections that 
> have been released, but it does not necessarily close them.  
> Connections are only closed if the server sends a "connection: close" 
> header or if HTTP 1.0 is used.
>
> There are currently two open bugs that may apply to your situation:
>
> <http://issues.apache.org/bugzilla/show_bug.cgi?id=25372>
>   and
> <http://issues.apache.org/bugzilla/show_bug.cgi?id=27589>
>
> I would also suggest checking the archive for more discussion on this 
> matter.
>
> Mike
>
> On Mar 16, 2004, at 7:31 PM, Eric Bloch wrote:
>
>> Hi there,
>>
>> I've got a question.  I'm using the Multithreaded Connection Manager 
>> and I know that I'm always calling releaseConnection() on every 
>> connection I use.  Are there any reports (or possibilities) that 
>> releaseConnection() will fail to close an open socket or lose track 
>> of is such that I will see socket leaks?   This is running against 
>> JRE 1.3.1 (on linux).
>>
>> I have a custy that is seeing leaks WebSphere and at the moment, 
>> httpclient is the current suspect since it's one of the few things in 
>> the app that causes it to open sockets.
>>
>> Thanks,
>> -Eric
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: 
>> commons-httpclient-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: 
>> commons-httpclient-dev-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: 
> commons-httpclient-dev-help@jakarta.apache.org


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


Mime
View raw message