title: How can I disable or specify the number of retries in HtmlUnit (java)?
body: <p>I want, that a web request in HtmlUnit is not executed again after a connection reset.The following exception message shows the retrying connect:</p>
  
  <pre><code>INFO: I/O exception (java.net.SocketException) caught when connecting to the target host: Connection reset
  * * org.apache.http.impl.client.DefaultRequestDirector tryConnect
  INFO: Retrying connect
  </code></pre>
  
  <p>So how can I disable or specify the number of retries in HtmlUnit (java)?</p>