httpclient 在http1.1下出现 Connection can be kept alive indefinitely , 出现长连接,返回异常
简单的解决方案:
设置header 头,连接完后,就关闭连接
headerMap.put("Connection", "close");
参考:https://blog.youkuaiyun.com/xiaoduanayu/article/details/78386508
httpclient 在http1.1下出现 Connection can be kept alive indefinitely , 出现长连接,返回异常
简单的解决方案:
设置header 头,连接完后,就关闭连接
headerMap.put("Connection", "close");
参考:https://blog.youkuaiyun.com/xiaoduanayu/article/details/78386508