安 琦
2018-09-18 02:38:03 UTC
Hi,
I'm using httpclient-4.5.5.
I used a single HttpClient instance with PoolingHttpClientConnectionManager.
When the execute() method finished,I called one of the methods response.close()/request.releaseConnection()/request.abortConnection() in the finally block.
However,no matter which method I called, I found ConnectionHolder#releaseConnection(false) would be invoked,and then the connection would be closed and discarded by the pool.
So I'm confused about the connection reusing mechanism.How does it work?
Thank you.
B�KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB��[��X��ܚX�KK[XZ[��Y[�]\�\��][��X��ܚX�P˘\X�K�ܙ�B��܈Y][ۘ[��[X[
I'm using httpclient-4.5.5.
I used a single HttpClient instance with PoolingHttpClientConnectionManager.
When the execute() method finished,I called one of the methods response.close()/request.releaseConnection()/request.abortConnection() in the finally block.
However,no matter which method I called, I found ConnectionHolder#releaseConnection(false) would be invoked,and then the connection would be closed and discarded by the pool.
So I'm confused about the connection reusing mechanism.How does it work?
Thank you.
B�KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB��[��X��ܚX�KK[XZ[��Y[�]\�\��][��X��ܚX�P˘\X�K�ܙ�B��܈Y][ۘ[��[X[