Tamicer / Novate

A safety client by Https for android, (Android网络框架,基于Retrofit和RxJava打造的链式网络库, 支持okhttp的调用风格,又兼容Retrofit API,并支持rxJava链式操作)
Apache License 2.0
1.43k stars 268 forks source link

timeout #78

Open junges521 opened 6 years ago

junges521 commented 6 years ago

java.net.SocketTimeoutException: SSL handshake timed out 05-25 10:30:33.639 7575-7575/com.juxinli.normandy.demo E/Novate: SSL handshake timed out 05-25 10:30:33.642 7575-7575/com.juxinli.normandy.demo V/Novate: 连接超时 05-25 10:30:33.642 7575-7575/com.juxinli.normandy.demo E/Novate: --> e instanceof Throwable 05-25 10:30:33.643 7575-7575/com.juxinli.normandy.demo E/Novate: --> java.net.SocketTimeoutException: SSL handshake timed out 05-25 10:30:33.873 7575-7575/com.juxinli.normandy.demo E/Novate: SSL handshake timed out 05-25 10:30:33.875 7575-7575/com.juxinli.normandy.demo V/Novate: 连接超时 05-25 10:30:33.876 7575-7575/com.juxinli.normandy.demo E/Novate: --> e instanceof Throwable --> java.net.SocketTimeoutException: SSL handshake timed out

Tamicer commented 6 years ago

@junges521 1.5.5.5

junges521 commented 6 years ago

05-29 10:00:41.421 18804-18804/com.juxinli.normandy.demo E/Novate: timeout 05-29 10:00:41.422 18804-18804/com.juxinli.normandy.demo E/Novate: --> e instanceof Throwable --> java.net.SocketTimeoutException: timeout 05-29 10:00:41.694 18804-18804/com.juxinli.normandy.demo E/Novate: timeout --> e instanceof Throwable --> java.net.SocketTimeoutException: timeout 05-29 10:00:42.041 18804-18804/com.juxinli.normandy.demo E/Novate: timeout 05-29 10:00:42.042 18804-18804/com.juxinli.normandy.demo E/Novate: --> e instanceof Throwable --> java.net.SocketTimeoutException: timeout

Tamicer commented 6 years ago

@junges521 用1.5.5版本 设置超时时间

junges521 commented 6 years ago

@Tamicer 我之前是用的1.5.3版本没有设readTimeout方法,后面改成1.5.5之后,有时也会出现这种,不是必现

Tamicer commented 6 years ago

@junges521 三个时间都设置下

longkehuawei commented 4 years ago

连接超时可以重试么