hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: How could cause connection reset
Date Wed, 19 Mar 2008 19:44:50 GMT

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 <olegk@apache.org>:
> >
> >
> > 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: httpclient-users-unsubscribe@hc.apache.org
> > For additional commands, e-mail: httpclient-users-help@hc.apache.org
> >
> >


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


Mime
View raw message