On Thu, 2007-12-06 at 17:56 +0100, Krzysztof Zimnicki wrote:
> 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 :)
> 

The connection manager will automatically allocate new connections as
necessary, but you need to make sure to restart the worker threads that
terminated due to the SocketException.

Oleg

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


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

Reply via email to