• Andrew Vagin's avatar
    tcp: initialize rcv_tstamp for restored sockets · c7781a6e
    Andrew Vagin authored
    u32 rcv_tstamp;     /* timestamp of last received ACK */
    
    Its value used in tcp_retransmit_timer, which closes socket
    if the last ack was received more then TCP_RTO_MAX ago.
    
    Currently rcv_tstamp is initialized to zero and if tcp_retransmit_timer
    is called before receiving a first ack, the connection is closed.
    
    This patch initializes rcv_tstamp to a timestamp, when a socket was
    restored.
    
    Cc: Pavel Emelyanov <xemul@parallels.com>
    Cc: Eric Dumazet <eric.dumazet@gmail.com>
    Cc: "David S. Miller" <davem@davemloft.net>
    Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
    Cc: James Morris <jmorris@namei.org>
    Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
    Cc: Patrick McHardy <kaber@trash.net>
    Reported-by: default avatarCyrill Gorcunov <gorcunov@openvz.org>
    Signed-off-by: default avatarAndrey Vagin <avagin@openvz.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    c7781a6e
tcp_output.c 91.7 KB