title: I receive ANR when calling URLconnection
body: <p>EDIT: This is run in AsyncTask, I should have mentioned this.</p>
  
  <p>I have received many ANR's on this code block:</p>
  
  <pre><code>    URL url = new URL(sURL);
          URLConnection connect = url.openConnection();
          connect.setConnectTimeout(R.integer.timeoutLengthWithACapitalT);
          connect.setReadTimeout(R.integer.timeoutLengthWithACapitalT);
          BufferedReader in = new BufferedReader(new InputStreamReader(connect.getInputStream())); //Problem Line
  </code></pre>
  
  <p>R.integer.timeoutLengthWithACapitalT is 1000</p>
  
  <p>I don't know what is causing this, I believe it should time out. However, I get a stack trace for ANR.</p>
  
  <p>Stack Trace:
  <a href="https://pastebin.com/hwJhGfVX" rel="nofollow noreferrer">https://pastebin.com/hwJhGfVX</a></p>