Open htner opened 5 years ago
在ConnWorker.cpp文件, clsConnWorker::HandleNego函数, 会检查是否为当前paxos内部的IP, 并会在361行会重置ServerId的信息。 如果像 README 例子中一样直接使用本地来启动三个card_srv会引发各种问题。 测试时,可以将ConnWorker.cpp 361行 注释掉。 // poNegoCtx->SetServerID(i);
// poNegoCtx->SetServerID(i);
线上系统注释掉的问题也不大。作为paxos应该信任内部结点的信息, 不存在拜占庭将军问题,如果不信任应该用其他加密方式来初始化链接,而不是暴力重置server_id。
在ConnWorker.cpp文件, clsConnWorker::HandleNego函数, 会检查是否为当前paxos内部的IP, 并会在361行会重置ServerId的信息。 如果像 README 例子中一样直接使用本地来启动三个card_srv会引发各种问题。 测试时,可以将ConnWorker.cpp 361行 注释掉。
// poNegoCtx->SetServerID(i);
线上系统注释掉的问题也不大。作为paxos应该信任内部结点的信息, 不存在拜占庭将军问题,如果不信任应该用其他加密方式来初始化链接,而不是暴力重置server_id。