On Tue, 2008-03-18 at 08:56 +0800, hjw wrote:
> Oleg Kalnichevski ,
> 
> I am sending a new HTTP request every second and then get the
> response.butusually connection reset after between 400 and 500
> times,and some can over
> 1000 times.
> 

Raymond,

Connection resets can happen due to various reasons (firewalls for
instance). You just need to retry failed requests.

Oleg  


> Raymond
> 
> 
> 2008/3/18, Oleg Kalnichevski <[EMAIL PROTECTED]>:
> >
> >
> > On Fri, 2008-03-14 at 11:24 +0800, hjw wrote:
> > > Hi,dear all:
> > >   I trying to use httpclient to get data from a website once in 1 second
> > > ,but when the count of getting data is appropriate to above 300
> > times,the
> > > programme will show a connection reset exception,I must keep the
> > programme
> > > to work no breaking,could you tell me what will cause the exception and
> > how
> > > to prevent it.
> > >   I am sorry for my pool English.
> > >
> > > regards,
> > >
> > > Raymond
> >
> > Raymond,
> >
> > What is it exactly you are doing? Are you sending a new HTTP request
> > every second or do you send just _one_ HTTP request and then poll the
> > data from the response output stream every second?
> >
> > Oleg
> >
> >
> > ---------------------------------------------------------------------
> > 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