We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我在使用客户端的过程中assert(f)被触发了,导致程序退出,应用场景如下 1, 客户端有一个不断向服务端发送数据的功能,可以理解为自定义心跳。 2, 当自定义心跳超时的时候,客户端主动关闭连接,然后调用connect再进行重连。 3, 问题就出现在当自定义心跳超时后,assert(f)有时候就会被触发,程序就退出了。
我理解的是因为close的调用,导致future_map_被清空了,auto &f = future_map_[req_id]的f为空。这里的assert(f)能否改成if(f) {f->set_value()}?
The text was updated successfully, but these errors were encountered:
这个问题应该fix 过了,你用master 代码测一下吧。
Sorry, something went wrong.
No branches or pull requests
我在使用客户端的过程中assert(f)被触发了,导致程序退出,应用场景如下
1, 客户端有一个不断向服务端发送数据的功能,可以理解为自定义心跳。
2, 当自定义心跳超时的时候,客户端主动关闭连接,然后调用connect再进行重连。
3, 问题就出现在当自定义心跳超时后,assert(f)有时候就会被触发,程序就退出了。
我理解的是因为close的调用,导致future_map_被清空了,auto &f = future_map_[req_id]的f为空。这里的assert(f)能否改成if(f) {f->set_value()}?
The text was updated successfully, but these errors were encountered: