diff options
-rw-r--r-- | net/ipv4/tcp.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_minisocks.c | 8 |
2 files changed, 1 insertions, 9 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 731b1c6e88a9..3f99ad92eaed 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -2578,10 +2578,10 @@ int tcp_disconnect(struct sock *sk, int flags) | |||
2578 | if (tp->write_seq == 0) | 2578 | if (tp->write_seq == 0) |
2579 | tp->write_seq = 1; | 2579 | tp->write_seq = 1; |
2580 | icsk->icsk_backoff = 0; | 2580 | icsk->icsk_backoff = 0; |
2581 | tp->snd_cwnd = 2; | ||
2582 | icsk->icsk_probes_out = 0; | 2581 | icsk->icsk_probes_out = 0; |
2583 | icsk->icsk_rto = TCP_TIMEOUT_INIT; | 2582 | icsk->icsk_rto = TCP_TIMEOUT_INIT; |
2584 | tp->snd_ssthresh = TCP_INFINITE_SSTHRESH; | 2583 | tp->snd_ssthresh = TCP_INFINITE_SSTHRESH; |
2584 | tp->snd_cwnd = TCP_INIT_CWND; | ||
2585 | tp->snd_cwnd_cnt = 0; | 2585 | tp->snd_cwnd_cnt = 0; |
2586 | tp->window_clamp = 0; | 2586 | tp->window_clamp = 0; |
2587 | tp->delivered_ce = 0; | 2587 | tp->delivered_ce = 0; |
diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c index 35906b44e2cf..ca96e7da99b6 100644 --- a/net/ipv4/tcp_minisocks.c +++ b/net/ipv4/tcp_minisocks.c | |||
@@ -490,14 +490,6 @@ struct sock *tcp_create_openreq_child(const struct sock *sk, | |||
490 | newtp->last_oow_ack_time = 0; | 490 | newtp->last_oow_ack_time = 0; |
491 | newtp->total_retrans = req->num_retrans; | 491 | newtp->total_retrans = req->num_retrans; |
492 | 492 | ||
493 | /* So many TCP implementations out there (incorrectly) count the | ||
494 | * initial SYN frame in their delayed-ACK and congestion control | ||
495 | * algorithms that we must have the following bandaid to talk | ||
496 | * efficiently to them. -DaveM | ||
497 | */ | ||
498 | newtp->snd_cwnd = TCP_INIT_CWND; | ||
499 | newtp->snd_cwnd_cnt = 0; | ||
500 | |||
501 | /* There's a bubble in the pipe until at least the first ACK. */ | 493 | /* There's a bubble in the pipe until at least the first ACK. */ |
502 | newtp->app_limited = ~0U; | 494 | newtp->app_limited = ~0U; |
503 | 495 | ||