Re: How could cause connection reset
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]
Re: How could cause connection reset
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]
Re: How could cause connection reset
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 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]
Re: How could cause connection reset
I think you are make spider. some server refuse you request when you send http request more frequence, like google 2008/3/18, hjw [EMAIL PROTECTED]: 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 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]
Re: How could cause connection reset
You are right,but data on the server I request is change frequence ,sometimes may be 2 version data in one second. 2008/3/18, 游泳池的鱼 [EMAIL PROTECTED]: I think you are make spider. some server refuse you request when you send http request more frequence, like google 2008/3/18, hjw [EMAIL PROTECTED]: 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 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]