summaryrefslogtreecommitdiffstats
path: root/src/net/tcp.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/tcp.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/tcp.c')
-rw-r--r--src/net/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/tcp.c b/src/net/tcp.c
index 01daf75a..28cf95fb 100644
--- a/src/net/tcp.c
+++ b/src/net/tcp.c
@@ -232,7 +232,7 @@ static int tcp_open ( struct xfer_interface *xfer, struct sockaddr *peer,
goto err;
/* Start timer to initiate SYN */
- start_timer ( &tcp->timer );
+ start_timer_nodelay ( &tcp->timer );
/* Attach parent interface, transfer reference to connection
* list and return