如果我使用org.elasticsearch.client.restclient,sockettimeoutexception会关闭连接并创建一个新的连接吗?

fcipmucu  于 2021-06-13  发布在  ElasticSearch
关注(0)|答案(0)|浏览(523)

我正在使用org.elasticsearch.client.restclient,它在内部使用org.apache.http.impl.nio.conn.poolignhttpclientconnectionmanager。如果在执行时发生sockettimeoutexception RestClient.performRequest(Request request) (sourcecode),因为有一个连接池,我们接收到sockettimeoutexception的现有连接是否将被重用,或者如果连接池中有空间,是否将关闭该连接并创建一个新连接?

暂无答案!

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

相关问题