File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2299,6 +2299,9 @@ int tcp_disconnect(struct sock *sk, int flags)
22992299 tp -> snd_cwnd_cnt = 0 ;
23002300 tp -> window_clamp = 0 ;
23012301 tp -> delivered = 0 ;
2302+ if (icsk -> icsk_ca_ops -> release )
2303+ icsk -> icsk_ca_ops -> release (sk );
2304+ memset (icsk -> icsk_ca_priv , 0 , sizeof (icsk -> icsk_ca_priv ));
23022305 tcp_set_ca_state (sk , TCP_CA_Open );
23032306 tp -> is_sack_reneg = 0 ;
23042307 tcp_clear_retrans (tp );
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ static void tcp_reinit_congestion_control(struct sock *sk,
198198 icsk -> icsk_ca_setsockopt = 1 ;
199199 memset (icsk -> icsk_ca_priv , 0 , sizeof (icsk -> icsk_ca_priv ));
200200
201- if (sk -> sk_state != TCP_CLOSE )
201+ if (!(( 1 << sk -> sk_state ) & ( TCPF_CLOSE | TCPF_LISTEN )) )
202202 tcp_init_congestion_control (sk );
203203}
204204
You can’t perform that action at this time.
0 commit comments