mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-26 11:29:53 +03:00
Merge pull request #282 from NoahO/NoahO-PPP-patch
Stop Radius Delay from counting to next_resend
This commit is contained in:
commit
8ae035420b
@ -1749,8 +1749,12 @@ PPP_PACKET *PPPRecvResponsePacket(PPP_SESSION *p, PPP_PACKET *req, USHORT expect
|
|||||||
|
|
||||||
if (pp->IsControl && PPP_CODE_IS_REQUEST(pp->Protocol, pp->Lcp->Code))
|
if (pp->IsControl && PPP_CODE_IS_REQUEST(pp->Protocol, pp->Lcp->Code))
|
||||||
{
|
{
|
||||||
|
// Record current resend because next steps may take a while
|
||||||
|
UINT64 currentresend = next_resend - now;
|
||||||
// Process when the received packet is a request packet
|
// Process when the received packet is a request packet
|
||||||
response = PPPProcessRequestPacket(p, pp);
|
response = PPPProcessRequestPacket(p, pp);
|
||||||
|
// Increase next resend because this may have taken a while
|
||||||
|
next_resend = Tick64() + currentresend;
|
||||||
FreePPPPacket(pp);
|
FreePPPPacket(pp);
|
||||||
|
|
||||||
if (response == NULL)
|
if (response == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user