mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-17 10:31:05 -04:00
Fixed resource exhaustion due to message/group notification not being handled
Added message/group size limit Added message validation (identity and publish key) Added code for message/grp fragmentation/defragmentation (not integrated yet) Added crude id picker to photoshare git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6106 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
635f915f46
commit
7867063734
21 changed files with 735 additions and 264 deletions
|
@ -105,6 +105,8 @@ class RsGeneralDataService
|
|||
|
||||
public:
|
||||
|
||||
static const uint32_t GXS_MAX_ITEM_SIZE;
|
||||
|
||||
static const std::string MSG_META_SERV_STRING;
|
||||
static const std::string MSG_META_STATUS;
|
||||
|
||||
|
@ -210,6 +212,22 @@ public:
|
|||
*/
|
||||
virtual int resetDataStore() = 0;
|
||||
|
||||
/*!
|
||||
* Use to determine if message isn't over the storage
|
||||
* limit for a single message item
|
||||
* @param msg the message to check size validity
|
||||
* @return whether the size of of msg is valid
|
||||
*/
|
||||
virtual bool validSize(RsNxsMsg* msg) const = 0 ;
|
||||
|
||||
/*!
|
||||
* Use to determine if group isn't over the storage limit
|
||||
* for a single group item
|
||||
* @param grp the group to check size validity
|
||||
* @return whether the size of grp is valid for storage
|
||||
*/
|
||||
virtual bool validSize(RsNxsGrp* grp) const = 0 ;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue