mirror of
https://github.com/ipxe/ipxe
synced 2026-04-16 03:00:10 +03:00
[retry] Use start_timer_fixed() instead of direct timeout manipulation
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
+1
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user