Drop server v1

This commit is contained in:
luisangelsm
2026-02-20 19:01:49 +01:00
parent e3aeb867f4
commit d898a56f3f
31 changed files with 6 additions and 1386 deletions

View File

@ -2,17 +2,9 @@
#include "yacreader_http_session.h"
#include "httpsessionstore.h"
using stefanfrings::HttpSessionStore;
YACReaderHttpSessionStore::YACReaderHttpSessionStore(HttpSessionStore *sessionStore, QObject *parent)
: QObject(parent), sessionStore(sessionStore)
YACReaderHttpSessionStore::YACReaderHttpSessionStore(QObject *parent)
: QObject(parent)
{
// sessions are no longer http sessions in v2, we need another mechanism for cleaning
// connect(&cleanupTimer,SIGNAL(timeout()),this,SLOT(sessionTimerEvent()));
// cleanupTimer.start(60000);
}
void YACReaderHttpSessionStore::addYACReaderHttpSession(const QByteArray &httpSessionId, YACReaderHttpSession *yacreaderHttpSession)
@ -29,19 +21,3 @@ YACReaderHttpSession *YACReaderHttpSessionStore::getYACReaderSessionHttpSession(
return sessions.value(httpSessionId, nullptr);
}
void YACReaderHttpSessionStore::sessionTimerEvent()
{
// sessions are no longer http sessions in v2, we are using a token, so sessionStore->getSession(id).isNull() is always true.
/*QMutexLocker locker(&mutex);
for(const QByteArray &id : sessions.keys())
{
if(sessionStore->getSession(id).isNull())
{
YACReaderHttpSession *session = sessions.value(id, nullptr);
if(session != nullptr)
delete session;
sessions.remove(id);
}
}*/
}