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

c++的clientsocket里面的异步connect的漏洞 #25

Closed
tsingakbar opened this issue Apr 25, 2017 · 1 comment
Closed

c++的clientsocket里面的异步connect的漏洞 #25

tsingakbar opened this issue Apr 25, 2017 · 1 comment

Comments

@tsingakbar
Copy link

https://github.com/Tencent/Tars/blob/master/cpp/util/src/tc_clientsocket.cpp#L278

这里还是需要处理EPOLLERR和EPOLLHUP的,不是说epoll_wait返回了大于0个就是成功了。
我们项目里面通过tc_http调用到这里的,推测是因为这里没处理一场,导致到了后面的send就会有可能返回ECONNREFUSED。

公司代码库没看到哪里可以提bug,就这里提了,欢迎反馈rtx richieyu。

@helloopenworld
Copy link
Collaborator

多谢反馈,我们修复一下。

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

3 participants