summaryrefslogtreecommitdiffstats
path: root/src/net/udp/tftp.c
diff options
context:
space:
mode:
authorMichael Brown2007-08-13 20:03:33 +0200
committerMichael Brown2007-08-13 20:03:33 +0200
commit2ff1b1245bf95a718ab6f7404cf504b06a37b30b (patch)
tree75dd35bd894296495871488ec9a48a5283469329 /src/net/udp/tftp.c
parentAdd start_timer_nodelay() (diff)
downloadipxe-2ff1b1245bf95a718ab6f7404cf504b06a37b30b.tar.gz
ipxe-2ff1b1245bf95a718ab6f7404cf504b06a37b30b.tar.xz
ipxe-2ff1b1245bf95a718ab6f7404cf504b06a37b30b.zip
Use start_timer_nodelay() in protocols which rely on the retry timer
to generate the initial transmission; this cuts off around 0.3s per instantiated connection.
Diffstat (limited to 'src/net/udp/tftp.c')
-rw-r--r--src/net/udp/tftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/udp/tftp.c b/src/net/udp/tftp.c
index ea4d1df3..7f1c4ce6 100644
--- a/src/net/udp/tftp.c
+++ b/src/net/udp/tftp.c
@@ -657,7 +657,7 @@ int tftp_open ( struct xfer_interface *xfer, struct uri *uri ) {
goto err;
/* Start timer to initiate RRQ */
- start_timer ( &tftp->timer );
+ start_timer_nodelay ( &tftp->timer );
/* Attach to parent interface, mortalise self, and return */
xfer_plug_plug ( &tftp->xfer, xfer );