diff options
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index cab6b2f2f61d..769508c75dce 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -2546,6 +2546,7 @@ void tcp_write_queue_purge(struct sock *sk) | |||
2546 | sk_mem_reclaim(sk); | 2546 | sk_mem_reclaim(sk); |
2547 | tcp_clear_all_retrans_hints(tcp_sk(sk)); | 2547 | tcp_clear_all_retrans_hints(tcp_sk(sk)); |
2548 | tcp_sk(sk)->packets_out = 0; | 2548 | tcp_sk(sk)->packets_out = 0; |
2549 | inet_csk(sk)->icsk_backoff = 0; | ||
2549 | } | 2550 | } |
2550 | 2551 | ||
2551 | int tcp_disconnect(struct sock *sk, int flags) | 2552 | int tcp_disconnect(struct sock *sk, int flags) |
@@ -2596,6 +2597,7 @@ int tcp_disconnect(struct sock *sk, int flags) | |||
2596 | if (tp->write_seq == 0) | 2597 | if (tp->write_seq == 0) |
2597 | tp->write_seq = 1; | 2598 | tp->write_seq = 1; |
2598 | icsk->icsk_backoff = 0; | 2599 | icsk->icsk_backoff = 0; |
2600 | tp->snd_cwnd = 2; | ||
2599 | icsk->icsk_probes_out = 0; | 2601 | icsk->icsk_probes_out = 0; |
2600 | icsk->icsk_rto = TCP_TIMEOUT_INIT; | 2602 | icsk->icsk_rto = TCP_TIMEOUT_INIT; |
2601 | tp->snd_ssthresh = TCP_INFINITE_SSTHRESH; | 2603 | tp->snd_ssthresh = TCP_INFINITE_SSTHRESH; |