目前生产上某一个合作方接口总是报错,排查日志发现如下提示报错日志:
SimpleHttpConnectionManager being used incorrectly. Be sure that HttpMethod.releaseConnection() is always called and that only one thread and/or method is using this connection manager at a time.
原因分析:
通过资料发现SimpleHttpConnectionManager
非线程安全,需要使用MultiThreadedHttpConnectionManager
来解决。