chenzl-123
chenzl-123
端口复用问题
terminate called after throwing an instance of 'boost::wrapexcept' what(): bind: Address already in use 在linux底下杀掉进程再重新启动进程,会提示端口被复用,这个要怎么加入可复用的参数
terminate called after throwing an instance of 'std::future_error' what(): std::future_error: Broken promise 求大佬指点下。
void test_sub1() { rpc_client client; client.enable_auto_reconnect(); client.enable_auto_heartbeat(); bool r = client.connect("127.0.0.1", 9000); if (!r) { return; } client.subscribe( "key", "048a796c8a3c6a6b7bd1223bf2c8cee05232e927b521984ba417cb2fca6df9d1", [](string_view data) { msgpack_codec codec; person p = codec.unpack(data.data(), data.size());...