HomeClusterLabs Projects

[host] fix dst_seq_num initialization race condition

Description

[host] fix dst_seq_num initialization race condition

There is a potential race condition where the sender
is overloaded, sending data packets before pings
can kick in and set the correct dst_seq_num.

if this node is starting up (dst_seq_num = 0),
it can start rejecing valid packets and get stuck.

Set the dst_seq_num to the first seen packet and
use that as reference instead.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>

Details

Provenance
fabbioneAuthored on Nov 8 2021, 3:14 AM
Parents
rK4a73b27c2757: Merge pull request #366 from kronosnet/defrag-fixes
Branches
Unknown
Tags
Unknown

Event Timeline