mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 05:34:13 +08:00
net/tcp_fastopen: Remove mss check in tcp_write_timeout()
Christoph Paasch from Apple found another firewall issue for TFO: After successful 3WHS using TFO, server and client starts to exchange data. Afterwards, a 10s idle time occurs on this connection. After that, firewall starts to drop every packet on this connection. The fix for this issue is to extend existing firewall blackhole detection logic in tcp_write_timeout() by removing the mss check. Signed-off-by: Wei Wang <weiwan@google.com> Acked-by: Yuchung Cheng <ycheng@google.com> Acked-by: Neal Cardwell <ncardwell@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
46c2fa3987
commit
59450f8d83
@ -201,11 +201,10 @@ static int tcp_write_timeout(struct sock *sk)
|
|||||||
if (retransmits_timed_out(sk, net->ipv4.sysctl_tcp_retries1, 0, 0)) {
|
if (retransmits_timed_out(sk, net->ipv4.sysctl_tcp_retries1, 0, 0)) {
|
||||||
/* Some middle-boxes may black-hole Fast Open _after_
|
/* Some middle-boxes may black-hole Fast Open _after_
|
||||||
* the handshake. Therefore we conservatively disable
|
* the handshake. Therefore we conservatively disable
|
||||||
* Fast Open on this path on recurring timeouts with
|
* Fast Open on this path on recurring timeouts after
|
||||||
* few or zero bytes acked after Fast Open.
|
* successful Fast Open.
|
||||||
*/
|
*/
|
||||||
if (tp->syn_data_acked &&
|
if (tp->syn_data_acked) {
|
||||||
tp->bytes_acked <= tp->rx_opt.mss_clamp) {
|
|
||||||
tcp_fastopen_cache_set(sk, 0, NULL, true, 0);
|
tcp_fastopen_cache_set(sk, 0, NULL, true, 0);
|
||||||
if (icsk->icsk_retransmits == net->ipv4.sysctl_tcp_retries1)
|
if (icsk->icsk_retransmits == net->ipv4.sysctl_tcp_retries1)
|
||||||
NET_INC_STATS(sock_net(sk),
|
NET_INC_STATS(sock_net(sk),
|
||||||
|
Loading…
Reference in New Issue
Block a user