What Exception is thrown on connection timeout in HTMLUnit ?
Asked
Active
Viewed 1,653 times
2 Answers
2
HtmlUnit uses the Apache HttpClient. The timeout mechanism throws an InterruptedIOException.
See the HttpClient documentation.
This exception is a subclass of IOException, which can be thrown during any HttpClient execute call (basically whenever you get a page with an HtmlUnit WebClient.

Ben Flynn
- 18,524
- 20
- 97
- 142
1
I think there is a bug, it really should throw a exception but dont throw if you set an timeout great than a value, you can see it in (Call getPage from htmlunit WebClient with JavaScript disabled and setTimeout set to 10000 waits forever)
Thanks a lot