开发者

Java Https default retry mechanism

Is there a default retry when using sun HttpsUrlConnection ? If so, how can I cancel it开发者_StackOverflow中文版 ?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜