From 643ee53ee669a6859525bca5ad064d8d0be2f01a Mon Sep 17 00:00:00 2001 From: dongl <2725096176@qq.com> Date: Fri, 16 Jun 2023 20:40:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=A5=BD=E5=8F=8B=E7=9A=84=E4=BB=A3=E7=A0=81=20?= =?UTF-8?q?=E5=8F=91=E7=8E=B0=E4=BA=86=E8=8E=B7=E5=8F=96=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E7=A0=81=E7=9A=84bug=20delete=20sri=E5=90=8E=20=E6=97=A0?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E4=B8=8D=E5=8F=91=E6=95=B0=E6=8D=AE=E5=8C=85?= =?UTF-8?q?=20=E8=BF=98=E6=9C=89=E5=A1=AB=E5=86=99=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E7=A0=81=20=E9=94=99=E8=AF=AF=20session=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E4=BA=86=20=E8=BF=98=E6=9C=89=E6=B3=A8=E5=86=8C=20=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E8=B4=A6=E6=88=B7=E4=BB=A5=E5=AD=98=E5=9C=A8=20if=20?= =?UTF-8?q?=E9=82=A3=E9=87=8C=E9=94=99=E4=BA=86=EF=BC=9F=20=E4=BB=A5?= =?UTF-8?q?=E5=8F=91=E7=8E=B0=E9=97=AE=E9=A2=98=EF=BC=8C=20=E6=98=8E?= =?UTF-8?q?=E5=A4=A9=E5=86=8D=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MS/mmm/session.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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; }