title: Apache HttpComponents code causing thread to block
body: <p>I am currently running a program that will download the source code from a website using Apache HttpComponents. I will be downloading a lot (10,000s) and so am using multiple threads to do this. </p>
  
  <p>Sometimes all threads die (join) and sometimes they don't. Through debugging I have determined that the line</p>
  
  <pre><code>CloseableHttpResponse response = httpClient.execute(httpget,context);
  </code></pre>
  
  <p>is the problem. Does anybody know how I can set a timeout for the this line, or why this line is blocking thread execution?</p>