tcp: reduce SYN-ACK retrans for TCP_DEFER_ACCEPT
commit0c3d79bce48034018e840468ac5a642894a521a3
authorJulian Anastasov <ja@ssi.bg>
Mon, 19 Oct 2009 10:03:58 +0000 (19 10:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Oct 2009 02:19:03 +0000 (19 19:19 -0700)
tree96a56d10d55173c032aa1adc2b47a7571e4055a2
parentd1b99ba41d6c5aa1ed2fc634323449dd656899e9
tcp: reduce SYN-ACK retrans for TCP_DEFER_ACCEPT

Change SYN-ACK retransmitting code for the TCP_DEFER_ACCEPT
users to not retransmit SYN-ACKs during the deferring period if
ACK from client was received. The goal is to reduce traffic
during the deferring period. When the period is finished
we continue with sending SYN-ACKs (at least one) but this time
any traffic from client will change the request to established
socket allowing application to terminate it properly.
Also, do not drop acked request if sending of SYN-ACK fails.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_connection_sock.c