NetworkPkg: Httpboot will fail the 2nd time result by wrong TCP state.
authorZhang Lubo <lubo.zhang@intel.com>
Fri, 13 Nov 2015 09:35:54 +0000 (09:35 +0000)
committerluobozhang <luobozhang@Edk2>
Fri, 13 Nov 2015 09:35:54 +0000 (09:35 +0000)
commita2e619821a791de5cd65cd2c757de0a8aa7f138c
tree652907503eeb74d2930feccb2f3f0d207a01bf5b
parentc374aa43a199a5aab53218ef3cf99284ba19ae98
NetworkPkg: Httpboot will fail the 2nd time result by wrong TCP state.

If the 2nd boot quickly after the first succeed boot, it will function well.
But if you wait for some time after 1nd succeed boot and boot again, the
TCP state may change from established to closed wait as the http server send
fin flag, then boot fail occurred.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Zhang Lubo <lubo.zhang@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18783 6f19259b-4bc3-4df7-8a09-765794883524
NetworkPkg/HttpDxe/HttpImpl.c
NetworkPkg/HttpDxe/HttpProto.c
NetworkPkg/HttpDxe/HttpProto.h