java 良好的客户端套接字池
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/938784/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 14:27:02 来源:igfitidea点击:
Good Client Socket Pool
提问by David Rabinowitz
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?
我需要管理从我的 Java 应用程序到外部服务器的长时间运行的 TCP 套接字连接。我正在寻找一个好的套接字池,这样我就可以重用这些套接字。有什么建议吗?
采纳答案by Mark
You could have a look at building a socket pool on top of Commons Pool.
您可以看看在Commons Pool之上构建一个套接字池。

