8000 redis-cli 建立连接的过程是怎样的 · Issue #330 · sogou/workflow · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

redis-cli 建立连接的过程是怎样的 #330

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

Closed
dorothy00dd2 opened this issue Apr 12, 2021 · 1 comment
Closed

redis-cli 建立连接的过程是怎样的 #330

dorothy00dd2 opened this issue Apr 12, 2021 · 1 comment

Comments

@dorothy00dd2
Copy link
dorothy00dd2 commented Apr 12, 2021

看了下代码,Communitor.cc 里有connect系统调用,通过WFResolverTask调用到这里,每次series start时,会加入一个router,router负责建立连接吗?
request 是在什么时机被解析的呢?
能不能说下完成的请求流程。谢谢~

@Barenboim
Copy link
Contributor
Barenboim commented Apr 12, 2021

你好。router是负责dns解析或upstream查找的,和连接没有关系。所有连接管理都在Communicator里。
关于redis的建立连接的过程,可以看一下FAQ里的这个问题:
为什么使用redis client时无需先建立连接,以及后面关于连接复用规则的问题。

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

2 participants
0