hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krzysztof Zimnicki <krzys...@go2.pl>
Subject Re: Threads problem - too many errors.
Date Thu, 06 Dec 2007 16:56:06 GMT
Oleg Kalnichevski pisze:
> On Tue, 2007-12-04 at 22:58 +0100, Krzysztof Zimnicki wrote:
>   
>> Hello.
>>
>> My application using threads, do 1000-10000 conections. I create 20-30 
>> threads and at begining everything is fine, but 2-3h later i have only 
>> 50% works threads. I don't know what is wrong, and have more errors than 
>> at begining. My code:
>>
>>     
>
>   
>> Many of errors:
>>
>> java.net.SocketException: Connection reset
>>         at java.net.SocketInputStream.read(Unknown Source)
>>     
>
> ...
>
>   
>> Any idea?
>>
>>     
>
> Krzysztof,
>
> 'SocketException: Connection reset' can happen. Your application should
> compensate for failed connections by opening new ones.
>
> Oleg 
>
>
>   
How can i compesate for failed connections ? releaseConnection(); don't 
do that ?
Why? Example please :)

Krzysztof Zimnicki

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


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


Mime
View raw message