[英]Android intermittent SSL Socket read timed out
I am building an android app that makes calls to an HTTP/REST api. 我正在构建一个可以调用HTTP / REST API的Android应用。 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. 如果有人对类似问题有任何想法或经验,请告诉我。
这实际上是我的服务器代码中与会话相关的错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.