mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-25 15:35:49 -04:00
Bugfixes for ExclusiveProxy Mode.
* changed PeerConnectStateBox::getNetState() to calcNetState() to provide up-to-date info (internal mNetState can be stale!) * Added "bool addrChangeLikely" parameter to ReleaseProxyExclusiveLock() - this parameter is determined by whether we actually started a UDP connection. * disabled ForceRestun in UdpStunner if addrChange is unlikely. * Reduced Stunner Period Slow from 3 minutes to 2 minutes - exact value will only be known after real-world testing. * More debugging. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-netupgrade@4458 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
181ad06e33
commit
c33b415ef4
7 changed files with 73 additions and 26 deletions
|
@ -1565,7 +1565,9 @@ void p3NetMgrIMPL::updateNetStateBox_temporal()
|
|||
}
|
||||
|
||||
#define NET_STUNNER_PERIOD_FAST (-1) // default of Stunner.
|
||||
#define NET_STUNNER_PERIOD_SLOW (180) // 3 minutes.
|
||||
#define NET_STUNNER_PERIOD_SLOW (120) // This needs to be as small Routers will allow... try 2 minutes.
|
||||
// FOR TESTING ONLY.
|
||||
//#define NET_STUNNER_PERIOD_SLOW (60) // 3 minutes.
|
||||
|
||||
void p3NetMgrIMPL::updateNatSetting()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue