aboutsummaryrefslogtreecommitdiff
path: root/src/tcp_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tcp_timer.c')
-rw-r--r--src/tcp_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tcp_timer.c b/src/tcp_timer.c
index aeb610f..1d4bcc1 100644
--- a/src/tcp_timer.c
+++ b/src/tcp_timer.c
@@ -126,7 +126,7 @@ static struct tcpcb *tcp_timers(register struct tcpcb *tp, int timer)
* control block. Otherwise, check again in a bit.
*/
case TCPT_2MSL:
- if (tp->t_state != TCPS_TIME_WAIT && tp->t_idle <= TCP_MAXIDLE)
+ if (tp->t_state != TCPS_TIME_WAIT && tp->t_idle <= TCP_LINGERTIME)
tp->t_timer[TCPT_2MSL] = TCPTV_KEEPINTVL;
else
tp = tcp_close(tp);