summaryrefslogtreecommitdiffstats
path: root/src/net/tcp.c
diff options
context:
space:
mode:
authorMichael Brown2010-06-15 19:16:02 +0200
committerMichael Brown2010-06-22 15:32:49 +0200
commit5fa6775b617d4e2b7911c062996fd5ffe799e4cb (patch)
treea94cc1ac6413f148db36fa9b25dab6ec874cae81 /src/net/tcp.c
parent[retry] Add timer_init() wrapper function (diff)
downloadipxe-5fa6775b617d4e2b7911c062996fd5ffe799e4cb.tar.gz
ipxe-5fa6775b617d4e2b7911c062996fd5ffe799e4cb.tar.xz
ipxe-5fa6775b617d4e2b7911c062996fd5ffe799e4cb.zip
[retry] Use start_timer_fixed() instead of direct timeout manipulation
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/tcp.c')
-rw-r--r--src/net/tcp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/tcp.c b/src/net/tcp.c
index 118c6d0f..b5b9ff60 100644
--- a/src/net/tcp.c
+++ b/src/net/tcp.c
@@ -1016,8 +1016,7 @@ static int tcp_rx ( struct io_buffer *iobuf,
* timer to expire and cause the connection to be freed.
*/
if ( TCP_CLOSED_GRACEFULLY ( tcp->tcp_state ) ) {
- tcp->timer.timeout = ( 2 * TCP_MSL );
- start_timer ( &tcp->timer );
+ start_timer_fixed ( &tcp->timer, ( 2 * TCP_MSL ) );
}
return 0;