问题
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