mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
expiring status for tunnels
This commit is contained in:
parent
7aacae30eb
commit
72d52d61bc
3 changed files with 13 additions and 4 deletions
4
Tunnel.h
4
Tunnel.h
|
@ -22,6 +22,7 @@ namespace i2p
|
|||
namespace tunnel
|
||||
{
|
||||
const int TUNNEL_EXPIRATION_TIMEOUT = 660; // 11 minutes
|
||||
const int TUNNEL_EXPIRATION_THRESHOLD = 60; // 1 minute
|
||||
const int TUNNEL_CREATION_TIMEOUT = 20; // 20 seconds
|
||||
const int STANDARD_NUM_RECORDS = 5; // in VariableTunnelBuild message
|
||||
|
||||
|
@ -30,7 +31,8 @@ namespace tunnel
|
|||
eTunnelStatePending,
|
||||
eTunnelStateEstablished,
|
||||
eTunnelStateTestFailed,
|
||||
eTunnelStateFailed
|
||||
eTunnelStateFailed,
|
||||
eTunnelStateExpiring
|
||||
};
|
||||
|
||||
class OutboundTunnel;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue