mirror of
https://github.com/YACReader/yacreader
synced 2026-03-02 10:50:04 -05:00
Drop server v1
This commit is contained in:
@ -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);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user