diff options
Diffstat (limited to 'net/ipv4/tcp_timer.c')
-rw-r--r-- | net/ipv4/tcp_timer.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c index b2ab411c6d37..14672543cf0b 100644 --- a/net/ipv4/tcp_timer.c +++ b/net/ipv4/tcp_timer.c | |||
@@ -201,11 +201,10 @@ static int tcp_write_timeout(struct sock *sk) | |||
201 | if (retransmits_timed_out(sk, net->ipv4.sysctl_tcp_retries1, 0, 0)) { | 201 | if (retransmits_timed_out(sk, net->ipv4.sysctl_tcp_retries1, 0, 0)) { |
202 | /* Some middle-boxes may black-hole Fast Open _after_ | 202 | /* Some middle-boxes may black-hole Fast Open _after_ |
203 | * the handshake. Therefore we conservatively disable | 203 | * the handshake. Therefore we conservatively disable |
204 | * Fast Open on this path on recurring timeouts with | 204 | * Fast Open on this path on recurring timeouts after |
205 | * few or zero bytes acked after Fast Open. | 205 | * successful Fast Open. |
206 | */ | 206 | */ |
207 | if (tp->syn_data_acked && | 207 | if (tp->syn_data_acked) { |
208 | tp->bytes_acked <= tp->rx_opt.mss_clamp) { | ||
209 | tcp_fastopen_cache_set(sk, 0, NULL, true, 0); | 208 | tcp_fastopen_cache_set(sk, 0, NULL, true, 0); |
210 | if (icsk->icsk_retransmits == net->ipv4.sysctl_tcp_retries1) | 209 | if (icsk->icsk_retransmits == net->ipv4.sysctl_tcp_retries1) |
211 | NET_INC_STATS(sock_net(sk), | 210 | NET_INC_STATS(sock_net(sk), |