Messages in this thread | | | Date | Thu, 29 Aug 2013 15:12:05 -0400 (EDT) | Subject | Re: [PATCH] tcp: initialize rcv_tstamp for restored sockets | From | David Miller <> |
| |
From: Andrey Vagin <avagin@openvz.org> Date: Tue, 27 Aug 2013 12:20:40 +0400
> From: Andrew Vagin <avagin@openvz.org> > > 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. > > Reported-by: Cyrill Gorcunov <gorcunov@openvz.org> > Signed-off-by: Andrey Vagin <avagin@openvz.org>
Applied and queued up for -stable.
| |