Remove inactive ad-hoc sessions after a given time

ref #2521
This commit is contained in:
Florent Le Coz
2014-06-11 00:49:39 +02:00
parent 1604320a23
commit 3ea029dd98
2 changed files with 24 additions and 4 deletions
+6
View File
@@ -37,6 +37,12 @@ public:
* it as our return value.
*/
XmlNode&& handle_request(const std::string& executor_jid, XmlNode command_node);
/**
* Remove the session from the list. This is done to avoid filling the
* memory with waiting session (for example due to a client that starts
* multi-steps command but never finishes them).
*/
void remove_session(const std::string& session_id, const std::string& initiator_jid);
private:
/**
* A pointer to the XmppComponent, to access to basically anything in the