mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-29 11:56:37 -05:00
GxsTrans delete own timed out mails
Mails sent in the past end never received were lingering in the outgoing queue forever as displayed by statistics. If a mail is older then GXS_STORAGE_PERIOD all nodes delete it from the GXS group so it can never arrive to destination, there is no point in keeping it in the outgoing queue, instead notify sending timed out and delete the mail.
This commit is contained in:
parent
ee9c240fb0
commit
7a237c11d3
3 changed files with 46 additions and 23 deletions
|
|
@ -1,3 +1,21 @@
|
|||
/*******************************************************************************
|
||||
* RetroShare GxsTrans asyncronous redundant small mail trasport on top of GXS *
|
||||
* *
|
||||
* Copyright (C) 2016-2019 Gioacchino Mazzurco <gio@eigenlab.org> *
|
||||
* *
|
||||
* This program is free software: you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU Lesser General Public License version 3 as *
|
||||
* published by the Free Software Foundation. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU Lesser General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU Lesser General Public License *
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
|
||||
* *
|
||||
*******************************************************************************/
|
||||
#pragma once
|
||||
|
||||
#include "retroshare/rstokenservice.h"
|
||||
|
|
@ -41,7 +59,8 @@ enum class GxsTransSendStatus : uint8_t
|
|||
/// Records with status >= RECEIPT_RECEIVED get deleted
|
||||
RECEIPT_RECEIVED = 0x0a,
|
||||
FAILED_RECEIPT_SIGNATURE = 0xf0,
|
||||
FAILED_ENCRYPTION = 0xf1
|
||||
FAILED_ENCRYPTION = 0xf1,
|
||||
FAILED_TIMED_OUT = 0xf2
|
||||
};
|
||||
|
||||
typedef uint64_t RsGxsTransId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue