tcp: move app_limited init to tcp_disconnect()
If we make sure all listeners have app_limited set to ~0U, then a clone will also inherit proper initial value. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
5c701549c9
commit
6cda8b7493
@@ -486,9 +486,6 @@ struct sock *tcp_create_openreq_child(const struct sock *sk,
|
||||
newsk->sk_txhash = treq->txhash;
|
||||
newtp->total_retrans = req->num_retrans;
|
||||
|
||||
/* There's a bubble in the pipe until at least the first ACK. */
|
||||
newtp->app_limited = ~0U;
|
||||
|
||||
tcp_init_xmit_timers(newsk);
|
||||
newtp->write_seq = newtp->pushed_seq = treq->snt_isn + 1;
|
||||
|
||||
|
Reference in New Issue
Block a user