RxHttpUtils
RxHttpUtils copied to clipboard
unexpected end of stream on Connection
项目中请求接口频繁出现unexpected end of stream on Connection异常 在网上搜索过解决方法: 1.retryOnConnectionFailure()设置成true header中配置 2.hashMap.put("Connection", "close"); 3.hashMap.put("Accept-Encoding", "identity"); 这些办法都没有解决,经常出现这个错误,过一会自己又好了,不知道这个问题是出现在前端还是后端,看到有说是OKhttp的问题有说和tcp连接有关。 如果您有时间看到希望能帮忙回复下解决方法和问题的原因,谢谢
具体的错误信息截图