Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

调用服务的时候每次都建立一个socket连接问题 #15

Open
sammiewy opened this issue Aug 29, 2016 · 5 comments
Open

调用服务的时候每次都建立一个socket连接问题 #15

sammiewy opened this issue Aug 29, 2016 · 5 comments

Comments

@sammiewy
Copy link

调用服务的时候每次都建立一个socket连接,var client = new net.Socket(); 这样子是不是可能把dubbo提供的服务端口都占满?

@omnip620
Copy link
Owner

不会的 请求结束后 socket链接就关闭了

Sent from my iPhone

On Aug 29, 2016, at 20:16, sammie [email protected] wrote:

调用服务的时候每次都建立一个socket连接,var client = new net.Socket(); 这样子是不是可能把dubbo提供的服务端口都占满?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@nupthale
Copy link

高并发的情况下,每次都new socket; 是不是应该维护一个socket连接池,保证socket数量不会太多?

@omnip620
Copy link
Owner

@nupthale 好 非功能性优化 会放在计划里

@eurekao
Copy link

eurekao commented Oct 15, 2016

使用dubbo协议的,官方推荐每服务每提供者每消费者使用单一长连接,那么是不是只维护一个socket连接更合理?

@omnip620
Copy link
Owner

@eurekao 是的 后期会加上的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants