HttpClientError: The target server failed to respond

前端 未结 2 1029
南方客
南方客 2020-12-29 10:12

I am trying to hit a server using http client using PoolingClientConnectionManager setting max connections for individual hosts

 //Code that ini         


        
2条回答
  •  庸人自扰
    2020-12-29 10:29

    Probably, it is a bug in the HttpClient.

    If you are using the HttpClient 4.4, please try to upgrade to 4.4.1.

    If you want for more information, please look at this link.

    If you can't upgrade, the following links might be helpful.

    http://www.nuxeo.com/blog/using-httpclient-properly-avoid-closewait-tcp-connections/

    Good luck!

提交回复
热议问题