On Sat, 2008-08-30 at 20:50 -0400, Tomek Maciejewski wrote:
> Hi,
> I am trying to write a multithreaded crawler. I would like to execute
> http requests simultaneously. 

...

> 
> I use a one instance of this client. The instance is marked as static
> and final. But after executing some number of requests I start to get
> a java.net.BindException with message "Address already in use" almost
> every time I want to execute request. The code responsible for
> executing requests is below (HTTP_CLIENT is a instance of the class I
> mentioned above):
> 

...


> Could you tell me what am I doing wrong? I thought that maybe I don't
> release the connection and I don't unbind sockets, but in finally
> section I use consumeContent() method which should do that.
> 

Tomek,

(1) What platform (OS) are you using? Quite often BindException are
caused by platform specific TCP/IP settings. 

(2) You can turn on context logging in order to see if connections get
really reused or not. If they do, this would suggest a TCP/IP stack
configuration issue. 

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to