You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
项目中请求接口频繁出现unexpected end of stream on Connection异常
在网上搜索过解决方法:
1.retryOnConnectionFailure()设置成true
header中配置
2.hashMap.put("Connection", "close");
3.hashMap.put("Accept-Encoding", "identity");
这些办法都没有解决,经常出现这个错误,过一会自己又好了,不知道这个问题是出现在前端还是后端,看到有说是OKhttp的问题有说和tcp连接有关。
如果您有时间看到希望能帮忙回复下解决方法和问题的原因,谢谢
The text was updated successfully, but these errors were encountered:
项目中请求接口频繁出现unexpected end of stream on Connection异常
在网上搜索过解决方法:
1.retryOnConnectionFailure()设置成true
header中配置
2.hashMap.put("Connection", "close");
3.hashMap.put("Accept-Encoding", "identity");
这些办法都没有解决,经常出现这个错误,过一会自己又好了,不知道这个问题是出现在前端还是后端,看到有说是OKhttp的问题有说和tcp连接有关。
如果您有时间看到希望能帮忙回复下解决方法和问题的原因,谢谢
The text was updated successfully, but these errors were encountered: