iPXE - Open Source Boot Firmware

[tftp] Remove unnecessary delay when opening a connection
authorStefan Hajnoczi <stefanha@gmail.com>
Wed, 13 Jan 2010 17:57:41 +0000 (17:57 +0000)
committerMarty Connor <mdc@etherboot.org>
Fri, 15 Jan 2010 21:04:33 +0000 (16:04 -0500)
commit245dca9ce6d748815914bf23231c34fe33e7f18b
tree16cbf172745e1949ee2a7257f84ba42fa0318bb2
parentdd99ee95cb513384a13c2be486f684e4a1606ea9
[tftp] Remove unnecessary delay when opening a connection

The retry timer is used to retransmit TFTP packets lost on the network,
and to start a new connection.  There is an unnecessary delay while
waiting for name resolution because the timer period is fixed and cannot
be shortened when name resolution completes.  This patch keeps the timer
period at zero while name resolution takes place so that no time is lost
once before sending the first packet.

Reported-by: Thomas Horsten <thomas@horsten.com>
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Marty Connor <mdc@etherboot.org>
src/net/udp/tftp.c