更新时间:2022-10-16 11:14:28
我通过设置解决了一个类似的问题
I solved a similar problem by setting
System.setProperty("http.keepAlive", "false");
在我进行 HTTP 调用之前.Android 在其连接池中保持关闭的连接并尝试重用它们似乎存在问题.
before I did my HTTP calls. There seems to be a problem with Android keep closed connections in its connection pool and trying to reuse them.