title: ErrnoException: isConnected failed: EHOSTUNREACH (No route to host) when changing the wifi network using ICS
body: <p>When using my app on ics, after I change my wifi network from networkA to networkB  all the requests for images start coming back with an exception.</p>
  
  <p>failed with exception</p>
  
  <pre><code>&gt; org.apache.http.conn.HttpHostConnectException: Connection to
  &gt; https://m1.testapp.com refused    at
  &gt; org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:183)
  &gt;   at
  &gt; org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
  &gt;   at
  &gt; org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
  &gt;   at
  &gt; org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
  &gt;   at
  &gt; org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
  &gt;   at
  &gt; org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
  &gt;   at
  &gt; org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
  &gt;   at
  &gt; com.testApp.android.ws.PooledRequestProcessor$Runner.run(PooledRequestProcessor.java:298)
  &gt;   at
  &gt; java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
  &gt;   at
  &gt; java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
  &gt;   at java.lang.Thread.run(Thread.java:856)  Caused by:
  &gt; java.net.ConnectException: failed to connect to /109.233.153.38 (port
  &gt; 443) after 20000ms: isConnected failed: EHOSTUNREACH (No route to
  &gt; host)     at
  &gt; org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:181)
  &gt;   ... 10 more  Caused by: java.net.SocketException: failed to connect
  &gt; to /109.233.153.38 (port 443) after 20000ms: isConnected failed:
  &gt; EHOSTUNREACH (No route to host)   at
  &gt; libcore.io.IoBridge.isConnected(IoBridge.java:220)    at
  &gt; libcore.io.IoBridge.connectErrno(IoBridge.java:152)   at
  &gt; libcore.io.IoBridge.connect(IoBridge.java:112)    at
  &gt; java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)    at
  &gt; java.net.PlainSocketImpl.connect(PlainSocketImpl.java:459)    at
  &gt; java.net.Socket.connect(Socket.java:842)      at
  &gt; org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119)
  &gt;   at
  &gt; org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:144)
  &gt;   ... 10 more  Caused by: libcore.io.ErrnoException: isConnected
  &gt; failed: EHOSTUNREACH (No route to host)   at
  &gt; libcore.io.IoBridge.isConnected(IoBridge.java:201)
  </code></pre>
  
  <p>The strangest thing is that even uninstalling the app and reinstalling it wont fix it, just turning the phone off and on.</p>
  
  <p>I saw a similar problem here <a href="http://groups.google.com/group/newsrob/browse_thread/thread/ea2f26d9d1753b79/5800e268eeab399c#5800e268eeab399c" rel="noreferrer">http://groups.google.com/group/newsrob/browse_thread/thread/ea2f26d9d1753b79/5800e268eeab399c#5800e268eeab399c</a> . The problem is not happening on phones with 4.0.3, just on the ones with 4.0.1, and the update doesnt seem to be available in Europe yet.</p>