mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-06 09:40:41 +03:00
Adjust TCP MSS if UDP acceleration is enabled (even if inactive)
This commit is contained in:
parent
209f60f079
commit
3ed7f7cbce
@ -3564,7 +3564,7 @@ bool HubPaPutPacket(SESSION *s, void *data, UINT size)
|
|||||||
|
|
||||||
target_mss = MIN(target_mss, session_mss);
|
target_mss = MIN(target_mss, session_mss);
|
||||||
|
|
||||||
if (s->IsUsingUdpAcceleration && s->UdpAccelMss != 0)
|
if (s->UseUdpAcceleration && s->UdpAccelMss != 0)
|
||||||
{
|
{
|
||||||
// If the link is established with UDP acceleration function, use optimum value of the UDP acceleration function
|
// If the link is established with UDP acceleration function, use optimum value of the UDP acceleration function
|
||||||
target_mss = MIN(target_mss, s->UdpAccelMss);
|
target_mss = MIN(target_mss, s->UdpAccelMss);
|
||||||
@ -5362,7 +5362,7 @@ void StorePacketToHubPa(HUB_PA *dest, SESSION *src, void *data, UINT size, PKT *
|
|||||||
if (src != NULL && dest->Session != NULL && src->Hub != NULL && src->Hub->Option != NULL)
|
if (src != NULL && dest->Session != NULL && src->Hub != NULL && src->Hub->Option != NULL)
|
||||||
{
|
{
|
||||||
if (dest->Session->AdjustMss != 0 ||
|
if (dest->Session->AdjustMss != 0 ||
|
||||||
(dest->Session->IsUsingUdpAcceleration && dest->Session->UdpAccelMss != 0) ||
|
(dest->Session->UseUdpAcceleration && dest->Session->UdpAccelMss != 0) ||
|
||||||
(dest->Session->IsRUDPSession && dest->Session->RUdpMss != 0))
|
(dest->Session->IsRUDPSession && dest->Session->RUdpMss != 0))
|
||||||
{
|
{
|
||||||
if (src->Hub->Option->DisableAdjustTcpMss == false)
|
if (src->Hub->Option->DisableAdjustTcpMss == false)
|
||||||
@ -5374,7 +5374,7 @@ void StorePacketToHubPa(HUB_PA *dest, SESSION *src, void *data, UINT size, PKT *
|
|||||||
target_mss = MIN(target_mss, dest->Session->AdjustMss);
|
target_mss = MIN(target_mss, dest->Session->AdjustMss);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dest->Session->IsUsingUdpAcceleration && dest->Session->UdpAccelMss != 0)
|
if (dest->Session->UseUdpAcceleration && dest->Session->UdpAccelMss != 0)
|
||||||
{
|
{
|
||||||
target_mss = MIN(target_mss, dest->Session->UdpAccelMss);
|
target_mss = MIN(target_mss, dest->Session->UdpAccelMss);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user