You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by 樊超 <83...@qq.com> on 2020/08/28 09:10:59 UTC

Do you close the connection when exception has been throw?

English is not my native language, please excuse typing errors.
I guess your problem is that you forget close the connection when exception happened.
If so, you should put the close method in the finally block.
If connection doesn’t released, the connection pool will be fill up.