diff --git a/MS/mmm/session.cpp b/MS/mmm/session.cpp index 08d35a0..4fe3ef2 100644 --- a/MS/mmm/session.cpp +++ b/MS/mmm/session.cpp @@ -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; }