Retrying a HTTP call..

2011-05-27 Thread Manikandan R
Hi Everyone,

I've started using apache commons httpclient library (version no. 3.1) to
make the http calls recently. In production environment, seeing the
following exceptions in logs:

1. Broken Pipe
2. Connection Reset
3. Connection Timeout
4. Read Time out
etc

Whenever these exceptions, we get the complaints from customers not
completing the tasks. So, we repeat the work manually. To avoid doing it
manually, program should take care of the retries without causing any
duplicates. I am not sure when to do the retry. Basically, for what type of
exceptions, Should I do retry so that it won't end up in duplicates?

Please suggest.

Thanks,
Mani


Re: Retrying a HTTP call..

2011-05-27 Thread Simone Tripodi
Hi Mani,
HTTP client has been moved to Http Componentes[1] I suggest you asking
on their ML
HTH, have a nice day!
Simo

[1] http://hc.apache.org/

http://people.apache.org/~simonetripodi/
http://www.99soft.org/



On Fri, May 27, 2011 at 3:00 PM, Manikandan R maniraj...@gmail.com wrote:
 Hi Everyone,

 I've started using apache commons httpclient library (version no. 3.1) to
 make the http calls recently. In production environment, seeing the
 following exceptions in logs:

 1. Broken Pipe
 2. Connection Reset
 3. Connection Timeout
 4. Read Time out
 etc

 Whenever these exceptions, we get the complaints from customers not
 completing the tasks. So, we repeat the work manually. To avoid doing it
 manually, program should take care of the retries without causing any
 duplicates. I am not sure when to do the retry. Basically, for what type of
 exceptions, Should I do retry so that it won't end up in duplicates?

 Please suggest.

 Thanks,
 Mani


-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org