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

TARSCPP服务怎样主动断开客户端 #873

Open
NewStartEx opened this issue Jan 10, 2022 · 1 comment
Open

TARSCPP服务怎样主动断开客户端 #873

NewStartEx opened this issue Jan 10, 2022 · 1 comment

Comments

@NewStartEx
Copy link

TARS服务会在与客户端停止数据交互后超时自动断开。不过在某些情况下(例如发现被恶意攻击)最好主动断开与客户端的连接。这个在编写的服务里怎样实现呢?

@ruanshudong
Copy link
Contributor

拿到current, 用current->close() 去关闭连接

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