Is there a default retry when using sun HttpsUrlConnection ?
If so, how can I cancel it ?
Is there a default retry when using sun HttpsUrlConnection ? If so, how can
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If I remeber correctly, the Sun VM, up to Java 1.4, attempted to retry HTTP/HTTPS requests once if the first request failed with some specific error conditions. Since Java 5, this is not done anymore.
It was not possible to disable this behaviour in Java 1.4, so if you’re stuck with an old Java VM and cannot accept this behaviour, you have to use a 3rd party HTTP library, like HTTPClient from Apache.