I am building an android app that makes calls to an HTTP/REST api. I have self signed a certificate for testing and added it to my phones trust store.
I have run into a very strange issue where I will receive the following exception:
java.net.SocketTimeoutException: Read timed out
at com.android.org.conscrypt.NativeCrypto.SSL_read(Native Method)
at com.android.org.conscrypt.OpenSSLSocketImpl$SSLInputStream.read(OpenSSLSocketImpl.java:705)
...
I am at a total loss as to how or why this is happening. Important notes:
Interesting things I have tried:
If anyone has some idea or experience with a similar issue, please let me know.
This was actually a session related bug with my server code.