]> git.proxmox.com Git - mirror_edk2.git/commit
Fix port retry behavior during connect - All port error paths exit through ConnectCom...
authorlpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 8 Jun 2012 20:53:12 +0000 (20:53 +0000)
committerlpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 8 Jun 2012 20:53:12 +0000 (20:53 +0000)
commit44538ba5aa759c4039fc6c588d33a7fe03503c3f
treeafc8a5062d92383337914295fb7c8777f9bca3c6
parentf6aa14a902deba0a5aa0d260cec5edd2c9a9e9a3
Fix port retry behavior during connect - All port error paths exit through ConnectComplete to try the next port.  When the last port fails to connect, the port error status to errno translation gets done by ConnectPoll.

Testing:
Using two network adapters, second one always connected to the network.

1. Eth0 not configured, not connected - short delay
2. Eth0 not configured, connected - short delay
3. Eth0 configured, not connected - short delay
4. Eth0 configured, connected to private network - long delay due to connection timeout, failover to Eth1
5. Eth1 configured, connected, no server - long delay due to connection timeout, returned timeout error.

Signed-off-by: lpleahy
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13436 6f19259b-4bc3-4df7-8a09-765794883524
StdLib/EfiSocketLib/Tcp4.c
StdLib/EfiSocketLib/Tcp6.c