Good Client Socket Pool
12,812
Solution 1
You could have a look at building a socket pool on top of Commons Pool.
Solution 2
Koders.com has an implementation here. I can't vouch for it's functionality, however, so you should run a few tests on it.
Author by
David Rabinowitz
Software developer, working on BigQuery open-source connectors, part of the Google Dataproc Team
Updated on June 06, 2022Comments
-
David Rabinowitz about 2 years
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. Are there any suggestions?
-
David Rabinowitz about 15 yearsThough about it, but I had bad experience with it in the past. Also, its code is was not optimised to Java 5/6 - no Generics, no concurrent collections, etc.
-
Mark about 15 yearsGood point. I guess that is one of the problems with some of the commons projects - collections being another example.