I am facing a strange issue with Android's airplane mode and a Socket exception 30 seconds after opening a new Socket connection.
Here's what I do on my app that creates an issue:
- Have an opened Socketconnection and turn on and off airplane mode.
- Reopen a new Socketconnection with the server.
- Wait 30 seconds and get a java.net.SocketException: Software caused connection aborton aDataInputStreamreadByte()call.
I have checked my server logs and the server is not disconnecting the client.
Does anyone know what could cause this? I've browsed other posts with the same exception, but they all had a more detailed error message. I can also send and receive messages with that Socket connection fine for 30 seconds, but then it randomly throws an exception.
 
    