summaryrefslogtreecommitdiff
path: root/src/webserver_main.cpp
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@linux.vnet.ibm.com>2019-12-14 11:36:09 +0300
committerRatan Gupta <ratagupt@linux.vnet.ibm.com>2020-05-14 08:45:11 +0300
commit07386c670c57fc18742aaae266228b9cea7be1d7 (patch)
tree40f014739a6daf86f32cd2456c8fe9ba8c2a86a4 /src/webserver_main.cpp
parent19bd78d9b79085526fd520d8f5c020905db1122a (diff)
downloadbmcweb-07386c670c57fc18742aaae266228b9cea7be1d7.tar.xz
Remove the locks associated with the session
This commit does the following => makes the lock class singleton. => during session timeout erase the locks associated with the session. => Erase the locks when the session is explicitly deleted on a user request. We need to find a different way of calculating session timeout currently session timeout gets calculated when the request comes to BMC. TODO: We need some module which keeps looking at the sessions in certain time interval and earse the session if it is timeout, It is useful in the case where there is resources which gets free after session timeout. It may happen that client gets the session, obtain cerain resources on that session and never sends any request, in that case session timeout will never occur for that session. Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com> Change-Id: Ic9962f761fc84a03747a90bd951ea36eb8962455
Diffstat (limited to 'src/webserver_main.cpp')
-rw-r--r--src/webserver_main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp
index 27639917d9..ea32122b3b 100644
--- a/src/webserver_main.cpp
+++ b/src/webserver_main.cpp
@@ -99,6 +99,7 @@ int main(int argc, char** argv)
#ifdef BMCWEB_ENABLE_IBM_MANAGEMENT_CONSOLE
crow::ibm_mc::requestRoutes(app);
+ crow::ibm_mc_lock::Lock::getInstance();
#endif
crow::token_authorization::requestRoutes(app);