I'm debugging a IPv6 vs IPv4 issue.
When I try to send a packet to an IPv6 address, I get an ENETUNREACH error. I want to catch this and switch to IPv4 but quinn-udp shallows every error. Only if the user has logging enabled would they see:
WARN quinn_udp: sendmsg error: Os { code: 101, kind: NetworkUnreachable, message: "Network is unreachable" }, Transmit: { destination: [2606:4700:49::2]:443, src_ip: None, ecn: Some(Ect0), len: 2400, segment_size: Some(1200) }
I understand the idea that many UDP errors are transient, but this one seems fatal. I wish I could have the connection fail immediately so I can try the next address, rather than sit waiting for a timeout.
I'm debugging a IPv6 vs IPv4 issue.
When I try to send a packet to an IPv6 address, I get an ENETUNREACH error. I want to catch this and switch to IPv4 but quinn-udp shallows every error. Only if the user has logging enabled would they see:
I understand the idea that many UDP errors are transient, but this one seems fatal. I wish I could have the connection fail immediately so I can try the next address, rather than sit waiting for a timeout.