Do I need to close expired connections in Apache HTTPAsyncClient?

跟風遠走 提交于 2019-12-10 13:56:24

问题


Do I need to close expired connections in Apache HttpAsyncClient as is done with HttpClient?


回答1:


I just double-checked the source code. Yes, one still has to explicitly evict expired connections from the pool. However, the underlying NIO channel and socket will get closed and released immediately. The problem with expired connections not being automatically evicted from the pool is a bug in HttpAsyncClient 4.0 beta3. Feel free to raise a JIRA for this defect.



来源:https://stackoverflow.com/questions/13032070/do-i-need-to-close-expired-connections-in-apache-httpasyncclient

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!