I have got this issue in my app. It is rare and difficult to spot. This is a stack:
2012-11-30 08:42:22.745myapp.package.MyCommand is failed.java.net.SocketE
For me this error happened when:
My situation: Android connecting to microprocessor via plain socket on port 8080. The problem was the uC would close the connection before actually sending the "OK" reply. Sending is apparently a deferred operation in this uC (ESP8266). The solution was to comment out the line closing the connection (This line of code was there from a previous version in which no reply was intended). Rgds.
When receiving a "Connection Timeout" error, I would look for:
DNS caching
in InetAddress and Issue 7904: Android does not support TTL and caches DNS result for 10 minutes Regards.