I need to manage long running TCP socket connections to an external server from my Java application. I'm looking for a good socket pool so I will be able to re-use the sockets.
There is another solution than org.apache.commons.pool2
?
Here are some object pool implementations you may try:
I suggest you to benchmark the object pool implementations in order to find the most appropriate one for your project.
来源:https://stackoverflow.com/questions/43735067/manage-client-socket-pool