美文网首页
okhttp请求超时无效问题

okhttp请求超时无效问题

作者: longshuai | 来源:发表于2019-01-24 10:21 被阅读0次

OKHttp请求超时无效问题

Okhttp在网络请示出现错误时会重新发送请求,最终会不断执行

解决方式:retryOnConnectionFailure返回false
sClient = builder.retryOnConnectionFailure(false).build();

该问题 在3.4.2版本已处理

相关文章

网友评论

      本文标题:okhttp请求超时无效问题

      本文链接:https://www.haomeiwen.com/subject/zfcyjqtx.html