diff options
author | Andrew Vagin <[email protected]> | 2013-08-27 12:20:40 +0400 |
---|---|---|
committer | David S. Miller <[email protected]> | 2013-08-29 15:11:11 -0400 |
commit | c7781a6e3c4a9a17e144ec2db00ebfea327bd627 (patch) | |
tree | 5af6a05e09c913dd36f8a37e78bc4c2e52d70121 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 282a1dffc1b9976cdf1b0eea3f6f68fda23a7c7e (diff) |
tcp: initialize rcv_tstamp for restored sockets
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 <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Alexey Kuznetsov <[email protected]>
Cc: James Morris <[email protected]>
Cc: Hideaki YOSHIFUJI <[email protected]>
Cc: Patrick McHardy <[email protected]>
Reported-by: Cyrill Gorcunov <[email protected]>
Signed-off-by: Andrey Vagin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions