Open NewStartEx opened 2 years ago
TARS服务会在与客户端停止数据交互后超时自动断开。不过在某些情况下(例如发现被恶意攻击)最好主动断开与客户端的连接。这个在编写的服务里怎样实现呢?
拿到current, 用current->close() 去关闭连接
TARS服务会在与客户端停止数据交互后超时自动断开。不过在某些情况下(例如发现被恶意攻击)最好主动断开与客户端的连接。这个在编写的服务里怎样实现呢?