修改了 添加好友的代码
发现了获取验证码的bug delete sri后 无报错不发数据包 还有填写验证码 错误 session删除了 还有注册 直接账户以存在 if 那里错了? 以发现问题, 明天再改
This commit is contained in:
@@ -161,12 +161,11 @@ void session::timing() {
|
||||
while (!session_time_wheel.empty()) {
|
||||
auto wheel = session_time_wheel.begin();
|
||||
|
||||
// printf("session ");
|
||||
// for (const auto &item: wheel->second) {
|
||||
// remove_session(item->bev, item->key);
|
||||
// printf("bev:%p, key:%s, value:%s", item->bev, item->key.c_str(), get_session(item->bev, item->key).value().c_str());
|
||||
// }
|
||||
// printf("\n");
|
||||
printf("session ");
|
||||
for (const auto &item: wheel->second) {
|
||||
printf("bev:%p, key:%s, value:%s", item->bev, item->key.c_str(), get_session(item->bev, item->key).value().c_str());
|
||||
}
|
||||
printf("\n");
|
||||
|
||||
if (wheel->first > time(nullptr) + 300000) { // 5分钟
|
||||
// 超时5分钟就删除
|
||||
@@ -175,7 +174,7 @@ void session::timing() {
|
||||
}
|
||||
}
|
||||
|
||||
printf("timing %ld\n", wheel->first);
|
||||
// printf("timing %ld\n", wheel->first);
|
||||
std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user