apache http客户端org.apache.http.nohttpresponseexception,即使在较低的validateafterinactivity之后

dfty9e19  于 2021-08-20  发布在  Java
关注(0)|答案(0)|浏览(270)

我有http客户端,它偶尔会收到以下错误。在发生此异常时,接收到的实际请求未命中目标服务器。 org.springframework.ws.client.WebServiceIOException: I/O error: x:yy failed to respond; nested exception is org.apache.http.NoHttpResponseException: x:yy failed to respond apache http客户端版本:4.5.13
我已将validateafterinactivity减少到100ms,但运气不佳。我仍然以同样的速度收到错误。
我的httpclient池配置如下所示。

public PoolingHttpClientConnectionManager poolingHttpClientConnectionManager() {
        PoolingHttpClientConnectionManager result = new PoolingHttpClientConnectionManager();
        result.setMaxTotal(500);
        result.setDefaultMaxPerRoute(75);
        result.setValidateAfterInactivity(100);
        return result;
    }

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题