commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Sutton <>
Subject RE: [HttpClient] HttpClient doesn't release connection....!?
Date Sun, 22 Jun 2003 22:33:46 GMT
Hi wolfgang,
HttpClient will correctly release connection, but you must let it know that
the connection is no longer in use somehow.  There are a couple of ways of
doing this:

1. Read all the data from the connection.
2. Call releaseConnection on the method you executed.

You should take a look at the documentation on the httpclient website
( and particularly the
tutorial ( then
the multithreading guide
( then if you're
still having trouble check out the troubleshooting guide
( and
finally if you still can't work it out send a wire trace through to the
mailing list (see

Who says open source is never well documented? :)

Hope that helps,

Adrian Sutton, Software Engineer
Ephox Corporation 

-----Original Message-----
From: []
Sent: Saturday, 21 June 2003 11:51 PM
Subject: [HttpClient] HttpClient doesn't release connection....!?

Hi there,

I've been developing a simple code (on Redhat7.3) accessing many web
The code instantiate 50 thread objects and httpclient is instantiated in
each thread.
If I run the code, httpclient doesn't finish...and the processes remains
 till I kill those processes.
I checked it out by 'ps -efwww | grep java '
Of course, I'm using both the timeout of httpclient connection and 
releaseConnection() method.

I'm guessing that HttpClient doesn't release Connection....

Thanks in advance


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message