]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Input.c
MdeModulePkg: Add wnd scale check before shrinking window.
authorFu Siyuan <siyuan.fu@intel.com>
Wed, 3 May 2017 07:21:23 +0000 (15:21 +0800)
committerFu Siyuan <siyuan.fu@intel.com>
Tue, 9 May 2017 00:45:33 +0000 (08:45 +0800)
commit207b3d2b0b7db33bd65e1943a66d7ee9b7132697
treef6404c645759b4774bbda9e37c41110684526dc3
parent2d5afbdad1bbe2663917c0b3ad06753bbf128c6c
MdeModulePkg: Add wnd scale check before shrinking window.

Moving Right window edge to the left on sender side without additional check
can lead to the TCP deadlock, when receiver ACKs proper segment, while sender
discards it for future ACK. To prevent this add check if usable window (or
shrink amount in this case) is bigger then receiver's window scale factor.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Andrey Tepin <atepin@kraftway.ru>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Input.c