HomeClusterLabs Projects

[udp] don't make socket spin if a network I/F is down

Description

[udp] don't make socket spin if a network I/F is down

UDP treats ENETUNREACH as a temporary error and just retries,
but this causes the TX thread to spin just doing sendto() therefore
blocking all other traffic.

(To reproduce this try starting corosync with 2 links configured in
corosync.conf but only one of them configured to the 'right' address

  • it will spin in a tight loop and need to be killed with -9)

SCTP does not seem to suffer from this.

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

Details

Provenance
chrissie-cAuthored on Jan 24 2020, 4:33 AM
fabbioneCommitted on Jan 24 2020, 7:20 AM
Parents
rKe838930f9d6a: [nozzle] use interface name size consistently and drop strncpy in favour of…
Branches
Unknown
Tags
Unknown

Event Timeline