Codecing

Results 2 comments of Codecing

> terminate called after throwing an instance of 'boost::wrapexceptboost::system::system_error' what(): bind: Address already in use 在linux底下杀掉进程再重新启动进程,会提示端口被复用,这个要怎么加入可复用的参数 class rpc_server : private asio::noncopyable { public: rpc_server(unsigned short port, size_t size, size_t timeout_seconds...

> 是死循环不停的调用还是每隔几秒调用,能不能搞个简单完整的例子复现,否则我没法帮你。 可以添加附件文件的,把能复现的服务端和客户端的代码上传一下。 我猜测在循环中重复 rpc_client 的构造和析构,会导致对应的端口出现大量的 TIME_WAIT。导致无资源可用,所以崩溃闪退