rack/bbr: put back assertion that connection is not in TIME-WAIT
The assertion was incorrectly removed in0d7445193a
. The leak of a TIME-WAIT state into tfb_do_segment_nounlock method was fixed in31bc602ff8
. The TIME-WAIT connections are processed by the main tcp_input() always.
This commit is contained in:
parent
830352ccca
commit
f504685a7a
@ -11359,6 +11359,8 @@ bbr_do_segment_nounlock(struct mbuf *m, struct tcphdr *th, struct socket *so,
|
||||
INP_WLOCK_ASSERT(tp->t_inpcb);
|
||||
KASSERT(tp->t_state > TCPS_LISTEN, ("%s: TCPS_LISTEN",
|
||||
__func__));
|
||||
KASSERT(tp->t_state != TCPS_TIME_WAIT, ("%s: TCPS_TIME_WAIT",
|
||||
__func__));
|
||||
|
||||
tp->t_rcvtime = ticks;
|
||||
/*
|
||||
|
@ -14154,6 +14154,8 @@ rack_do_segment_nounlock(struct mbuf *m, struct tcphdr *th, struct socket *so,
|
||||
INP_WLOCK_ASSERT(tp->t_inpcb);
|
||||
KASSERT(tp->t_state > TCPS_LISTEN, ("%s: TCPS_LISTEN",
|
||||
__func__));
|
||||
KASSERT(tp->t_state != TCPS_TIME_WAIT, ("%s: TCPS_TIME_WAIT",
|
||||
__func__));
|
||||
|
||||
if ((tp->t_state >= TCPS_FIN_WAIT_1) &&
|
||||
(tp->t_flags & TF_GPUTINPROG)) {
|
||||
|
Loading…
Reference in New Issue
Block a user