mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
Send peer test msg 6 with delay if msg 4 was received before msg 5
This commit is contained in:
parent
0ccf0a6339
commit
0213f058d1
3 changed files with 20 additions and 23 deletions
|
@ -2312,7 +2312,7 @@ namespace transport
|
|||
{
|
||||
if (!session->IsConnectedRecently ())
|
||||
SetRouterStatus (eRouterStatusOK);
|
||||
// send msg 6
|
||||
// send msg 6 immeditely
|
||||
session->SendPeerTest (6, buf + offset, len - offset, addr);
|
||||
}
|
||||
else
|
||||
|
@ -2323,6 +2323,8 @@ namespace transport
|
|||
session->m_Address = addr;
|
||||
if (GetTestingState ())
|
||||
{
|
||||
// schedule msg 6 with delay
|
||||
session->SendPeerTest (6, buf + offset, len - offset, addr, true);
|
||||
SetTestingState (false);
|
||||
if (GetRouterStatus () != eRouterStatusFirewalled && addr->IsPeerTesting ())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue